Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 1 | /* |
Masahiro Yamada | 9e3bb84 | 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 | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 4 | * |
5 | * SPDX-License-Identifier: GPL-2.0+ | ||||
6 | */ | ||||
7 | |||||
Masahiro Yamada | f6e7f07 | 2015-05-29 17:30:00 +0900 | [diff] [blame] | 8 | #include <linux/io.h> |
Masahiro Yamada | 107b3fb | 2016-01-09 01:51:13 +0900 | [diff] [blame] | 9 | |
10 | #include "../init.h" | ||||
Masahiro Yamada | 107b3fb | 2016-01-09 01:51:13 +0900 | [diff] [blame] | 11 | #include "sbc-regs.h" |
Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 12 | |
Masahiro Yamada | 9e3bb84 | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 13 | void uniphier_ld4_sbc_init(void) |
Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 14 | { |
Masahiro Yamada | 2661dfd | 2015-01-06 14:20:04 +0900 | [diff] [blame] | 15 | u32 tmp; |
16 | |||||
Masahiro Yamada | 9e3bb84 | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 17 | uniphier_sbc_init_savepin(); |
18 | |||||
Masahiro Yamada | 2661dfd | 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 | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 23 | } |