]> git.sur5r.net Git - u-boot/commit
ARM: k2g: Define embedded_dtb_select for runtime DTB selection in U-boot
authorCooper Jr., Franklin <fcooper@ti.com>
Fri, 16 Jun 2017 22:25:15 +0000 (17:25 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 10 Jul 2017 18:25:55 +0000 (14:25 -0400)
commit5f48da9a9828c3bde89407a51124458915cd671a
treeef3d4d78fc382e15c9c5dab01fcd012396ce0602
parent85bfe48b0ab807e8c7308507ea923a16ce3fdd1a
ARM: k2g: Define embedded_dtb_select for runtime DTB selection in U-boot

For K2G, runtime DTB selection utilizes the embedded_dtb_select function.
Therefore, define the function which will perform a EEPROM read and then
retries selecting the correct dtb now that it can detect which board its
on. For other Keystone devices use an empty function since they will still
use the embedded FIT functionality but their FIT will only contain a single
dtb.

Most production K2G boards do not have their EEPROM programmed. Therefore,
perform a test to verify a K2G GP is currently being used and if it is then
set the values normally set by a EEPROM read.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/ks2_evm/board.c
board/ti/ks2_evm/board_k2g.c