km/km82xx: remove CONFIG_SYS_RAMBOOT
authorHolger Brunck <holger.brunck@keymile.com>
Thu, 6 Nov 2014 13:54:18 +0000 (14:54 +0100)
committerYork Sun <yorksun@freescale.com>
Fri, 5 Dec 2014 16:06:10 +0000 (08:06 -0800)
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 <holger.brunck@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Wolfgang Denk <wd@denx.de>
Reviewed-by: York Sun <yorksun@freescale.com>
board/keymile/km82xx/km82xx.c
include/configs/km82xx.h

index e2009357de8c648587086abca8370afb8b960145..bf84676b9bd900accc072148bbb70e4a0259f4a0 100644 (file)
@@ -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();
 
index 69ba66ae6efb45dd8aa0ef91daaac64bbbfaf0f1..14fd290be1f3c7a7da01acbcd559fc5852b3fb21 100644 (file)
        ""
 
 #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)