From 87c9063963561d3d01064be34d0c30855a56587b Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 5 Feb 2009 20:40:58 -0600 Subject: 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 Acked-by: Stefan Roese --- include/asm-ppc/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/asm-ppc') 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 -- cgit v1.1