Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Masahiro Yamada | 408dd77 | 2016-03-18 16:41:51 +0900 | [diff] [blame] | 2 | /* |
| 3 | * UniPhier SC (System Control) block registers for ARMv8 SoCs |
| 4 | * |
Masahiro Yamada | d11b0b7 | 2016-09-17 03:33:11 +0900 | [diff] [blame] | 5 | * Copyright (C) 2016 Socionext Inc. |
| 6 | * Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | 408dd77 | 2016-03-18 16:41:51 +0900 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef SC64_REGS_H |
| 10 | #define SC64_REGS_H |
| 11 | |
Masahiro Yamada | c84024c | 2019-07-10 20:07:41 +0900 | [diff] [blame] | 12 | #ifndef __ASSEMBLY__ |
| 13 | #include <linux/compiler.h> |
Masahiro Yamada | 8f74e79 | 2019-07-10 20:07:42 +0900 | [diff] [blame] | 14 | extern void __iomem *sc_base; |
Masahiro Yamada | c84024c | 2019-07-10 20:07:41 +0900 | [diff] [blame] | 15 | #endif |
Masahiro Yamada | 408dd77 | 2016-03-18 16:41:51 +0900 | [diff] [blame] | 16 | |
Masahiro Yamada | c84024c | 2019-07-10 20:07:41 +0900 | [diff] [blame] | 17 | #define SC_BASE 0x61840000 |
Masahiro Yamada | 408dd77 | 2016-03-18 16:41:51 +0900 | [diff] [blame] | 18 | |
Masahiro Yamada | c84024c | 2019-07-10 20:07:41 +0900 | [diff] [blame] | 19 | #define SC_RSTCTRL 0x2000 |
| 20 | #define SC_RSTCTRL3 0x2008 |
| 21 | #define SC_RSTCTRL4 0x200c |
| 22 | #define SC_RSTCTRL5 0x2010 |
| 23 | #define SC_RSTCTRL6 0x2014 |
| 24 | #define SC_RSTCTRL7 0x2018 |
| 25 | |
| 26 | #define SC_CLKCTRL 0x2100 |
| 27 | #define SC_CLKCTRL3 0x2108 |
| 28 | #define SC_CLKCTRL4 0x210c |
| 29 | #define SC_CLKCTRL5 0x2110 |
| 30 | #define SC_CLKCTRL6 0x2114 |
| 31 | #define SC_CLKCTRL7 0x2118 |
Masahiro Yamada | 408dd77 | 2016-03-18 16:41:51 +0900 | [diff] [blame] | 32 | |
Masahiro Yamada | c84024c | 2019-07-10 20:07:41 +0900 | [diff] [blame] | 33 | #define SC_CA72_GEARST 0x8000 |
| 34 | #define SC_CA72_GEARSET 0x8004 |
| 35 | #define SC_CA72_GEARUPD 0x8008 |
| 36 | #define SC_CA53_GEARST 0x8080 |
| 37 | #define SC_CA53_GEARSET 0x8084 |
| 38 | #define SC_CA53_GEARUPD 0x8088 |
Masahiro Yamada | 090785d | 2016-09-22 07:42:19 +0900 | [diff] [blame] | 39 | #define SC_CA_GEARUPD (1 << 0) |
| 40 | |
Masahiro Yamada | 408dd77 | 2016-03-18 16:41:51 +0900 | [diff] [blame] | 41 | #endif /* SC64_REGS_H */ |