Chris Packham | 9281f74 | 2024-11-26 08:55:53 +1300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | |||||
3 | #include <config.h> | ||||
4 | #include <asm/global_data.h> | ||||
5 | #include <linux/io.h> | ||||
6 | |||||
7 | DECLARE_GLOBAL_DATA_PTR; | ||||
8 | |||||
9 | #define DEVICE_BUS_SYNC_CTRL 0xF27004C8 | ||||
10 | |||||
11 | int board_init(void) | ||||
12 | { | ||||
13 | gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100; | ||||
14 | |||||
15 | /* DEV_READYn is not needed for NVS, ignore it when accessing CS1 */ | ||||
16 | writel(0x00004001, DEVICE_BUS_SYNC_CTRL); | ||||
17 | |||||
18 | return 0; | ||||
19 | } |