diff options
| author | Simon Glass <[email protected]> | 2017-03-31 08:40:32 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-04-05 16:36:51 -0400 |
| commit | 76b00aca4f1c13bc8f91a539e612abc70d0c692f (patch) | |
| tree | 35f0e984413ef3d44ff50c53e8adc418f10b40e2 /board/armadeus | |
| parent | abf7f4c7040b3914bea327243dcfac0ef840fbaf (diff) | |
board_f: Drop setup_dram_config() wrapper
By making dram_init_banksize() return an error code we can drop the
wrapper. Adjust this and clean up all implementations.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'board/armadeus')
| -rw-r--r-- | board/armadeus/apf27/apf27.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/armadeus/apf27/apf27.c b/board/armadeus/apf27/apf27.c index 16adf6e5ded..1abfe889492 100644 --- a/board/armadeus/apf27/apf27.c +++ b/board/armadeus/apf27/apf27.c @@ -193,7 +193,7 @@ int dram_init(void) return 0; } -void dram_init_banksize(void) +int dram_init_banksize(void) { gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].size = get_ram_size((void *)PHYS_SDRAM_1, @@ -204,6 +204,8 @@ void dram_init_banksize(void) PHYS_SDRAM_2_SIZE); else gd->bd->bi_dram[1].size = 0; + + return 0; } ulong board_get_usable_ram_top(ulong total_size) |
