summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2009-02-06 02:40:58 (GMT)
committerWolfgang Denk <wd@denx.de>2009-02-09 23:44:13 (GMT)
commit87c9063963561d3d01064be34d0c30855a56587b (patch)
treec63493e36e7c76cfd7b006385a839ec9f77aa606 /include
parent47d41cc3a11a03c6d56146d056145df73f47eb50 (diff)
downloadu-boot-87c9063963561d3d01064be34d0c30855a56587b.tar.xz
ppc: Move CONFIG_MAX_MEM_MAPPED to common config.h
Moved CONFIG_MAX_MEM_MAPPED to the asm/config.h so its kept consistent between the two current users (lib_ppc/board.c, 44x SPD DDR2). Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-ppc/config.h b/include/asm-ppc/config.h
index 049c44e..6d27cb1 100644
--- a/include/asm-ppc/config.h
+++ b/include/asm-ppc/config.h
@@ -21,4 +21,12 @@
#ifndef _ASM_CONFIG_H_
#define _ASM_CONFIG_H_
+#ifndef CONFIG_MAX_MEM_MAPPED
+#if defined(CONFIG_SDRAM_PPC4xx_IBM_DDR2) && defined(CONFIG_SPD_EEPROM)
+#define CONFIG_MAX_MEM_MAPPED ((phys_size_t)2 << 30)
+#else
+#define CONFIG_MAX_MEM_MAPPED (256 << 20)
+#endif
+#endif
+
#endif