From: Holger Brunck Date: Thu, 6 Nov 2014 13:54:18 +0000 (+0100) Subject: km/km82xx: remove CONFIG_SYS_RAMBOOT X-Git-Tag: v2015.01-rc3~1^2~31 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ab23b9a024e5f4b103f06674e2fcca5ea343b148;p=u-boot km/km82xx: remove CONFIG_SYS_RAMBOOT This define is never set in our setup, so we can remove it safely. The former code causes cppcheck to complain about: [board/keymile/km82xx/km82xx.c:311]: (error) Uninitialized variable: psize Signed-off-by: Holger Brunck cc: Valentin Longchamp cc: Wolfgang Denk Reviewed-by: York Sun --- diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c index e2009357de..bf84676b9b 100644 --- a/board/keymile/km82xx/km82xx.c +++ b/board/keymile/km82xx/km82xx.c @@ -300,11 +300,9 @@ phys_size_t initdram(int board_type) out_8(&memctl->memc_psrt, CONFIG_SYS_PSRT); out_be16(&memctl->memc_mptpr, CONFIG_SYS_MPTPR); -#ifndef CONFIG_SYS_RAMBOOT /* 60x SDRAM setup: */ psize = probe_sdram(memctl); -#endif /* CONFIG_SYS_RAMBOOT */ icache_enable(); diff --git a/include/configs/km82xx.h b/include/configs/km82xx.h index 69ba66ae6e..14fd290be1 100644 --- a/include/configs/km82xx.h +++ b/include/configs/km82xx.h @@ -207,9 +207,6 @@ "" #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE -#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) -#define CONFIG_SYS_RAMBOOT -#endif #define CONFIG_SYS_MONITOR_LEN (768 << 10)