Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 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> |
Masahiro Yamada | a86ac95 | 2015-02-27 02:26:44 +0900 | [diff] [blame] | 9 | #include <mach/led.h> |
Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 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 |