]> git.baikalelectronics.ru Git - uboot.git/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)
commit56cdf1204a979245a91b4a8a4122bcfca304bbfa
treeef3d4d78fc382e15c9c5dab01fcd012396ce0602
parent90e7230a6b2f56e256687e53603a47499ef33755
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