]> git.sur5r.net Git - u-boot/blobdiff - board/tqm5200/cam5200_flash.c
POST: Add 405EX support to 4xx UART POST test
[u-boot] / board / tqm5200 / cam5200_flash.c
index 1a40633e5694bb5c3e1415c11f49cf160c6b77fb..b3f095d807f3366af1412f6b04f77f94f4602bbc 100644 (file)
@@ -25,7 +25,7 @@
 #include <mpc5xxx.h>
 #include <asm/processor.h>
 
-#ifdef CONFIG_CAM5200
+#if defined(CONFIG_CAM5200) && defined(CONFIG_CAM5200_NIOSFLASH)
 
 #if 0
 #define DEBUGF(x...) printf(x)
@@ -759,7 +759,7 @@ unsigned long flash_init(void)
 
                if (flash_info[i].flash_id == FLASH_UNKNOWN) {
                        printf("## Unknown FLASH on Bank %d - Size = 0x%08lx = %ld MB\n",
-                                       i, size_b[i], size_b[i] << 20);
+                                       i+1, size_b[i], size_b[i] << 20);
                        flash_info[i].sector_count = -1;
                        flash_info[i].size = 0;
                }
@@ -783,4 +783,4 @@ unsigned long flash_init(void)
 
        return total_b;
 }
-#endif /* ifdef CONFIG_CAM5200 */
+#endif /* if defined(CONFIG_CAM5200) && defined(CONFIG_CAM5200_NIOSFLASH) */