diff options
author | Javier Martinez Canillas <javier@dowhile0.org> | 2013-08-07 17:53:19 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-08-15 18:38:35 -0400 |
commit | a2fa28bc988fdc1cb5cc00abc8b63626bc3c9f76 (patch) | |
tree | 4c07017a30159c1dcd65e32c31ebbe5954013aaa /board | |
parent | 2be6bed003e20e0049d245b1447277cafbb30a72 (diff) | |
download | u-boot-imx-a2fa28bc988fdc1cb5cc00abc8b63626bc3c9f76.zip u-boot-imx-a2fa28bc988fdc1cb5cc00abc8b63626bc3c9f76.tar.gz u-boot-imx-a2fa28bc988fdc1cb5cc00abc8b63626bc3c9f76.tar.bz2 |
OMAP3: igep00x0: allow booting with a FDT from MMC
IGEP boards now have Device Tree support in the mainline
kernel. To boot an IGEP board using a DT, a uEnv.txt plain
text file could be used to define a custom uenvcmd that will
be run by the default boot command.
It is more convenient to change the default boot command to
allow loading a FDT if it is stored in the boot dir of the
rootfs uSD/MMC partition.
If no FDT is found then the defaul command tries to boot a
zImage without a DT using legacy boot.
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Diffstat (limited to 'board')
-rw-r--r-- | board/isee/igep00x0/igep00x0.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c index 77a9bc6..7a7500b 100644 --- a/board/isee/igep00x0/igep00x0.c +++ b/board/isee/igep00x0/igep00x0.c @@ -138,6 +138,18 @@ int board_mmc_init(bd_t *bis) } #endif +void set_fdt(void) +{ + switch (gd->bd->bi_arch_number) { + case MACH_TYPE_IGEP0020: + setenv("dtbfile", "omap3-igep0020.dtb"); + break; + case MACH_TYPE_IGEP0030: + setenv("dtbfile", "omap3-igep0030.dtb"); + break; + } +} + /* * Routine: misc_init_r * Description: Configure board specific parts @@ -150,6 +162,8 @@ int misc_init_r(void) dieid_num_r(); + set_fdt(); + return 0; } |