ARM: SPL: Remove NAND_MODE_HW_ECC from spl_nand.c
authorTom Rini <trini@ti.com>
Mon, 13 Aug 2012 21:11:06 +0000 (14:11 -0700)
committerTom Rini <trini@ti.com>
Thu, 27 Sep 2012 16:48:39 +0000 (09:48 -0700)
This detection code doesn't (and can't) do anything currently, so
remove.

Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/omap-common/spl_nand.c
arch/arm/cpu/armv7/omap3/board.c
arch/arm/include/asm/omap_common.h

index ea7cc8a9d8f2fe39c7a777dd149dcff053ff7458..39221d5e7a9109892a1f3db7312d270fa0bd26b0 100644 (file)
@@ -35,16 +35,9 @@ void spl_nand_load_image(void)
        int *src __attribute__((unused));
        int *dst __attribute__((unused));
 
-       switch (spl_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);
index 164069662f3aff2a541db5c7c4d8f0d32a9258a0..a487374f1faf9b8fa943c8f14e7db957561eea56 100644 (file)
@@ -77,9 +77,6 @@ u32 spl_boot_mode(void)
        case BOOT_DEVICE_MMC1:
                return MMCSD_MODE_FAT;
                break;
-       case BOOT_DEVICE_NAND:
-               return NAND_MODE_HW_ECC;
-               break;
        default:
                puts("spl: ERROR:  unknown device - can't select boot mode\n");
                hang();
index f5b9dfe5592632b78b85d5966a95e88a30802250..4d331fc94320aff5c59f28f075531fa5459bf200 100644 (file)
@@ -76,7 +76,6 @@ void preloader_console_init(void);
 #define        MMCSD_MODE_UNDEFINED    0
 #define MMCSD_MODE_RAW         1
 #define MMCSD_MODE_FAT         2
-#define NAND_MODE_HW_ECC       3
 
 struct spl_image_info {
        const char *name;