Patrice Chotard | 2f32979 | 2017-02-21 13:37:12 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Board init file for STiH410-B2260 |
| 3 | * |
| 4 | * (C) Copyright 2017 Patrice Chotard <patrice.chotard@st.com> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | |
| 11 | DECLARE_GLOBAL_DATA_PTR; |
| 12 | |
| 13 | int dram_init(void) |
| 14 | { |
| 15 | gd->ram_size = PHYS_SDRAM_1_SIZE; |
| 16 | return 0; |
| 17 | } |
| 18 | |
Simon Glass | 2f949c3 | 2017-03-31 08:40:32 -0600 | [diff] [blame] | 19 | int dram_init_banksize(void) |
Patrice Chotard | 2f32979 | 2017-02-21 13:37:12 +0100 | [diff] [blame] | 20 | { |
| 21 | gd->bd->bi_dram[0].start = PHYS_SDRAM_1; |
| 22 | gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; |
Simon Glass | 2f949c3 | 2017-03-31 08:40:32 -0600 | [diff] [blame] | 23 | |
| 24 | return 0; |
Patrice Chotard | 2f32979 | 2017-02-21 13:37:12 +0100 | [diff] [blame] | 25 | } |
| 26 | |
Patrice Chotard | 411b3fc | 2017-03-20 15:21:36 +0100 | [diff] [blame] | 27 | #ifndef CONFIG_SYS_DCACHE_OFF |
| 28 | void enable_caches(void) |
| 29 | { |
| 30 | /* Enable D-cache. I-cache is already enabled in start.S */ |
| 31 | dcache_enable(); |
| 32 | } |
| 33 | #endif |
| 34 | |
Patrice Chotard | 2f32979 | 2017-02-21 13:37:12 +0100 | [diff] [blame] | 35 | int board_init(void) |
| 36 | { |
| 37 | return 0; |
| 38 | } |