Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Masahiro Yamada | 9e3bb84 | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016-2017 Socionext Inc. |
Masahiro Yamada | 9e3bb84 | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <spl.h> |
| 8 | #include <linux/io.h> |
| 9 | |
| 10 | #include "../init.h" |
| 11 | #include "sbc-regs.h" |
| 12 | |
| 13 | void uniphier_ld11_sbc_init(void) |
| 14 | { |
| 15 | uniphier_sbc_init_savepin(); |
| 16 | |
| 17 | /* necessary for ROM boot ?? */ |
| 18 | /* system bus output enable */ |
| 19 | writel(0x17, PC0CTRL); |
| 20 | |
| 21 | /* pins for NAND and System Bus are multiplexed */ |
| 22 | if (spl_boot_device() != BOOT_DEVICE_NAND) |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 23 | uniphier_pin_init("system-bus"); |
Masahiro Yamada | 9e3bb84 | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 24 | } |