X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fdave%2FPPChameleonEVB%2Fflash.c;h=2e1a9abc0857b8ae42bf30d24814d654f4d2814e;hb=ac8983bcba75576c50307b5e8dc8fb848740ee61;hp=d57c58d80faacc4b11533a13e2352850074d6749;hpb=42d1f0394bef0624fc9664714d54bb137931d6a6;p=u-boot diff --git a/board/dave/PPChameleonEVB/flash.c b/board/dave/PPChameleonEVB/flash.c index d57c58d80f..2e1a9abc08 100644 --- a/board/dave/PPChameleonEVB/flash.c +++ b/board/dave/PPChameleonEVB/flash.c @@ -22,7 +22,7 @@ */ #include -#include +#include #include /* @@ -42,37 +42,44 @@ static void flash_get_offsets (ulong base, flash_info_t * info); unsigned long flash_init (void) { #ifdef __DEBUG_START_FROM_SRAM__ - return CFG_DUMMY_FLASH_SIZE; + return CONFIG_SYS_DUMMY_FLASH_SIZE; #else - unsigned long size_b0; + unsigned long size; int i; uint pbcr; - unsigned long base_b0; + unsigned long base; int size_val = 0; + debug("[%s, %d] Entering ...\n", __FUNCTION__, __LINE__); + debug("[%s, %d] flash_info = 0x%08X ...\n", __FUNCTION__, __LINE__, flash_info); + /* Init: no FLASHes known */ - for (i=0; i