]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Remove bogus check for NAND_MODE_HW_ECC
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 1 Aug 2012 09:39:03 +0000 (11:39 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 1 Aug 2012 09:39:03 +0000 (11:39 +0200)
arch/arm/cpu/armv7/omap-common/spl_nand.c

index 8cf55c9a1c8b9956193aa25ed1d618cb3b5434fe..2c0adf2a6b2995d577f1e977997491d48407e661 100644 (file)
@@ -35,19 +35,12 @@ void spl_nand_load_image(void)
        int *src __attribute__((unused));
        int *dst __attribute__((unused));
 
-       switch (omap_boot_mode()) {
-       case NAND_MODE_HW_ECC:
-               debug("spl: nand - using hw ecc\n");
-               gpmc_init();
-               nand_init();
-               break;
-       default:
-               puts("spl: ERROR: This bootmode is not implemented - hanging");
-               hang();
-       }
+       debug("spl: nand - using hw ecc\n");
+       gpmc_init();
+       nand_init();
 
        /*use CONFIG_SYS_TEXT_BASE as temporary storage area */
-       header = (struct image_header *)(CONFIG_SYS_TEXT_BASE);
+       header = (struct image_header *)CONFIG_SYS_TEXT_BASE;
 #ifdef CONFIG_SPL_OS_BOOT
        if (!spl_start_uboot()) {
                /*