X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fdave%2FPPChameleonEVB%2Fflash.c;h=2e1a9abc0857b8ae42bf30d24814d654f4d2814e;hb=ac8983bcba75576c50307b5e8dc8fb848740ee61;hp=5f67360a4542e6c9016bc3a1cdef67cb4c03518f;hpb=46a414dc12c7809ac3c3e82b6198a1f435d7489f;p=u-boot diff --git a/board/dave/PPChameleonEVB/flash.c b/board/dave/PPChameleonEVB/flash.c index 5f67360a45..2e1a9abc08 100644 --- a/board/dave/PPChameleonEVB/flash.c +++ b/board/dave/PPChameleonEVB/flash.c @@ -22,7 +22,7 @@ */ #include -#include +#include #include /* @@ -42,7 +42,7 @@ 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; int i; @@ -50,13 +50,17 @@ unsigned long flash_init (void) 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