]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ppc4xx: Fix problem with CONFIG_MAX_MEM_MAPPED in include/asm-ppc/config.h
authorStefan Roese <sr@denx.de>
Wed, 11 Feb 2009 08:37:12 +0000 (09:37 +0100)
committerStefan Roese <sr@denx.de>
Thu, 12 Feb 2009 05:08:07 +0000 (06:08 +0100)
CONFIG_SDRAM_PPC4xx_IBM_DDR2 is not set when include/asm-ppc/config.h is
included. So for katmai, CONFIG_MAX_MEM_MAPPED will get set to 256MB.

It makes perfect sense to set CONFIG_MAX_MEM_MAPPED to 2GB for all PPC4xx
boards right now.

Signed-off-by: Stefan Roese <sr@denx.de>
include/asm-ppc/config.h
include/configs/katmai.h

index 6d27cb1db34537918dd0a7d885ff40d74b6d0814..2a4ee15b7d8a5f13b1b840e24e475be7221fe914 100644 (file)
 #define _ASM_CONFIG_H_
 
 #ifndef CONFIG_MAX_MEM_MAPPED
-#if defined(CONFIG_SDRAM_PPC4xx_IBM_DDR2) && defined(CONFIG_SPD_EEPROM)
+#if defined(CONFIG_4xx)
 #define CONFIG_MAX_MEM_MAPPED  ((phys_size_t)2 << 30)
 #else
-#define CONFIG_MAX_MEM_MAPPED (256 << 20)
+#define CONFIG_MAX_MEM_MAPPED  (256 << 20)
 #endif
 #endif
 
index ea6cf0d23fc1b30273b16bf9bd7e127a631b2003..0d89594f20338d51b2778ea24801ed533169166a 100644 (file)
@@ -45,7 +45,6 @@
  */
 #define CONFIG_PHYS_64BIT
 #define        CONFIG_VERY_BIG_RAM
-#define CONFIG_MAX_MEM_MAPPED  ((phys_size_t)2 << 30)
 
 /*
  * Include common defines/options for all AMCC eval boards