summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorMarc Ferland <ferlandm@amotus.ca>2020-12-22 22:24:12 +0300
committerStefano Babic <sbabic@denx.de>2020-12-26 16:56:09 +0300
commit37648b600cd16848e689e341b20da71356e24212 (patch)
tree3d180989d5ef6409b2e1f9d396a2177a43bcb9bf /configs
parentd4d7b663b8cae5ef4209aaef21a2435a7d5d4dd7 (diff)
downloadu-boot-37648b600cd16848e689e341b20da71356e24212.tar.xz
arm: dart6ul: read and print SoM info from eeprom on startup
The dart6ul has an i2c eeprom at 0x50 which contains, among other things, the manufacturing/revision/options info of the SoM. This patch replaces the current checkboard() implementation with a more exhaustive one based on the content of the eeprom. Since this code uses the new driver model, some changes were also required in the DTS to make the nodes related to i2c available before relocation. This code was inspired from the supported u-boot code from Variscite which can be found here: https://github.com/varigit/uboot-imx/tree/imx_v2018.03_4.14.78_1.0.0_ga_var02 New output example: Board: PN: VSM-6UL-705B, Assy: AS1812142257, Date: 2019 Feb 17 Storage: eMMC, Wifi: yes, DDR: 1024 MiB, Rev: 2.4G Signed-off-by: Marc Ferland <ferlandm@amotus.ca> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Diffstat (limited to 'configs')
-rw-r--r--configs/variscite_dart6ul_defconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/variscite_dart6ul_defconfig b/configs/variscite_dart6ul_defconfig
index 5f94cea5dd..721882567d 100644
--- a/configs/variscite_dart6ul_defconfig
+++ b/configs/variscite_dart6ul_defconfig
@@ -36,6 +36,8 @@ CONFIG_ENV_OVERWRITE=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_DM_I2C_GPIO=y
CONFIG_SYS_I2C_MXC=y
+CONFIG_MISC=y
+CONFIG_I2C_EEPROM=y
CONFIG_FSL_USDHC=y
CONFIG_MTD=y
CONFIG_PHYLIB=y