blob: f171bd9d02a422bfa857fd3c2426cbf7550ed1a6 [file] [log] [blame]
Jacky Baid3d79722020-06-03 14:24:38 +08001/*
2 * Copyright 2020 NXP
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef GPC_REG_H
8#define GPC_REG_H
9
10#define LPCR_A53_BSC 0x0
11#define LPCR_A53_BSC2 0x108
12#define LPCR_A53_AD 0x4
13#define LPCR_M4 0x8
14#define SLPCR 0x14
15#define MST_CPU_MAPPING 0x18
16#define MLPCR 0x20
17#define PGC_ACK_SEL_A53 0x24
18#define IMR1_CORE0_A53 0x30
19#define IMR1_CORE1_A53 0x40
20#define IMR1_CORE2_A53 0x1C0
21#define IMR1_CORE3_A53 0x1D0
22#define IMR1_CORE0_M4 0x50
23#define SLT0_CFG 0xB0
24#define GPC_PU_PWRHSK 0x1FC
25#define PGC_CPU_0_1_MAPPING 0xEC
26#define CPU_PGC_UP_TRG 0xF0
27#define PU_PGC_UP_TRG 0xF8
28#define CPU_PGC_DN_TRG 0xFC
29#define PU_PGC_DN_TRG 0x104
30#define LPS_CPU1 0x114
31#define A53_CORE0_PGC 0x800
32#define A53_PLAT_PGC 0x900
33#define PLAT_PGC_PCR 0x900
34#define NOC_PGC_PCR 0xa40
35#define PGC_SCU_TIMING 0x910
36
37#define MASK_DSM_TRIGGER_A53 BIT(31)
38#define IRQ_SRC_A53_WUP BIT(30)
39#define IRQ_SRC_A53_WUP_SHIFT 30
40#define IRQ_SRC_C1 BIT(29)
41#define IRQ_SRC_C0 BIT(28)
42#define IRQ_SRC_C3 BIT(23)
43#define IRQ_SRC_C2 BIT(22)
44#define CPU_CLOCK_ON_LPM BIT(14)
45#define A53_CLK_ON_LPM BIT(14)
46#define MASTER0_LPM_HSK BIT(6)
47#define MASTER1_LPM_HSK BIT(7)
48#define MASTER2_LPM_HSK BIT(8)
49
50#define L2PGE BIT(31)
51#define EN_L2_WFI_PDN BIT(5)
52#define EN_PLAT_PDN BIT(4)
53
54#define SLPCR_EN_DSM BIT(31)
55#define SLPCR_RBC_EN BIT(30)
56#define SLPCR_A53_FASTWUP_STOP_MODE BIT(17)
57#define SLPCR_A53_FASTWUP_WAIT_MODE BIT(16)
58#define SLPCR_VSTBY BIT(2)
59#define SLPCR_SBYOS BIT(1)
60#define SLPCR_BYPASS_PMIC_READY BIT(0)
61#define SLPCR_RBC_COUNT_SHIFT 24
62#define SLPCR_STBY_COUNT_SHFT 3
63
64#define A53_DUMMY_PDN_ACK BIT(15)
65#define A53_DUMMY_PUP_ACK BIT(31)
66#define A53_PLAT_PDN_ACK BIT(2)
67#define A53_PLAT_PUP_ACK BIT(18)
68#define NOC_PDN_SLT_CTRL BIT(10)
69#define NOC_PUP_SLT_CTRL BIT(11)
70#define NOC_PGC_PDN_ACK BIT(3)
71#define NOC_PGC_PUP_ACK BIT(19)
72
73#define DDRMIX_PWR_REQ BIT(5)
74#define DDRMIX_ADB400_SYNC BIT(1)
75#define DDRMIX_ADB400_ACK BIT(18)
76#define DDRMIX_PGC 0xd40
77
78#define PLAT_PUP_SLT_CTRL BIT(9)
79#define PLAT_PDN_SLT_CTRL BIT(8)
80
81#define SLT_PLAT_PDN BIT(8)
82#define SLT_PLAT_PUP BIT(9)
83
84#define MASTER1_MAPPING BIT(1)
85#define MASTER2_MAPPING BIT(2)
86
Jacky Baiad818162020-07-22 16:00:50 +080087#define IRQ_IMR_NUM U(4)
88
Jacky Baid3d79722020-06-03 14:24:38 +080089#endif /* GPC_REG_H */