Skip to contentSkip to conversation

fsl-ddr: Allow system to boot if we have more than 4G of memory

PATCH New Kumar Gala 2 participants 2 messages Feb 11, 2009 – Feb 12, 2009

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 fsl-ddr: Allow system to boot if we have more than 4G of memory

Previously if we >=4G of memory and !CONFIG_PHYS_64BIT we'd report an error and hang. Instead of doing that since DDR is mapped in the lowest priority LAWs we setup the DDR controller and the max amount of memory we report back is what we can map (CONFIG_MAX_MEM_MAPPED)

---
 cpu/mpc8xxx/ddr/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
cpu/mpc8xxx/ddr/main.c +1 -1
index f1ad132..305f7fb 100644
@@ -429,7 +429,7 @@ fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned int start_step)
 		if (max_end >= 0xff) {
 			printf("This U-Boot only supports < 4G of DDR\n");
 			printf("You could rebuild it with CONFIG_PHYS_64BIT\n");
-			return 0;	/* Ensure DDR setup failure. */
+			return CONFIG_MAX_MEM_MAPPED;
 		}
 #endif
 
Signature · 1 line
1.5.6.6
#1 lore raw

PATCH 1/1 fsl-ddr: Allow system to boot if we have more than 4G of memory

Quoted 6 lines · Kumar Gala

Previously if we >=4G of memory and !CONFIG_PHYS_64BIT we'd report an error and hang. Instead of doing that since DDR is mapped in the lowest priority LAWs we setup the DDR controller and the max amount of memory we report back is what we can map (CONFIG_MAX_MEM_MAPPED)

Tested on 8641, fixes my boot issue in the config mentioned.

Quoted 26 lines

---
cpu/mpc8xxx/ddr/main.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
cpu/mpc8xxx/ddr/main.c +1 -1
index f1ad132..305f7fb 100644
@@ -429,7 +429,7 @@ fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned  
 int start_step)
 		if (max_end >= 0xff) {
 			printf("This U-Boot only supports < 4G of DDR\n");
 			printf("You could rebuild it with CONFIG_PHYS_64BIT\n");
-			return 0;	/* Ensure DDR setup failure. */
+			return CONFIG_MAX_MEM_MAPPED;
 		}
 #endif
Signature · 7 lines
-- 
1.5.6.6

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot