Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 2 | /* |
Masahiro Yamada | 9e3bb84 | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 3 | * Copyright (C) 2016-2017 Socionext Inc. |
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 4 | */ |
5 | |||||
6 | #include <linux/io.h> | ||||
Masahiro Yamada | 107b3fb | 2016-01-09 01:51:13 +0900 | [diff] [blame] | 7 | |
8 | #include "../init.h" | ||||
Masahiro Yamada | 107b3fb | 2016-01-09 01:51:13 +0900 | [diff] [blame] | 9 | #include "sbc-regs.h" |
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 10 | |
Masahiro Yamada | 9e3bb84 | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 11 | void uniphier_pxs2_sbc_init(void) |
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 12 | { |
Masahiro Yamada | f7f3905 | 2019-07-10 20:07:37 +0900 | [diff] [blame^] | 13 | if (!uniphier_sbc_is_enabled()) |
14 | return; | ||||
15 | |||||
Masahiro Yamada | 9e3bb84 | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 16 | uniphier_sbc_init_savepin(); |
17 | |||||
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 18 | /* necessary for ROM boot ?? */ |
19 | /* system bus output enable */ | ||||
20 | writel(0x17, PC0CTRL); | ||||
Masahiro Yamada | d8a10e7 | 2017-08-29 15:42:20 +0900 | [diff] [blame] | 21 | |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 22 | uniphier_pin_init("system-bus"); /* PXs3 */ |
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 23 | } |