arm: socfpga: spl: printout sdram size
[oweals/u-boot.git] / arch / arm / mach-uniphier / board_common.c
1 /*
2  * Copyright (C) 2012-2014 Panasonic Corporation
3  *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <mach/led.h>
10
11 /*
12  * Routine: board_init
13  * Description: Early hardware init.
14  */
15 int board_init(void)
16 {
17         led_write(U, B, O, O);
18
19         return 0;
20 }
21
22 #if CONFIG_NR_DRAM_BANKS >= 2
23 void dram_init_banksize(void)
24 {
25         DECLARE_GLOBAL_DATA_PTR;
26
27         gd->bd->bi_dram[0].start = CONFIG_SDRAM0_BASE;
28         gd->bd->bi_dram[0].size  = CONFIG_SDRAM0_SIZE;
29         gd->bd->bi_dram[1].start = CONFIG_SDRAM1_BASE;
30         gd->bd->bi_dram[1].size  = CONFIG_SDRAM1_SIZE;
31 }
32 #endif