* [U-Boot] [PATCH] fsl-ddr: Allow system to boot if we have more than 4G of memory
@ 2009-02-11 5:53 Kumar Gala
2009-02-12 19:46 ` Becky Bruce
0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2009-02-11 5:53 UTC (permalink / raw)
To: u-boot
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)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
cpu/mpc8xxx/ddr/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpu/mpc8xxx/ddr/main.c b/cpu/mpc8xxx/ddr/main.c
index f1ad132..305f7fb 100644
--- a/cpu/mpc8xxx/ddr/main.c
+++ b/cpu/mpc8xxx/ddr/main.c
@@ -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
--
1.5.6.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] fsl-ddr: Allow system to boot if we have more than 4G of memory
2009-02-11 5:53 [U-Boot] [PATCH] fsl-ddr: Allow system to boot if we have more than 4G of memory Kumar Gala
@ 2009-02-12 19:46 ` Becky Bruce
0 siblings, 0 replies; 2+ messages in thread
From: Becky Bruce @ 2009-02-12 19:46 UTC (permalink / raw)
To: u-boot
On Feb 10, 2009, at 11:53 PM, Kumar Gala wrote:
> 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)
>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Tested on 8641, fixes my boot issue in the config mentioned.
Acked-by: Becky Bruce <beckyb@kernel.crashing.org>
>
> ---
> cpu/mpc8xxx/ddr/main.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/cpu/mpc8xxx/ddr/main.c b/cpu/mpc8xxx/ddr/main.c
> index f1ad132..305f7fb 100644
> --- a/cpu/mpc8xxx/ddr/main.c
> +++ b/cpu/mpc8xxx/ddr/main.c
> @@ -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
>
> --
> 1.5.6.6
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-12 19:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 5:53 [U-Boot] [PATCH] fsl-ddr: Allow system to boot if we have more than 4G of memory Kumar Gala
2009-02-12 19:46 ` Becky Bruce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox