diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2012-08-15 10:31:22 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-09-01 14:58:26 +0200 |
commit | 0aff384b1480c4adf0ba4d3676b213b0ef57ba76 (patch) | |
tree | 14db252280245c66ba769a576e89484a2dc26c74 /board/freescale | |
parent | bb05b40b0610b4a18aa35313dc0857c9114b2353 (diff) | |
download | u-boot-imx-0aff384b1480c4adf0ba4d3676b213b0ef57ba76.zip u-boot-imx-0aff384b1480c4adf0ba4d3676b213b0ef57ba76.tar.gz u-boot-imx-0aff384b1480c4adf0ba4d3676b213b0ef57ba76.tar.bz2 |
mx53evk: add boot_mode support
This allows a watchdog reset to start the ROM's
usb/serial downloader, or boot from an sdcard.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mx53evk/mx53evk.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/freescale/mx53evk/mx53evk.c b/board/freescale/mx53evk/mx53evk.c index 8a6e31d..7f50938 100644 --- a/board/freescale/mx53evk/mx53evk.c +++ b/board/freescale/mx53evk/mx53evk.c @@ -28,6 +28,7 @@ #include <asm/arch/crm_regs.h> #include <asm/arch/iomux.h> #include <asm/errno.h> +#include <asm/imx-common/boot_mode.h> #include <netdev.h> #include <i2c.h> #include <mmc.h> @@ -367,11 +368,23 @@ int board_init(void) return 0; } +#ifdef CONFIG_CMD_BMODE +static const struct boot_mode board_boot_modes[] = { + /* 4 bit bus width */ + {"mmc0", MAKE_CFGVAL(0x40, 0x20, 0x00, 0x12)}, + {"mmc1", MAKE_CFGVAL(0x40, 0x20, 0x08, 0x12)}, + {NULL, 0}, +}; +#endif + int board_late_init(void) { setup_i2c(1); power_init(); +#ifdef CONFIG_CMD_BMODE + add_board_boot_modes(board_boot_modes); +#endif return 0; } |