Updates to IBL main function for GPIO NAND driver
authorSandeep Paulraj <s-paulraj@ti.com>
Wed, 18 May 2011 16:00:45 +0000 (12:00 -0400)
committerSandeep Paulraj <s-paulraj@ti.com>
Wed, 18 May 2011 16:00:45 +0000 (12:00 -0400)
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
src/main/iblmain.c

index 6cd57996e3965de4f10db7fcb089de19b123c0e5..c8e2746c051cbc23c4a613f8826311f351425ad4 100644 (file)
@@ -322,7 +322,7 @@ void main (void)
                 break;
 #endif
                 
-#if ((!defined(EXCLUDE_NAND_EMIF)) )                                    
+#if ((!defined(EXCLUDE_NAND_EMIF)) || (!defined(EXCLUDE_NAND_GPIO)))
             case ibl_BOOT_MODE_NAND:
                 iblPmemCfg (ibl.bootModes[boot_mode_idx].u.nandBoot.interface, ibl.bootModes[boot_mode_idx].port, TRUE);
                 memset ((void *)0x80000000, 0, 0x20000000);
@@ -364,7 +364,7 @@ void main (void)
                             break;
 #endif
                             
-#if ((!defined(EXCLUDE_NAND_EMIF)) )                                    
+#if ((!defined(EXCLUDE_NAND_EMIF)) || (!defined(EXCLUDE_NAND_GPIO)))
                         case ibl_BOOT_MODE_NAND:
                             iblPmemCfg (ibl.bootModes[j].u.nandBoot.interface, ibl.bootModes[j].port, TRUE);
                             iblNandBoot (j);