blob: d0a51f239c3808c2beede8c86631089d3b5bed59 [file] [log] [blame]
Masahiro Yamada408dd772016-03-18 16:41:51 +09001/*
2 * UniPhier SC (System Control) block registers for ARMv8 SoCs
3 *
Masahiro Yamadad11b0b72016-09-17 03:33:11 +09004 * Copyright (C) 2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada408dd772016-03-18 16:41:51 +09006 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
9
10#ifndef SC64_REGS_H
11#define SC64_REGS_H
12
13#define SC_BASE_ADDR 0x61840000
14
Masahiro Yamada408dd772016-03-18 16:41:51 +090015#define SC_RSTCTRL (SC_BASE_ADDR | 0x2000)
16#define SC_RSTCTRL3 (SC_BASE_ADDR | 0x2008)
17#define SC_RSTCTRL4 (SC_BASE_ADDR | 0x200c)
18#define SC_RSTCTRL4_ETHER (1 << 6)
19#define SC_RSTCTRL4_NAND (1 << 0)
20#define SC_RSTCTRL5 (SC_BASE_ADDR | 0x2010)
21#define SC_RSTCTRL6 (SC_BASE_ADDR | 0x2014)
22#define SC_RSTCTRL7 (SC_BASE_ADDR | 0x2018)
23#define SC_RSTCTRL7_UMCSB (1 << 16)
24#define SC_RSTCTRL7_UMCA2 (1 << 10)
25#define SC_RSTCTRL7_UMCA1 (1 << 9)
26#define SC_RSTCTRL7_UMCA0 (1 << 8)
27#define SC_RSTCTRL7_UMC32 (1 << 2)
28#define SC_RSTCTRL7_UMC31 (1 << 1)
29#define SC_RSTCTRL7_UMC30 (1 << 0)
30
31#define SC_CLKCTRL (SC_BASE_ADDR | 0x2100)
32#define SC_CLKCTRL3 (SC_BASE_ADDR | 0x2108)
33#define SC_CLKCTRL4 (SC_BASE_ADDR | 0x210c)
Masahiro Yamada77857e22016-10-27 23:47:05 +090034#define SC_CLKCTRL4_MIO (1 << 10)
35#define SC_CLKCTRL4_STDMAC (1 << 8)
Masahiro Yamada408dd772016-03-18 16:41:51 +090036#define SC_CLKCTRL4_PERI (1 << 7)
37#define SC_CLKCTRL4_ETHER (1 << 6)
38#define SC_CLKCTRL4_NAND (1 << 0)
39#define SC_CLKCTRL5 (SC_BASE_ADDR | 0x2110)
40#define SC_CLKCTRL6 (SC_BASE_ADDR | 0x2114)
41#define SC_CLKCTRL7 (SC_BASE_ADDR | 0x2118)
42#define SC_CLKCTRL7_UMCSB (1 << 16)
43#define SC_CLKCTRL7_UMC32 (1 << 2)
44#define SC_CLKCTRL7_UMC31 (1 << 1)
45#define SC_CLKCTRL7_UMC30 (1 << 0)
46
Masahiro Yamada3cdbc1a2016-10-12 21:14:38 +090047#define SC_CA72_GEARST (SC_BASE_ADDR | 0x8000)
48#define SC_CA72_GEARSET (SC_BASE_ADDR | 0x8004)
49#define SC_CA72_GEARUPD (SC_BASE_ADDR | 0x8008)
Masahiro Yamada090785d2016-09-22 07:42:19 +090050#define SC_CA53_GEARST (SC_BASE_ADDR | 0x8080)
51#define SC_CA53_GEARSET (SC_BASE_ADDR | 0x8084)
52#define SC_CA53_GEARUPD (SC_BASE_ADDR | 0x8088)
53#define SC_CA_GEARUPD (1 << 0)
54
Masahiro Yamada408dd772016-03-18 16:41:51 +090055#endif /* SC64_REGS_H */