summaryrefslogtreecommitdiffstats
path: root/lib_ppc
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-08-30 00:05:50 +0000
committerwdenk <wdenk>2003-08-30 00:05:50 +0000
commit0cb61d7dddb0d8c087f6df46a74815950668c97b (patch)
tree215dcff4a52d627cc1ee489c4550dbb67356224b /lib_ppc
parent6f21347d49b1741e4b8247f5e2d3fa83ef169c25 (diff)
downloadblackbird-obmc-uboot-0cb61d7dddb0d8c087f6df46a74815950668c97b.tar.gz
blackbird-obmc-uboot-0cb61d7dddb0d8c087f6df46a74815950668c97b.zip
Patch by Raghu Krishnaprasad, 7 Aug 2003:
add support for Adder II MPC852T module
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index 977d03ec7b..8308969c35 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -632,7 +632,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
puts ("FLASH: ");
if ((flash_size = flash_init ()) > 0) {
-#ifdef CFG_FLASH_CHECKSUM
+# ifdef CFG_FLASH_CHECKSUM
print_size (flash_size, "");
/*
* Compute and print flash CRC if flashchecksum is set to 'y'
@@ -648,9 +648,9 @@ void board_init_r (gd_t *id, ulong dest_addr)
);
}
putc ('\n');
-#else
+# else /* !CFG_FLASH_CHECKSUM */
print_size (flash_size, "\n");
-#endif /* CFG_FLASH_CHECKSUM */
+# endif /* CFG_FLASH_CHECKSUM */
} else {
puts (failed);
hang ();
@@ -658,14 +658,14 @@ void board_init_r (gd_t *id, ulong dest_addr)
bd->bi_flashstart = CFG_FLASH_BASE; /* update start of FLASH memory */
bd->bi_flashsize = flash_size; /* size of FLASH memory (final value) */
-#if defined(CONFIG_PCU_E) || defined(CONFIG_OXC)
+# if defined(CONFIG_PCU_E) || defined(CONFIG_OXC)
bd->bi_flashoffset = 0;
-#elif CFG_MONITOR_BASE == CFG_FLASH_BASE
+# elif CFG_MONITOR_BASE == CFG_FLASH_BASE
bd->bi_flashoffset = monitor_flash_len; /* reserved area for startup monitor */
-#else
+# else
bd->bi_flashoffset = 0;
-#endif
-#else
+# endif
+#else /* CFG_NO_FLASH */
bd->bi_flashsize = 0;
bd->bi_flashstart = 0;
OpenPOWER on IntegriCloud