mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 20:54:24 +08:00
ARM: mvebu: clearfog: run-time selection of DT file
Set the kernel device-tree file (fdtfile environment variable) based on run-time detection of the platform. Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
This commit is contained in:
parent
7211fa6f5a
commit
867572f09e
@ -91,6 +91,7 @@ choice
|
||||
config TARGET_CLEARFOG
|
||||
bool "Support ClearFog"
|
||||
select 88F6820
|
||||
select BOARD_LATE_INIT
|
||||
|
||||
config TARGET_HELIOS4
|
||||
bool "Support Helios4"
|
||||
|
@ -175,3 +175,17 @@ int board_eth_init(bd_t *bis)
|
||||
cpu_eth_init(bis); /* Built in controller(s) come first */
|
||||
return pci_eth_init(bis);
|
||||
}
|
||||
|
||||
int board_late_init(void)
|
||||
{
|
||||
cf_read_tlv_data();
|
||||
|
||||
if (sr_product_is(&cf_tlv_data, "Clearfog Base"))
|
||||
env_set("fdtfile", "armada-388-clearfog-base.dtb");
|
||||
else if (sr_product_is(&cf_tlv_data, "Clearfog GTR S4"))
|
||||
env_set("fdtfile", "armada-385-clearfog-gtr-s4.dtb");
|
||||
else if (sr_product_is(&cf_tlv_data, "Clearfog GTR L8"))
|
||||
env_set("fdtfile", "armada-385-clearfog-gtr-l8.dtb");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user