]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ppc4xx: update PMC440 board support
authorMatthias Fuchs <matthias.fuchs@esd.eu>
Fri, 24 Oct 2014 10:44:40 +0000 (12:44 +0200)
committerTom Rini <trini@ti.com>
Mon, 27 Oct 2014 21:54:13 +0000 (17:54 -0400)
- switch to GENERIC_BOARD
- fix env support from eeprom

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
board/esd/pmc440/cmd_pmc440.c
include/configs/PMC440.h

index 3481e46436a8e4f7bd5e0ea2b11170f49d86a690..40b135f2ba0e15ee1fe267cd89e6d88f7bdf6de9 100644 (file)
@@ -347,16 +347,16 @@ int do_painit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                return 1;
        }
 
-       base = gd->bd->bi_memsize;
+       base = (u32)gd->ram_size;
 #if defined(CONFIG_LOGBUFFER)
        base -= LOGBUFF_LEN + LOGBUFF_OVERHEAD;
 #endif
        /*
-        * gd->bd->bi_memsize == physical ram size - CONFIG_SYS_MEM_TOP_HIDE
+        * gd->ram_size == physical ram size - CONFIG_SYS_MEM_TOP_HIDE
         */
        param = base - (pram << 10);
        printf("PARAM: @%08x\n", param);
-       debug("memsize=0x%08x, base=0x%08x\n", (u32)gd->bd->bi_memsize, base);
+       debug("memsize=0x%08x, base=0x%08x\n", (u32)gd->ram_size, base);
 
        /* clear entire PA ram */
        memset((void*)param, 0, (pram << 10));
index c5e2f164ce0921258d3239bc1928067990d7ca18..c29429d368a6e96014f3a6accf6185678ac62822 100644 (file)
@@ -29,6 +29,9 @@
 #define CONFIG_SYS_TEXT_BASE   0xFFF90000
 #endif
 
+#define CONFIG_SYS_GENERIC_BOARD
+#define CONFIG_DISPLAY_BOARDINFO
+
 #define CONFIG_SYS_CLK_FREQ    33333400
 
 #if 0 /* temporary disabled because OS/9 does not like dcache on startup */
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_EEPROM
+#define CONFIG_I2C_ENV_EEPROM_BUS      0
 #define CONFIG_ENV_OFFSET              0       /* environment starts at the beginning of the EEPROM */
 #define CONFIG_ENV_SIZE                0x1000  /* 4096 bytes may be used for env vars */
 #endif