]> git.sur5r.net Git - u-boot/blobdiff - board/dave/PPChameleonEVB/PPChameleonEVB.c
* Fix flash parameters passed to Linux for PPChameleon board
[u-boot] / board / dave / PPChameleonEVB / PPChameleonEVB.c
index 603bb1e12a3441239218935b42237bb84ece3465..b08b119600f42873514ff78dae819d9ffd4cc44b 100644 (file)
@@ -96,11 +96,15 @@ int misc_init_f (void)
        return 0;  /* dummy implementation */
 }
 
+extern flash_info_t flash_info[];      /* info for FLASH chips */
 
 int misc_init_r (void)
 {
-#if 0 /* test-only */
        DECLARE_GLOBAL_DATA_PTR;
+
+       /* adjust flash start and size as well as the offset */
+       gd->bd->bi_flashstart = 0 - flash_info[0].size;
+       gd->bd->bi_flashoffset= flash_info[0].size - CFG_MONITOR_LEN;
 #if 0
        volatile unsigned short *fpga_mode =
                (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL);
@@ -192,8 +196,6 @@ int misc_init_r (void)
        *duart0_mcr = 0x08;
        *duart1_mcr = 0x08;
 #endif
-#endif
-
        return (0);
 }