Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 1 | /* |
Masahiro Yamada | f6e7f07 | 2015-05-29 17:30:00 +0900 | [diff] [blame] | 2 | * Copyright (C) 2011-2015 Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
Masahiro Yamada | f6e7f07 | 2015-05-29 17:30:00 +0900 | [diff] [blame] | 7 | #include <linux/io.h> |
Masahiro Yamada | a86ac95 | 2015-02-27 02:26:44 +0900 | [diff] [blame] | 8 | #include <mach/sg-regs.h> |
Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 9 | |
| 10 | void sg_init(void) |
| 11 | { |
| 12 | u32 tmp; |
| 13 | |
Masahiro Yamada | 89a7c77 | 2015-01-13 18:54:34 +0900 | [diff] [blame] | 14 | /* Input ports must be enabled before deasserting reset of cores */ |
Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 15 | tmp = readl(SG_IECTRL); |
Masahiro Yamada | 4484374 | 2015-01-19 22:31:10 +0900 | [diff] [blame] | 16 | tmp |= 1 << 6; |
Masahiro Yamada | 5894ca0 | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 17 | writel(tmp, SG_IECTRL); |
| 18 | } |