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