]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: 'bootcmd' is modified to use $modeboot
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Fri, 18 Jan 2013 13:05:04 +0000 (18:35 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 22 Jan 2013 13:14:48 +0000 (14:14 +0100)
This patch change the 'bootcmd' to use $modeboot.
Now it is,
zynq-uboot> printenv bootcmd
bootcmd=run $modeboot

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
board/xilinx/zynq/board.c
include/configs/zynq_common.h

index a2aa9f827fc2f1ffbc6087444c787e42f0ccb30c..a186954ec3d8d41df7bf6179fec6e47d8adcce52 100644 (file)
@@ -88,19 +88,19 @@ int board_late_init (void)
        boot_mode = (XIo_In32(BOOT_MODE_REG) & BOOT_MODES_MASK);
        switch(boot_mode) {
        case QSPI_MODE:
-               setenv("modeboot", "run qspiboot");
+               setenv("modeboot", "qspiboot");
                break;
        case NAND_FLASH_MODE:
-               setenv("modeboot", "run nandboot");
+               setenv("modeboot", "nandboot");
                break;
        case NOR_FLASH_MODE:
-               setenv("modeboot", "run norboot");
+               setenv("modeboot", "norboot");
                break;
        case SD_MODE:
-               setenv("modeboot", "run sdboot");
+               setenv("modeboot", "sdboot");
                break;
        case JTAG_MODE:
-               setenv("modeboot", "run jtagboot");
+               setenv("modeboot", "jtagboot");
                break;
        default:
                setenv("modeboot", "");
index 2023fcf4809ab53879f3a73958bb4f998a749991..fbefd4489e91fcc583dc991a418a2d5cbfa1eadf 100644 (file)
                "bootm 0x3000000 0x2000000 0x2A00000\0"
 
 /* default boot is according to the bootmode switch settings */
-#define CONFIG_BOOTCOMMAND     "run modeboot"
+#define CONFIG_BOOTCOMMAND     "run $modeboot"
 #define CONFIG_BOOTDELAY       3 /* -1 to Disable autoboot */
 
 #define CONFIG_SYS_PROMPT      "zynq-uboot> "