diff options
author | Simon Glass | 2017-03-31 08:40:25 -0600 |
---|---|---|
committer | Tom Rini | 2017-04-05 13:59:20 -0400 |
commit | 088454cde245b4d431ce0181be8b3cbceea059d6 (patch) | |
tree | ec86ebe66961c9b06ab4b39ec83fd81d4a86e9be /board/xilinx | |
parent | 52c411805c090999f015df8bdf8016fb684746d0 (diff) |
board_f: Drop return value from initdram()
At present we cannot use this function as an init sequence call without a
wrapper, since it returns the RAM size. Adjust it to set the RAM size in
global_data instead, and return 0 on success.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/xilinx')
-rw-r--r-- | board/xilinx/ppc405-generic/xilinx_ppc405_generic.c | 8 | ||||
-rw-r--r-- | board/xilinx/ppc440-generic/xilinx_ppc440_generic.c | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c b/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c index dfdd3f23103..6148a4b69c1 100644 --- a/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c +++ b/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c @@ -10,6 +10,8 @@ #include <common.h> #include <asm/processor.h> +DECLARE_GLOBAL_DATA_PTR; + ulong get_PCI_freq(void) { return 0; @@ -21,10 +23,12 @@ int checkboard(void) return 0; } -phys_size_t initdram(void) +int initdram(void) { - return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR, + gd->ram_size = get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR, CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024); + + return 0; } void get_sys_info(sys_info_t *sys_info) diff --git a/board/xilinx/ppc440-generic/xilinx_ppc440_generic.c b/board/xilinx/ppc440-generic/xilinx_ppc440_generic.c index 67fd6681573..d7e6aee706d 100644 --- a/board/xilinx/ppc440-generic/xilinx_ppc440_generic.c +++ b/board/xilinx/ppc440-generic/xilinx_ppc440_generic.c @@ -11,16 +11,20 @@ #include <netdev.h> #include <asm/processor.h> +DECLARE_GLOBAL_DATA_PTR; + int checkboard(void) { puts("Xilinx PPC440 Generic Board\n"); return 0; } -phys_size_t initdram(void) +int initdram(void) { - return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR, + gd->ram_size = get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR, CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024); + + return 0; } void get_sys_info(sys_info_t *sys_info) |