blob: 5f2d5f6f5b9cdb2b3dc3e76ce55e2ecc69c0704f [file] [log] [blame]
Masahiro Yamada5894ca02014-10-03 19:21:06 +09001/*
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>
Masahiro Yamadaa86ac952015-02-27 02:26:44 +09009#include <mach/led.h>
Masahiro Yamada5894ca02014-10-03 19:21:06 +090010
11/*
12 * Routine: board_init
13 * Description: Early hardware init.
14 */
15int board_init(void)
16{
17 led_write(U, B, O, O);
18
19 return 0;
20}
21
22#if CONFIG_NR_DRAM_BANKS >= 2
23void 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