summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Brunck <holger.brunck@keymile.com>2014-11-06 14:54:18 +0100
committerYork Sun <yorksun@freescale.com>2014-12-05 08:06:10 -0800
commitab23b9a024e5f4b103f06674e2fcca5ea343b148 (patch)
tree04915a63de0bc290a985bed0d8391bb0d1346349
parent653c28f377c58021d2c9c61ca35dcad50b4866b4 (diff)
downloadu-boot-imx-ab23b9a024e5f4b103f06674e2fcca5ea343b148.zip
u-boot-imx-ab23b9a024e5f4b103f06674e2fcca5ea343b148.tar.gz
u-boot-imx-ab23b9a024e5f4b103f06674e2fcca5ea343b148.tar.bz2
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 <holger.brunck@keymile.com> cc: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Wolfgang Denk <wd@denx.de> Reviewed-by: York Sun <yorksun@freescale.com>
-rw-r--r--board/keymile/km82xx/km82xx.c2
-rw-r--r--include/configs/km82xx.h3
2 files changed, 0 insertions, 5 deletions
diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c
index e200935..bf84676 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 69ba66a..14fd290 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)