diff options
author | Tim Harvey <tharvey@gateworks.com> | 2015-05-09 01:28:25 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-05-15 17:21:24 (GMT) |
commit | 06c3564d5f42abbe65ba290bddd3dfffff365c38 (patch) | |
tree | 21d2d647ec4bfef4a1cda03dc7bbbeeae6284a4a /board/gateworks/gw_ventana | |
parent | 560e8b3f33a9ec2a6d48fb3076f438fb1ce1541c (diff) | |
download | u-boot-06c3564d5f42abbe65ba290bddd3dfffff365c38.tar.xz |
imx: ventana: display SPL boot device
Display what device the SPL will fetch uboot.img from
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks/gw_ventana')
-rw-r--r-- | board/gateworks/gw_ventana/gw_ventana_spl.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c index 289a0b8..8fe0cae 100644 --- a/board/gateworks/gw_ventana/gw_ventana_spl.c +++ b/board/gateworks/gw_ventana/gw_ventana_spl.c @@ -570,6 +570,28 @@ void board_init_f(ulong dummy) board_init_r(NULL, 0); } +/* called from board_init_r after gd setup if CONFIG_SPL_BOARD_INIT defined */ +/* its our chance to print info about boot device */ +void spl_board_init(void) +{ + /* determine boot device from SRC_SBMR1 (BOOT_CFG[4:1]) or SRC_GPR9 */ + u32 boot_device = spl_boot_device(); + + switch (boot_device) { + case BOOT_DEVICE_MMC1: + puts("Booting from MMC\n"); + break; + case BOOT_DEVICE_NAND: + puts("Booting from NAND\n"); + break; + case BOOT_DEVICE_SATA: + puts("Booting from SATA\n"); + break; + default: + puts("Unknown boot device\n"); + } +} + void reset_cpu(ulong addr) { } |