Skip to content
Snippets Groups Projects
Commit 87c90639 authored by Kumar Gala's avatar Kumar Gala Committed by Wolfgang Denk
Browse files

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: default avatarKumar Gala <galak@kernel.crashing.org>
Acked-by: default avatarStefan Roese <sr@denx.de>
parent 47d41cc3
No related branches found
No related tags found
No related merge requests found
...@@ -160,9 +160,6 @@ ...@@ -160,9 +160,6 @@
* SDRAM. This is because we only map the first 2GB on such systems, and therefore * SDRAM. This is because we only map the first 2GB on such systems, and therefore
* the ECC parity byte of the remaining area can't be written. * the ECC parity byte of the remaining area can't be written.
*/ */
#ifndef CONFIG_MAX_MEM_MAPPED
#define CONFIG_MAX_MEM_MAPPED ((phys_size_t)2 << 30)
#endif
/* /*
* Board-specific Platform code can reimplement spd_ddr_init_hang () if needed * Board-specific Platform code can reimplement spd_ddr_init_hang () if needed
......
...@@ -21,4 +21,12 @@ ...@@ -21,4 +21,12 @@
#ifndef _ASM_CONFIG_H_ #ifndef _ASM_CONFIG_H_
#define _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 #endif
...@@ -352,9 +352,6 @@ init_fnc_t *init_sequence[] = { ...@@ -352,9 +352,6 @@ init_fnc_t *init_sequence[] = {
NULL, /* Terminate this list */ NULL, /* Terminate this list */
}; };
#ifndef CONFIG_MAX_MEM_MAPPED
#define CONFIG_MAX_MEM_MAPPED (256 << 20)
#endif
ulong get_effective_memsize(void) ulong get_effective_memsize(void)
{ {
#ifndef CONFIG_VERY_BIG_RAM #ifndef CONFIG_VERY_BIG_RAM
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment