diff options
author | Simon Glass <sjg@chromium.org> | 2015-02-07 11:51:38 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-02-12 10:35:30 -0700 |
commit | 00cca639d56e791e5bea16b0e77d9540651132fe (patch) | |
tree | 98552d9cceae93ebcca5e01b927182f3d66ea784 /arch/powerpc | |
parent | 6566041c0bf9523becf5292e45a0f5c3686ebdd4 (diff) | |
download | u-boot-imx-00cca639d56e791e5bea16b0e77d9540651132fe.zip u-boot-imx-00cca639d56e791e5bea16b0e77d9540651132fe.tar.gz u-boot-imx-00cca639d56e791e5bea16b0e77d9540651132fe.tar.bz2 |
powerpc: ppc4xx: Add ramboot config for glacier
Add a new ramboot config for glacier so that it is possible to test U-Boot
loaded over Ethernet instead of using JTAG.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c b/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c index 71bb9d7..7202c3f 100644 --- a/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c +++ b/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c @@ -424,6 +424,14 @@ phys_size_t initdram(int board_type) int write_recovery; phys_size_t dram_size = 0; + if (IS_ENABLED(CONFIG_SYS_RAMBOOT)) { + /* + * Reduce RAM size to avoid overwriting memory used by + * current stack? Not sure what is happening. + */ + return sdram_memsize() / 2; + } + num_dimm_banks = sizeof(iic0_dimm_addr); /*------------------------------------------------------------------ |