board: ti: am57xx: Set fdtfile from C code instead of findfdt script
We now can provide a map and have the standard fdtfile variable set from code itself. This allows for bootstd to "just work". Signed-off-by: Anurag Dutta <a-dutta@ti.com>
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
#include "../common/board_detect.h"
|
#include "../common/board_detect.h"
|
||||||
#include "../common/cape_detect.h"
|
#include "../common/cape_detect.h"
|
||||||
|
#include "../common/fdt_ops.h"
|
||||||
#include "mux_data.h"
|
#include "mux_data.h"
|
||||||
|
|
||||||
#ifdef CONFIG_SUPPORT_EMMC_BOOT
|
#ifdef CONFIG_SUPPORT_EMMC_BOOT
|
||||||
@@ -577,6 +578,18 @@ void do_board_detect(void)
|
|||||||
"Board: %s REV %s\n", bname, board_ti_get_rev());
|
"Board: %s REV %s\n", bname, board_ti_get_rev());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static struct ti_fdt_map ti_omap_am57_evm_fdt_map[] = {
|
||||||
|
{"beagle_x15", "ti/omap/am57xx-beagle-x15.dtb"},
|
||||||
|
{"beagle_x15_revb1", "ti/omap/am57xx-beagle-x15-revb1.dtb"},
|
||||||
|
{"beagle_x15_revc", "ti/omap/am57xx-beagle-x15-revc.dtb"},
|
||||||
|
{"am5729_beagleboneai", "ti/omap/am5729-beagleboneai.dtb"},
|
||||||
|
{"am572x_idk", "ti/omap/am572x-idk.dtb"},
|
||||||
|
{"am574x_idk", "ti/omap/am574x-idk.dtb"},
|
||||||
|
{"am57xx_evm", "ti/omap/am57xx-beagle-x15.dtb"},
|
||||||
|
{"am57xx_evm_reva3", "ti/omap/am57xx-beagle-x15.dtb"},
|
||||||
|
{"am571x_idk", "ti/omap/am571x-idk.dtb"},
|
||||||
|
};
|
||||||
|
|
||||||
static void setup_board_eeprom_env(void)
|
static void setup_board_eeprom_env(void)
|
||||||
{
|
{
|
||||||
char *name = "beagle_x15";
|
char *name = "beagle_x15";
|
||||||
@@ -614,6 +627,7 @@ static void setup_board_eeprom_env(void)
|
|||||||
|
|
||||||
invalid_eeprom:
|
invalid_eeprom:
|
||||||
set_board_info_env(name);
|
set_board_info_env(name);
|
||||||
|
ti_set_fdt_env(name, ti_omap_am57_evm_fdt_map);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_XPL_BUILD */
|
#endif /* CONFIG_XPL_BUILD */
|
||||||
|
|||||||
Reference in New Issue
Block a user