X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib_sh%2Fboard.c;h=b6be22ed8cf54ee36c99929a044788c892f20fcc;hb=6d0f6bcf337c5261c08fabe12982178c2c489d76;hp=6dfab4ec9e0c54c354cbc6584dcedc24c8e7e4f2;hpb=4a065abf926f128beb36d93449defa0d690e7fef;p=platform%2Fkernel%2Fu-boot.git diff --git a/lib_sh/board.c b/lib_sh/board.c index 6dfab4e..b6be22e 100644 --- a/lib_sh/board.c +++ b/lib_sh/board.c @@ -35,7 +35,7 @@ extern int timer_init(void); const char version_string[] = U_BOOT_VERSION" (" __DATE__ " - " __TIME__ ")"; -unsigned long monitor_flash_len = CFG_MONITOR_LEN; +unsigned long monitor_flash_len = CONFIG_SYS_MONITOR_LEN; static unsigned long mem_malloc_start; static unsigned long mem_malloc_end; @@ -44,8 +44,8 @@ static unsigned long mem_malloc_brk; static void mem_malloc_init(void) { - mem_malloc_start = (TEXT_BASE - CFG_GBL_DATA_SIZE - CFG_MALLOC_LEN); - mem_malloc_end = (mem_malloc_start + CFG_MALLOC_LEN - 16); + mem_malloc_start = (TEXT_BASE - CONFIG_SYS_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN); + mem_malloc_end = (mem_malloc_start + CONFIG_SYS_MALLOC_LEN - 16); mem_malloc_brk = mem_malloc_start; memset((void *) mem_malloc_start, 0, (mem_malloc_end - mem_malloc_start)); @@ -178,7 +178,7 @@ void sh_generic_init(void) bd_t *bd; init_fnc_t **init_fnc_ptr; - memset(gd, 0, CFG_GBL_DATA_SIZE); + memset(gd, 0, CONFIG_SYS_GBL_DATA_SIZE); gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */ @@ -188,12 +188,12 @@ void sh_generic_init(void) gd->cpu_clk = CONFIG_SYS_CLK_FREQ; bd = gd->bd; - bd->bi_memstart = CFG_SDRAM_BASE; - bd->bi_memsize = CFG_SDRAM_SIZE; - bd->bi_flashstart = CFG_FLASH_BASE; -#if defined(CFG_SRAM_BASE) && defined(CFG_SRAM_SIZE) - bd->bi_sramstart = CFG_SRAM_BASE; - bd->bi_sramsize = CFG_SRAM_SIZE; + bd->bi_memstart = CONFIG_SYS_SDRAM_BASE; + bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE; + bd->bi_flashstart = CONFIG_SYS_FLASH_BASE; +#if defined(CONFIG_SYS_SRAM_BASE) && defined(CONFIG_SYS_SRAM_SIZE) + bd->bi_sramstart = CONFIG_SYS_SRAM_BASE; + bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE; #endif bd->bi_baudrate = CONFIG_BAUDRATE;