u-boot-brain/board
Marc Ferland 37648b600c 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>
2020-12-26 14:56:09 +01:00
..
AndesTech riscv: ae350: Use fdtdec_get_addr_size_auto_noparent to parse smc reg 2020-07-24 14:56:24 +08:00
Arcturus/ucp1020 powerpc: Remove bi_memstart & bi_memsize assignments in spl.c 2020-08-26 09:19:54 +02:00
BuR Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
BuS/eb_cpu5282 eb_cpu5282: fix CONFIG_DM_VIDEO build warnings 2020-10-26 20:55:29 +01:00
CZ.NIC treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
CarMediaLab/flea3 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
LaCie arm: kirkwood: enable DM_ETH for LaCie board 2020-07-09 06:51:20 +02:00
Marvell arm: mvebu: Espressobin: Detect presence of emmc at runtime 2020-12-07 07:11:37 +01:00
Seagate common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
Synology common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
abilis/tb100 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
advantech doc: board: imx8qm-rom7720-a1.rst: convert readme to reST 2020-12-07 08:54:20 +01:00
alliedtelesis common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
altera ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK 2019-05-10 22:48:10 +02:00
amarula/vyasa-rk3288 common: Move serial functions out of common.h 2019-12-02 18:23:11 -05:00
amazon/kc1 fastboot: Extend fastboot_set_reboot_flag with reboot reason 2020-09-01 14:47:43 +02:00
amlogic board: amlogic: vim3: add support for dynamic PCIe enable 2020-10-05 17:59:45 +02:00
aries/mcvevk arm: socfpga: Re-add support for Aries MCV SoM and MCVEV[KP] board 2019-05-14 19:52:39 +02:00
aristainetos imx: aristainetos: enable U-Boot Environment variables protection 2020-12-06 15:07:40 +01:00
armadeus common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
armltd arm: vexpress: don't reset flags in board_init to avoid losing previous ones 2020-11-19 09:45:49 -05:00
aspeed/evb_ast2500 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
astro/mcf5373l common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
atmark-techno/armadillo-800eva common: Move reset_cpu() to the CPU header 2020-01-24 23:06:49 +05:30
atmel board: atmel: common: introduce at91_set_eth1addr for second interface 2020-09-22 11:27:18 +03:00
avionic-design common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bachmann/ot1200 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
barco treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
beacon ARM: rmobile: Add Beacon EmbeddedWorks RZG2M Dev Kit 2020-07-25 14:19:26 +02:00
beckhoff/mx53cx9020 common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
birdland/bav335x arm: Remove bav335x board 2020-07-09 20:58:05 +05:30
bitmain/antminer_s9 xilinx: Introduce board_late_init_xilinx() 2020-04-27 13:57:17 +02:00
bluegiga/apx4devkit treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
bluewater treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
bosch am335x, guardian: update the maintainer list 2020-10-12 08:03:38 +05:30
boundary/nitrogen6x treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
broadcom board: ns3: check bnxt chimp handshake status 2020-09-09 16:57:35 -04:00
bticino/mamoj common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
buffalo/lsxl common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
cadence/xtfpga xtensa: Remove local no-op dram_init_banksize() 2020-08-26 09:19:45 +02:00
calao/usb_a9263 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
cavium/thunderx treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ccv/xpress treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
cei/cei-tk1-som SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
chipspark/popmetal_rk3288 common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
cirrus/edb93xx treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
cloudengines/pogo_e02 common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
cobra5272 common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
compal/paz00 common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
compulab treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
comtrend SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
congatec x86: congatec: conga-qeval20-qa3-e3845: Remove dead code 2020-09-01 13:38:38 +08:00
coreboot coreboot: make use of smbios parser 2020-11-05 14:58:45 +08:00
corscience/tricorder treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
cortina common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
creative/xfi3 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
cssi treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
d-link/dns325 common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
davinci/da8xxevm treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
devboards/dbm-soc1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfi x86: dfi: dfi-bt700: Remove dead code 2020-09-01 13:38:39 +08:00
dhelectronics ARM: dts: stm32: Add DHCOM based PicoITX board 2020-11-25 10:43:46 +01:00
ea/mx7ulp_com arm: imx: Finish migration from CONFIG_SECURE_BOOT to CONFIG_IMX_HAB 2020-06-26 10:29:06 -04:00
ebv/socrates arm: socfpga: socrates: make rtc work 2019-04-25 00:00:49 +02:00
eets/pdu001 common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
efi x86: efi: efi-x86_payload: Remove dead code 2020-09-01 13:38:39 +08:00
egnite/ethernut5 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
el/el6x treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
elgin/elgin_rv1108 rockchip: rv1108: use correct API for board callback 2020-09-16 16:31:17 +08:00
embest/mx6boards treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
emulation riscv: enable SATA disk on QEMU RISC-V 2020-11-17 15:09:16 +08:00
engicam rockchip: Add Engicam PX30.Core C.TOUCH 2.0 2020-10-30 23:31:26 +08:00
esd treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
firefly rockchip: firefly-rk3288: Fix the code support for SPL_LED 2020-08-21 19:56:19 +08:00
freescale mx6sabresd: Remove unneeded checkboard() 2020-12-26 12:37:07 +01:00
friendlyarm arm: add support for SoC s5p4418 (cpu) / nanopi2 board 2020-07-29 08:43:40 -04:00
gardena common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
gateworks/gw_ventana treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
gdsys board: Rename uclass to sysinfo 2020-11-06 10:18:20 +08:00
ge board: ge: bx50v3: cleanup phy config 2020-12-26 14:56:09 +01:00
geekbuying/geekbox rockchip: rk3368: Migrate to use common board file 2019-07-29 10:27:48 +08:00
google rockchip: gru: Allow setting up clocks in U-Boot proper 2020-11-13 18:15:08 +08:00
grinn treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
hardkernel/odroid_go2 rockchip: board: add Hardkernel Odroid Go2 board 2020-07-22 20:21:23 +08:00
highbank treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
hisilicon treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
huawei/hg556a SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ids/ids8313 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
imgtec Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
intel x86: edison: Switch to DM_USB_GADGET 2020-12-16 13:51:24 +08:00
inversepath/usbarmory treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
iomega/iconnect common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
is1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
isee treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
k+p arm: Implement show_boot_progress() for imx53's HSC and DDC devices 2020-11-01 15:53:40 +01:00
keymile km/ppc: use Kconfig for MEMTEST configuration 2020-11-19 09:45:49 -05:00
kmc/kzm9g treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
kobol/helios4 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
kontron/sl28 board: sl28: add board specific nvm command 2020-10-23 16:52:09 +05:30
kosagi/novena treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
l+g/vinco treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
laird treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
lego/ev3 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
lg/sniper fastboot: Extend fastboot_set_reboot_flag with reboot reason 2020-09-01 14:47:43 +02:00
liebherr liebherr: Drop duplicate dm.h inclusion 2020-08-03 22:19:54 -04:00
logicpd treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
maxbcm common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mediatek board: mediatek: Add support for UniElec U7623 board 2020-07-29 08:43:40 -04:00
menlo/m53menlo treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
microchip common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mikrotik/crs3xx-98dx3236 arm: mvebu: crs3xx-98dx3236: Add a maintainer 2020-08-06 14:12:14 +02:00
mini-box/picosam9g45 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8308_p1m treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mqmaker/miqi_rk3288 rockchip: board: rk3288: remove board_boot_order() 2019-07-20 23:59:44 +08:00
mscc mscc: Drop dm.h header file 2020-08-03 22:19:54 -04:00
myir/mys_6ulx imx: Add MYiR Tech MYS-6ULX support 2020-08-03 17:03:57 +02:00
netgear common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
nokia/rx51 Nokia RX-51: Make onenand working 2020-11-15 15:29:40 +05:30
novtech/meerkat96 arm: imx: Finish migration from CONFIG_SECURE_BOOT to CONFIG_IMX_HAB 2020-06-26 10:29:06 -04:00
nvidia treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
olimex/mx23_olinuxino treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
opalkelly/zynq arm: zynq: Remove low level UART setting 2020-01-14 09:05:53 +01:00
phytec ARM: am335x: Add phyBOARD REGOR support 2020-11-15 15:14:04 +05:30
phytium/durian common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pine64 rockchip: Add initial support for the Pinebook Pro laptop from Pine64. 2020-05-31 22:22:07 +08:00
ppcag/bg0900 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
qca common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
qemu-mips treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
qualcomm treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
radxa SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
raidsonic/ib62x0 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
raspberrypi/rpi treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
renesas Merge branch 'next' 2020-10-05 14:10:59 -04:00
rockchip rockchip: rv1108: use correct API for board callback 2020-09-16 16:31:17 +08:00
ronetix treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
sagem/f@st1704 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
samsung samsung: common: remove the duplicated stdio print message 2020-10-22 17:11:29 +09:00
sandbox sandbox: Drop ad-hoc device declarations in SPL 2020-10-29 14:42:17 -06:00
sandisk/sansa_fuze_plus treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
sbc8349 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
sbc8548 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
sbc8641d treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
schulercontrol/sc_sps_1 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
seco arm: mx6: Make all i.MX6 SoCs user-selectable 2020-08-25 10:26:14 +02:00
seeed/linkit-smart-7688 common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sfr/nb4_ser SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
siemens treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
sifive/fu540 riscv: sifive/fu540: kconfig: Enable support for Opencores I2C controller 2020-11-28 08:30:41 +01:00
sipeed/maix riscv: Add FPIOA and GPIO support for Kendryte K210 2020-10-08 11:42:36 -04:00
sks-kinkel/sksimx6 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
socrates treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
softing treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
solidrun arm: mvebu: clearfog: don't override set fdtfile env 2020-09-24 10:13:39 +02:00
somlabs/visionsom-6ull ARM: imx: mx6ull: Add iMX6ULL VisionSOM SoM and EVK 2020-01-20 15:38:16 +01:00
spear treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
sr1500 common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
st treewide: Update email address Patrick Delaunay and Patrice Chotard 2020-12-09 10:57:50 +01:00
ste/stemmy common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
sunxi sunxi: allow to use AXP20[39] attached to I2C0 on V3 series 2020-11-17 00:42:21 +00:00
synopsys common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sysam common: Move testdram() into init.h 2020-01-24 23:06:49 +05:30
syteco/zmx25 common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tbs/tbs2910 arm: mx6: Make all i.MX6 SoCs user-selectable 2020-08-25 10:26:14 +02:00
tcl/sl50 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
technexion pico-imx6ul: convert ethernet function to DM_ETH 2020-08-18 10:10:25 +02:00
technologic treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
terasic SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
theadorable treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
theobroma-systems rockchip: puma: drop special handling of usb host regulator 2020-06-07 18:57:16 +08:00
ti Merge tag 'ti-v2021.01-rc1' of https://gitlab.denx.de/u-boot/custodians/u-boot-ti 2020-10-12 07:26:57 -04:00
timll treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
topic/zynq board: topic-miami: Set FCLK1 to 150MHz 2020-06-24 13:11:08 +02:00
toradex toradex: hand over maintainership 2020-12-26 14:56:09 +01:00
tplink/wdr4300 common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tqc arm: mx6: Make all i.MX6 SoCs user-selectable 2020-08-25 10:26:14 +02:00
udoo treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
vamrs/rock960_rk3399 rockchip: Remove ARCH= references from documentation 2020-06-02 17:27:04 -04:00
variscite/dart_6ul arm: dart6ul: read and print SoM info from eeprom on startup 2020-12-26 14:56:09 +01:00
varisys treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ve8313 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
vocore/vocore2 mips: Add support for SoM "VoCore2". 2020-04-27 20:30:14 +02:00
vscom/baltos treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
wandboard treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
warp treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
warp7 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
work-microwave/work_92105 common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
xen/xenguest_arm64 MAINTAINERS: Add maintainers to XEN section 2020-08-24 14:11:31 -04:00
xes treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
xilinx fru: common: Record pcie/uuid fields in custom board area 2020-11-20 10:42:54 +01:00
zyxel/nsa310s common: Drop init.h from common header 2020-05-18 17:33:33 -04:00