Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 2 | /* |
Masahiro Yamada | 6f11cde | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 3 | * Copyright (C) 2011-2015 Panasonic Corporation |
4 | * Copyright (C) 2015-2017 Socionext Inc. | ||||
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 5 | */ |
6 | |||||
Masahiro Yamada | 663a23f | 2015-05-29 17:30:00 +0900 | [diff] [blame] | 7 | #include <linux/io.h> |
Masahiro Yamada | efdf340 | 2016-01-09 01:51:13 +0900 | [diff] [blame] | 8 | |
9 | #include "../init.h" | ||||
Masahiro Yamada | efdf340 | 2016-01-09 01:51:13 +0900 | [diff] [blame] | 10 | #include "sbc-regs.h" |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 11 | |
Masahiro Yamada | 6f11cde | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 12 | void uniphier_ld4_sbc_init(void) |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 13 | { |
Masahiro Yamada | 82ca1f1 | 2015-01-06 14:20:04 +0900 | [diff] [blame] | 14 | u32 tmp; |
15 | |||||
Masahiro Yamada | f4716dc | 2019-07-10 20:07:37 +0900 | [diff] [blame] | 16 | if (!uniphier_sbc_is_enabled()) |
17 | return; | ||||
18 | |||||
Masahiro Yamada | 6f11cde | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 19 | uniphier_sbc_init_savepin(); |
20 | |||||
Masahiro Yamada | 82ca1f1 | 2015-01-06 14:20:04 +0900 | [diff] [blame] | 21 | /* system bus output enable */ |
22 | tmp = readl(PC0CTRL); | ||||
23 | tmp &= 0xfffffcff; | ||||
24 | writel(tmp, PC0CTRL); | ||||
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 25 | } |