Home | History | Annotate | Line # | Download | only in clock
      1  1.1  jmcneill /*	$NetBSD: rk3568-cru.h,v 1.1.1.1 2021/11/07 16:50:00 jmcneill Exp $	*/
      2  1.1  jmcneill 
      3  1.1  jmcneill /* SPDX-License-Identifier: GPL-2.0 */
      4  1.1  jmcneill /*
      5  1.1  jmcneill  * Copyright (c) 2021 Rockchip Electronics Co. Ltd.
      6  1.1  jmcneill  * Author: Elaine Zhang <zhangqing (at) rock-chips.com>
      7  1.1  jmcneill  */
      8  1.1  jmcneill 
      9  1.1  jmcneill #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3568_H
     10  1.1  jmcneill #define _DT_BINDINGS_CLK_ROCKCHIP_RK3568_H
     11  1.1  jmcneill 
     12  1.1  jmcneill /* pmucru-clocks indices */
     13  1.1  jmcneill 
     14  1.1  jmcneill /* pmucru plls */
     15  1.1  jmcneill #define PLL_PPLL		1
     16  1.1  jmcneill #define PLL_HPLL		2
     17  1.1  jmcneill 
     18  1.1  jmcneill /* pmucru clocks */
     19  1.1  jmcneill #define XIN_OSC0_DIV		4
     20  1.1  jmcneill #define CLK_RTC_32K		5
     21  1.1  jmcneill #define CLK_PMU			6
     22  1.1  jmcneill #define CLK_I2C0		7
     23  1.1  jmcneill #define CLK_RTC32K_FRAC		8
     24  1.1  jmcneill #define CLK_UART0_DIV		9
     25  1.1  jmcneill #define CLK_UART0_FRAC		10
     26  1.1  jmcneill #define SCLK_UART0		11
     27  1.1  jmcneill #define DBCLK_GPIO0		12
     28  1.1  jmcneill #define CLK_PWM0		13
     29  1.1  jmcneill #define CLK_CAPTURE_PWM0_NDFT	14
     30  1.1  jmcneill #define CLK_PMUPVTM		15
     31  1.1  jmcneill #define CLK_CORE_PMUPVTM	16
     32  1.1  jmcneill #define CLK_REF24M		17
     33  1.1  jmcneill #define XIN_OSC0_USBPHY0_G	18
     34  1.1  jmcneill #define CLK_USBPHY0_REF		19
     35  1.1  jmcneill #define XIN_OSC0_USBPHY1_G	20
     36  1.1  jmcneill #define CLK_USBPHY1_REF		21
     37  1.1  jmcneill #define XIN_OSC0_MIPIDSIPHY0_G	22
     38  1.1  jmcneill #define CLK_MIPIDSIPHY0_REF	23
     39  1.1  jmcneill #define XIN_OSC0_MIPIDSIPHY1_G	24
     40  1.1  jmcneill #define CLK_MIPIDSIPHY1_REF	25
     41  1.1  jmcneill #define CLK_WIFI_DIV		26
     42  1.1  jmcneill #define CLK_WIFI_OSC0		27
     43  1.1  jmcneill #define CLK_WIFI		28
     44  1.1  jmcneill #define CLK_PCIEPHY0_DIV	29
     45  1.1  jmcneill #define CLK_PCIEPHY0_OSC0	30
     46  1.1  jmcneill #define CLK_PCIEPHY0_REF	31
     47  1.1  jmcneill #define CLK_PCIEPHY1_DIV	32
     48  1.1  jmcneill #define CLK_PCIEPHY1_OSC0	33
     49  1.1  jmcneill #define CLK_PCIEPHY1_REF	34
     50  1.1  jmcneill #define CLK_PCIEPHY2_DIV	35
     51  1.1  jmcneill #define CLK_PCIEPHY2_OSC0	36
     52  1.1  jmcneill #define CLK_PCIEPHY2_REF	37
     53  1.1  jmcneill #define CLK_PCIE30PHY_REF_M	38
     54  1.1  jmcneill #define CLK_PCIE30PHY_REF_N	39
     55  1.1  jmcneill #define CLK_HDMI_REF		40
     56  1.1  jmcneill #define XIN_OSC0_EDPPHY_G	41
     57  1.1  jmcneill #define PCLK_PDPMU		42
     58  1.1  jmcneill #define PCLK_PMU		43
     59  1.1  jmcneill #define PCLK_UART0		44
     60  1.1  jmcneill #define PCLK_I2C0		45
     61  1.1  jmcneill #define PCLK_GPIO0		46
     62  1.1  jmcneill #define PCLK_PMUPVTM		47
     63  1.1  jmcneill #define PCLK_PWM0		48
     64  1.1  jmcneill #define CLK_PDPMU		49
     65  1.1  jmcneill #define SCLK_32K_IOE		50
     66  1.1  jmcneill 
     67  1.1  jmcneill #define CLKPMU_NR_CLKS		(SCLK_32K_IOE + 1)
     68  1.1  jmcneill 
     69  1.1  jmcneill /* cru-clocks indices */
     70  1.1  jmcneill 
     71  1.1  jmcneill /* cru plls */
     72  1.1  jmcneill #define PLL_APLL		1
     73  1.1  jmcneill #define PLL_DPLL		2
     74  1.1  jmcneill #define PLL_CPLL		3
     75  1.1  jmcneill #define PLL_GPLL		4
     76  1.1  jmcneill #define PLL_VPLL		5
     77  1.1  jmcneill #define PLL_NPLL		6
     78  1.1  jmcneill 
     79  1.1  jmcneill /* cru clocks */
     80  1.1  jmcneill #define CPLL_333M		9
     81  1.1  jmcneill #define ARMCLK			10
     82  1.1  jmcneill #define USB480M			11
     83  1.1  jmcneill #define ACLK_CORE_NIU2BUS	18
     84  1.1  jmcneill #define CLK_CORE_PVTM		19
     85  1.1  jmcneill #define CLK_CORE_PVTM_CORE	20
     86  1.1  jmcneill #define CLK_CORE_PVTPLL		21
     87  1.1  jmcneill #define CLK_GPU_SRC		22
     88  1.1  jmcneill #define CLK_GPU_PRE_NDFT	23
     89  1.1  jmcneill #define CLK_GPU_PRE_MUX		24
     90  1.1  jmcneill #define ACLK_GPU_PRE		25
     91  1.1  jmcneill #define PCLK_GPU_PRE		26
     92  1.1  jmcneill #define CLK_GPU			27
     93  1.1  jmcneill #define CLK_GPU_NP5		28
     94  1.1  jmcneill #define PCLK_GPU_PVTM		29
     95  1.1  jmcneill #define CLK_GPU_PVTM		30
     96  1.1  jmcneill #define CLK_GPU_PVTM_CORE	31
     97  1.1  jmcneill #define CLK_GPU_PVTPLL		32
     98  1.1  jmcneill #define CLK_NPU_SRC		33
     99  1.1  jmcneill #define CLK_NPU_PRE_NDFT	34
    100  1.1  jmcneill #define CLK_NPU			35
    101  1.1  jmcneill #define CLK_NPU_NP5		36
    102  1.1  jmcneill #define HCLK_NPU_PRE		37
    103  1.1  jmcneill #define PCLK_NPU_PRE		38
    104  1.1  jmcneill #define ACLK_NPU_PRE		39
    105  1.1  jmcneill #define ACLK_NPU		40
    106  1.1  jmcneill #define HCLK_NPU		41
    107  1.1  jmcneill #define PCLK_NPU_PVTM		42
    108  1.1  jmcneill #define CLK_NPU_PVTM		43
    109  1.1  jmcneill #define CLK_NPU_PVTM_CORE	44
    110  1.1  jmcneill #define CLK_NPU_PVTPLL		45
    111  1.1  jmcneill #define CLK_DDRPHY1X_SRC	46
    112  1.1  jmcneill #define CLK_DDRPHY1X_HWFFC_SRC	47
    113  1.1  jmcneill #define CLK_DDR1X		48
    114  1.1  jmcneill #define CLK_MSCH		49
    115  1.1  jmcneill #define CLK24_DDRMON		50
    116  1.1  jmcneill #define ACLK_GIC_AUDIO		51
    117  1.1  jmcneill #define HCLK_GIC_AUDIO		52
    118  1.1  jmcneill #define HCLK_SDMMC_BUFFER	53
    119  1.1  jmcneill #define DCLK_SDMMC_BUFFER	54
    120  1.1  jmcneill #define ACLK_GIC600		55
    121  1.1  jmcneill #define ACLK_SPINLOCK		56
    122  1.1  jmcneill #define HCLK_I2S0_8CH		57
    123  1.1  jmcneill #define HCLK_I2S1_8CH		58
    124  1.1  jmcneill #define HCLK_I2S2_2CH		59
    125  1.1  jmcneill #define HCLK_I2S3_2CH		60
    126  1.1  jmcneill #define CLK_I2S0_8CH_TX_SRC	61
    127  1.1  jmcneill #define CLK_I2S0_8CH_TX_FRAC	62
    128  1.1  jmcneill #define MCLK_I2S0_8CH_TX	63
    129  1.1  jmcneill #define I2S0_MCLKOUT_TX		64
    130  1.1  jmcneill #define CLK_I2S0_8CH_RX_SRC	65
    131  1.1  jmcneill #define CLK_I2S0_8CH_RX_FRAC	66
    132  1.1  jmcneill #define MCLK_I2S0_8CH_RX	67
    133  1.1  jmcneill #define I2S0_MCLKOUT_RX		68
    134  1.1  jmcneill #define CLK_I2S1_8CH_TX_SRC	69
    135  1.1  jmcneill #define CLK_I2S1_8CH_TX_FRAC	70
    136  1.1  jmcneill #define MCLK_I2S1_8CH_TX	71
    137  1.1  jmcneill #define I2S1_MCLKOUT_TX		72
    138  1.1  jmcneill #define CLK_I2S1_8CH_RX_SRC	73
    139  1.1  jmcneill #define CLK_I2S1_8CH_RX_FRAC	74
    140  1.1  jmcneill #define MCLK_I2S1_8CH_RX	75
    141  1.1  jmcneill #define I2S1_MCLKOUT_RX		76
    142  1.1  jmcneill #define CLK_I2S2_2CH_SRC	77
    143  1.1  jmcneill #define CLK_I2S2_2CH_FRAC	78
    144  1.1  jmcneill #define MCLK_I2S2_2CH		79
    145  1.1  jmcneill #define I2S2_MCLKOUT		80
    146  1.1  jmcneill #define CLK_I2S3_2CH_TX_SRC	81
    147  1.1  jmcneill #define CLK_I2S3_2CH_TX_FRAC	82
    148  1.1  jmcneill #define MCLK_I2S3_2CH_TX	83
    149  1.1  jmcneill #define I2S3_MCLKOUT_TX		84
    150  1.1  jmcneill #define CLK_I2S3_2CH_RX_SRC	85
    151  1.1  jmcneill #define CLK_I2S3_2CH_RX_FRAC	86
    152  1.1  jmcneill #define MCLK_I2S3_2CH_RX	87
    153  1.1  jmcneill #define I2S3_MCLKOUT_RX		88
    154  1.1  jmcneill #define HCLK_PDM		89
    155  1.1  jmcneill #define MCLK_PDM		90
    156  1.1  jmcneill #define HCLK_VAD		91
    157  1.1  jmcneill #define HCLK_SPDIF_8CH		92
    158  1.1  jmcneill #define MCLK_SPDIF_8CH_SRC	93
    159  1.1  jmcneill #define MCLK_SPDIF_8CH_FRAC	94
    160  1.1  jmcneill #define MCLK_SPDIF_8CH		95
    161  1.1  jmcneill #define HCLK_AUDPWM		96
    162  1.1  jmcneill #define SCLK_AUDPWM_SRC		97
    163  1.1  jmcneill #define SCLK_AUDPWM_FRAC	98
    164  1.1  jmcneill #define SCLK_AUDPWM		99
    165  1.1  jmcneill #define HCLK_ACDCDIG		100
    166  1.1  jmcneill #define CLK_ACDCDIG_I2C		101
    167  1.1  jmcneill #define CLK_ACDCDIG_DAC		102
    168  1.1  jmcneill #define CLK_ACDCDIG_ADC		103
    169  1.1  jmcneill #define ACLK_SECURE_FLASH	104
    170  1.1  jmcneill #define HCLK_SECURE_FLASH	105
    171  1.1  jmcneill #define ACLK_CRYPTO_NS		106
    172  1.1  jmcneill #define HCLK_CRYPTO_NS		107
    173  1.1  jmcneill #define CLK_CRYPTO_NS_CORE	108
    174  1.1  jmcneill #define CLK_CRYPTO_NS_PKA	109
    175  1.1  jmcneill #define CLK_CRYPTO_NS_RNG	110
    176  1.1  jmcneill #define HCLK_TRNG_NS		111
    177  1.1  jmcneill #define CLK_TRNG_NS		112
    178  1.1  jmcneill #define PCLK_OTPC_NS		113
    179  1.1  jmcneill #define CLK_OTPC_NS_SBPI	114
    180  1.1  jmcneill #define CLK_OTPC_NS_USR		115
    181  1.1  jmcneill #define HCLK_NANDC		116
    182  1.1  jmcneill #define NCLK_NANDC		117
    183  1.1  jmcneill #define HCLK_SFC		118
    184  1.1  jmcneill #define HCLK_SFC_XIP		119
    185  1.1  jmcneill #define SCLK_SFC		120
    186  1.1  jmcneill #define ACLK_EMMC		121
    187  1.1  jmcneill #define HCLK_EMMC		122
    188  1.1  jmcneill #define BCLK_EMMC		123
    189  1.1  jmcneill #define CCLK_EMMC		124
    190  1.1  jmcneill #define TCLK_EMMC		125
    191  1.1  jmcneill #define ACLK_PIPE		126
    192  1.1  jmcneill #define PCLK_PIPE		127
    193  1.1  jmcneill #define PCLK_PIPE_GRF		128
    194  1.1  jmcneill #define ACLK_PCIE20_MST		129
    195  1.1  jmcneill #define ACLK_PCIE20_SLV		130
    196  1.1  jmcneill #define ACLK_PCIE20_DBI		131
    197  1.1  jmcneill #define PCLK_PCIE20		132
    198  1.1  jmcneill #define CLK_PCIE20_AUX_NDFT	133
    199  1.1  jmcneill #define CLK_PCIE20_AUX_DFT	134
    200  1.1  jmcneill #define CLK_PCIE20_PIPE_DFT	135
    201  1.1  jmcneill #define ACLK_PCIE30X1_MST	136
    202  1.1  jmcneill #define ACLK_PCIE30X1_SLV	137
    203  1.1  jmcneill #define ACLK_PCIE30X1_DBI	138
    204  1.1  jmcneill #define PCLK_PCIE30X1		139
    205  1.1  jmcneill #define CLK_PCIE30X1_AUX_NDFT	140
    206  1.1  jmcneill #define CLK_PCIE30X1_AUX_DFT	141
    207  1.1  jmcneill #define CLK_PCIE30X1_PIPE_DFT	142
    208  1.1  jmcneill #define ACLK_PCIE30X2_MST	143
    209  1.1  jmcneill #define ACLK_PCIE30X2_SLV	144
    210  1.1  jmcneill #define ACLK_PCIE30X2_DBI	145
    211  1.1  jmcneill #define PCLK_PCIE30X2		146
    212  1.1  jmcneill #define CLK_PCIE30X2_AUX_NDFT	147
    213  1.1  jmcneill #define CLK_PCIE30X2_AUX_DFT	148
    214  1.1  jmcneill #define CLK_PCIE30X2_PIPE_DFT	149
    215  1.1  jmcneill #define ACLK_SATA0		150
    216  1.1  jmcneill #define CLK_SATA0_PMALIVE	151
    217  1.1  jmcneill #define CLK_SATA0_RXOOB		152
    218  1.1  jmcneill #define CLK_SATA0_PIPE_NDFT	153
    219  1.1  jmcneill #define CLK_SATA0_PIPE_DFT	154
    220  1.1  jmcneill #define ACLK_SATA1		155
    221  1.1  jmcneill #define CLK_SATA1_PMALIVE	156
    222  1.1  jmcneill #define CLK_SATA1_RXOOB		157
    223  1.1  jmcneill #define CLK_SATA1_PIPE_NDFT	158
    224  1.1  jmcneill #define CLK_SATA1_PIPE_DFT	159
    225  1.1  jmcneill #define ACLK_SATA2		160
    226  1.1  jmcneill #define CLK_SATA2_PMALIVE	161
    227  1.1  jmcneill #define CLK_SATA2_RXOOB		162
    228  1.1  jmcneill #define CLK_SATA2_PIPE_NDFT	163
    229  1.1  jmcneill #define CLK_SATA2_PIPE_DFT	164
    230  1.1  jmcneill #define ACLK_USB3OTG0		165
    231  1.1  jmcneill #define CLK_USB3OTG0_REF	166
    232  1.1  jmcneill #define CLK_USB3OTG0_SUSPEND	167
    233  1.1  jmcneill #define ACLK_USB3OTG1		168
    234  1.1  jmcneill #define CLK_USB3OTG1_REF	169
    235  1.1  jmcneill #define CLK_USB3OTG1_SUSPEND	170
    236  1.1  jmcneill #define CLK_XPCS_EEE		171
    237  1.1  jmcneill #define PCLK_XPCS		172
    238  1.1  jmcneill #define ACLK_PHP		173
    239  1.1  jmcneill #define HCLK_PHP		174
    240  1.1  jmcneill #define PCLK_PHP		175
    241  1.1  jmcneill #define HCLK_SDMMC0		176
    242  1.1  jmcneill #define CLK_SDMMC0		177
    243  1.1  jmcneill #define HCLK_SDMMC1		178
    244  1.1  jmcneill #define CLK_SDMMC1		179
    245  1.1  jmcneill #define ACLK_GMAC0		180
    246  1.1  jmcneill #define PCLK_GMAC0		181
    247  1.1  jmcneill #define CLK_MAC0_2TOP		182
    248  1.1  jmcneill #define CLK_MAC0_OUT		183
    249  1.1  jmcneill #define CLK_MAC0_REFOUT		184
    250  1.1  jmcneill #define CLK_GMAC0_PTP_REF	185
    251  1.1  jmcneill #define ACLK_USB		186
    252  1.1  jmcneill #define HCLK_USB		187
    253  1.1  jmcneill #define PCLK_USB		188
    254  1.1  jmcneill #define HCLK_USB2HOST0		189
    255  1.1  jmcneill #define HCLK_USB2HOST0_ARB	190
    256  1.1  jmcneill #define HCLK_USB2HOST1		191
    257  1.1  jmcneill #define HCLK_USB2HOST1_ARB	192
    258  1.1  jmcneill #define HCLK_SDMMC2		193
    259  1.1  jmcneill #define CLK_SDMMC2		194
    260  1.1  jmcneill #define ACLK_GMAC1		195
    261  1.1  jmcneill #define PCLK_GMAC1		196
    262  1.1  jmcneill #define CLK_MAC1_2TOP		197
    263  1.1  jmcneill #define CLK_MAC1_OUT		198
    264  1.1  jmcneill #define CLK_MAC1_REFOUT		199
    265  1.1  jmcneill #define CLK_GMAC1_PTP_REF	200
    266  1.1  jmcneill #define ACLK_PERIMID		201
    267  1.1  jmcneill #define HCLK_PERIMID		202
    268  1.1  jmcneill #define ACLK_VI			203
    269  1.1  jmcneill #define HCLK_VI			204
    270  1.1  jmcneill #define PCLK_VI			205
    271  1.1  jmcneill #define ACLK_VICAP		206
    272  1.1  jmcneill #define HCLK_VICAP		207
    273  1.1  jmcneill #define DCLK_VICAP		208
    274  1.1  jmcneill #define ICLK_VICAP_G		209
    275  1.1  jmcneill #define ACLK_ISP		210
    276  1.1  jmcneill #define HCLK_ISP		211
    277  1.1  jmcneill #define CLK_ISP			212
    278  1.1  jmcneill #define PCLK_CSI2HOST1		213
    279  1.1  jmcneill #define CLK_CIF_OUT		214
    280  1.1  jmcneill #define CLK_CAM0_OUT		215
    281  1.1  jmcneill #define CLK_CAM1_OUT		216
    282  1.1  jmcneill #define ACLK_VO			217
    283  1.1  jmcneill #define HCLK_VO			218
    284  1.1  jmcneill #define PCLK_VO			219
    285  1.1  jmcneill #define ACLK_VOP_PRE		220
    286  1.1  jmcneill #define ACLK_VOP		221
    287  1.1  jmcneill #define HCLK_VOP		222
    288  1.1  jmcneill #define DCLK_VOP0		223
    289  1.1  jmcneill #define DCLK_VOP1		224
    290  1.1  jmcneill #define DCLK_VOP2		225
    291  1.1  jmcneill #define CLK_VOP_PWM		226
    292  1.1  jmcneill #define ACLK_HDCP		227
    293  1.1  jmcneill #define HCLK_HDCP		228
    294  1.1  jmcneill #define PCLK_HDCP		229
    295  1.1  jmcneill #define PCLK_HDMI_HOST		230
    296  1.1  jmcneill #define CLK_HDMI_SFR		231
    297  1.1  jmcneill #define PCLK_DSITX_0		232
    298  1.1  jmcneill #define PCLK_DSITX_1		233
    299  1.1  jmcneill #define PCLK_EDP_CTRL		234
    300  1.1  jmcneill #define CLK_EDP_200M		235
    301  1.1  jmcneill #define ACLK_VPU_PRE		236
    302  1.1  jmcneill #define HCLK_VPU_PRE		237
    303  1.1  jmcneill #define ACLK_VPU		238
    304  1.1  jmcneill #define HCLK_VPU		239
    305  1.1  jmcneill #define ACLK_RGA_PRE		240
    306  1.1  jmcneill #define HCLK_RGA_PRE		241
    307  1.1  jmcneill #define PCLK_RGA_PRE		242
    308  1.1  jmcneill #define ACLK_RGA		243
    309  1.1  jmcneill #define HCLK_RGA		244
    310  1.1  jmcneill #define CLK_RGA_CORE		245
    311  1.1  jmcneill #define ACLK_IEP		246
    312  1.1  jmcneill #define HCLK_IEP		247
    313  1.1  jmcneill #define CLK_IEP_CORE		248
    314  1.1  jmcneill #define HCLK_EBC		249
    315  1.1  jmcneill #define DCLK_EBC		250
    316  1.1  jmcneill #define ACLK_JDEC		251
    317  1.1  jmcneill #define HCLK_JDEC		252
    318  1.1  jmcneill #define ACLK_JENC		253
    319  1.1  jmcneill #define HCLK_JENC		254
    320  1.1  jmcneill #define PCLK_EINK		255
    321  1.1  jmcneill #define HCLK_EINK		256
    322  1.1  jmcneill #define ACLK_RKVENC_PRE		257
    323  1.1  jmcneill #define HCLK_RKVENC_PRE		258
    324  1.1  jmcneill #define ACLK_RKVENC		259
    325  1.1  jmcneill #define HCLK_RKVENC		260
    326  1.1  jmcneill #define CLK_RKVENC_CORE		261
    327  1.1  jmcneill #define ACLK_RKVDEC_PRE		262
    328  1.1  jmcneill #define HCLK_RKVDEC_PRE		263
    329  1.1  jmcneill #define ACLK_RKVDEC		264
    330  1.1  jmcneill #define HCLK_RKVDEC		265
    331  1.1  jmcneill #define CLK_RKVDEC_CA		266
    332  1.1  jmcneill #define CLK_RKVDEC_CORE		267
    333  1.1  jmcneill #define CLK_RKVDEC_HEVC_CA	268
    334  1.1  jmcneill #define ACLK_BUS		269
    335  1.1  jmcneill #define PCLK_BUS		270
    336  1.1  jmcneill #define PCLK_TSADC		271
    337  1.1  jmcneill #define CLK_TSADC_TSEN		272
    338  1.1  jmcneill #define CLK_TSADC		273
    339  1.1  jmcneill #define PCLK_SARADC		274
    340  1.1  jmcneill #define CLK_SARADC		275
    341  1.1  jmcneill #define PCLK_SCR		276
    342  1.1  jmcneill #define PCLK_WDT_NS		277
    343  1.1  jmcneill #define TCLK_WDT_NS		278
    344  1.1  jmcneill #define ACLK_DMAC0		279
    345  1.1  jmcneill #define ACLK_DMAC1		280
    346  1.1  jmcneill #define ACLK_MCU		281
    347  1.1  jmcneill #define PCLK_INTMUX		282
    348  1.1  jmcneill #define PCLK_MAILBOX		283
    349  1.1  jmcneill #define PCLK_UART1		284
    350  1.1  jmcneill #define CLK_UART1_SRC		285
    351  1.1  jmcneill #define CLK_UART1_FRAC		286
    352  1.1  jmcneill #define SCLK_UART1		287
    353  1.1  jmcneill #define PCLK_UART2		288
    354  1.1  jmcneill #define CLK_UART2_SRC		289
    355  1.1  jmcneill #define CLK_UART2_FRAC		290
    356  1.1  jmcneill #define SCLK_UART2		291
    357  1.1  jmcneill #define PCLK_UART3		292
    358  1.1  jmcneill #define CLK_UART3_SRC		293
    359  1.1  jmcneill #define CLK_UART3_FRAC		294
    360  1.1  jmcneill #define SCLK_UART3		295
    361  1.1  jmcneill #define PCLK_UART4		296
    362  1.1  jmcneill #define CLK_UART4_SRC		297
    363  1.1  jmcneill #define CLK_UART4_FRAC		298
    364  1.1  jmcneill #define SCLK_UART4		299
    365  1.1  jmcneill #define PCLK_UART5		300
    366  1.1  jmcneill #define CLK_UART5_SRC		301
    367  1.1  jmcneill #define CLK_UART5_FRAC		302
    368  1.1  jmcneill #define SCLK_UART5		303
    369  1.1  jmcneill #define PCLK_UART6		304
    370  1.1  jmcneill #define CLK_UART6_SRC		305
    371  1.1  jmcneill #define CLK_UART6_FRAC		306
    372  1.1  jmcneill #define SCLK_UART6		307
    373  1.1  jmcneill #define PCLK_UART7		308
    374  1.1  jmcneill #define CLK_UART7_SRC		309
    375  1.1  jmcneill #define CLK_UART7_FRAC		310
    376  1.1  jmcneill #define SCLK_UART7		311
    377  1.1  jmcneill #define PCLK_UART8		312
    378  1.1  jmcneill #define CLK_UART8_SRC		313
    379  1.1  jmcneill #define CLK_UART8_FRAC		314
    380  1.1  jmcneill #define SCLK_UART8		315
    381  1.1  jmcneill #define PCLK_UART9		316
    382  1.1  jmcneill #define CLK_UART9_SRC		317
    383  1.1  jmcneill #define CLK_UART9_FRAC		318
    384  1.1  jmcneill #define SCLK_UART9		319
    385  1.1  jmcneill #define PCLK_CAN0		320
    386  1.1  jmcneill #define CLK_CAN0		321
    387  1.1  jmcneill #define PCLK_CAN1		322
    388  1.1  jmcneill #define CLK_CAN1		323
    389  1.1  jmcneill #define PCLK_CAN2		324
    390  1.1  jmcneill #define CLK_CAN2		325
    391  1.1  jmcneill #define CLK_I2C			326
    392  1.1  jmcneill #define PCLK_I2C1		327
    393  1.1  jmcneill #define CLK_I2C1		328
    394  1.1  jmcneill #define PCLK_I2C2		329
    395  1.1  jmcneill #define CLK_I2C2		330
    396  1.1  jmcneill #define PCLK_I2C3		331
    397  1.1  jmcneill #define CLK_I2C3		332
    398  1.1  jmcneill #define PCLK_I2C4		333
    399  1.1  jmcneill #define CLK_I2C4		334
    400  1.1  jmcneill #define PCLK_I2C5		335
    401  1.1  jmcneill #define CLK_I2C5		336
    402  1.1  jmcneill #define PCLK_SPI0		337
    403  1.1  jmcneill #define CLK_SPI0		338
    404  1.1  jmcneill #define PCLK_SPI1		339
    405  1.1  jmcneill #define CLK_SPI1		340
    406  1.1  jmcneill #define PCLK_SPI2		341
    407  1.1  jmcneill #define CLK_SPI2		342
    408  1.1  jmcneill #define PCLK_SPI3		343
    409  1.1  jmcneill #define CLK_SPI3		344
    410  1.1  jmcneill #define PCLK_PWM1		345
    411  1.1  jmcneill #define CLK_PWM1		346
    412  1.1  jmcneill #define CLK_PWM1_CAPTURE	347
    413  1.1  jmcneill #define PCLK_PWM2		348
    414  1.1  jmcneill #define CLK_PWM2		349
    415  1.1  jmcneill #define CLK_PWM2_CAPTURE	350
    416  1.1  jmcneill #define PCLK_PWM3		351
    417  1.1  jmcneill #define CLK_PWM3		352
    418  1.1  jmcneill #define CLK_PWM3_CAPTURE	353
    419  1.1  jmcneill #define DBCLK_GPIO		354
    420  1.1  jmcneill #define PCLK_GPIO1		355
    421  1.1  jmcneill #define DBCLK_GPIO1		356
    422  1.1  jmcneill #define PCLK_GPIO2		357
    423  1.1  jmcneill #define DBCLK_GPIO2		358
    424  1.1  jmcneill #define PCLK_GPIO3		359
    425  1.1  jmcneill #define DBCLK_GPIO3		360
    426  1.1  jmcneill #define PCLK_GPIO4		361
    427  1.1  jmcneill #define DBCLK_GPIO4		362
    428  1.1  jmcneill #define OCC_SCAN_CLK_GPIO	363
    429  1.1  jmcneill #define PCLK_TIMER		364
    430  1.1  jmcneill #define CLK_TIMER0		365
    431  1.1  jmcneill #define CLK_TIMER1		366
    432  1.1  jmcneill #define CLK_TIMER2		367
    433  1.1  jmcneill #define CLK_TIMER3		368
    434  1.1  jmcneill #define CLK_TIMER4		369
    435  1.1  jmcneill #define CLK_TIMER5		370
    436  1.1  jmcneill #define ACLK_TOP_HIGH		371
    437  1.1  jmcneill #define ACLK_TOP_LOW		372
    438  1.1  jmcneill #define HCLK_TOP		373
    439  1.1  jmcneill #define PCLK_TOP		374
    440  1.1  jmcneill #define PCLK_PCIE30PHY		375
    441  1.1  jmcneill #define CLK_OPTC_ARB		376
    442  1.1  jmcneill #define PCLK_MIPICSIPHY		377
    443  1.1  jmcneill #define PCLK_MIPIDSIPHY0	378
    444  1.1  jmcneill #define PCLK_MIPIDSIPHY1	379
    445  1.1  jmcneill #define PCLK_PIPEPHY0		380
    446  1.1  jmcneill #define PCLK_PIPEPHY1		381
    447  1.1  jmcneill #define PCLK_PIPEPHY2		382
    448  1.1  jmcneill #define PCLK_CPU_BOOST		383
    449  1.1  jmcneill #define CLK_CPU_BOOST		384
    450  1.1  jmcneill #define PCLK_OTPPHY		385
    451  1.1  jmcneill #define SCLK_GMAC0		386
    452  1.1  jmcneill #define SCLK_GMAC0_RGMII_SPEED	387
    453  1.1  jmcneill #define SCLK_GMAC0_RMII_SPEED	388
    454  1.1  jmcneill #define SCLK_GMAC0_RX_TX	389
    455  1.1  jmcneill #define SCLK_GMAC1		390
    456  1.1  jmcneill #define SCLK_GMAC1_RGMII_SPEED	391
    457  1.1  jmcneill #define SCLK_GMAC1_RMII_SPEED	392
    458  1.1  jmcneill #define SCLK_GMAC1_RX_TX	393
    459  1.1  jmcneill #define SCLK_SDMMC0_DRV		394
    460  1.1  jmcneill #define SCLK_SDMMC0_SAMPLE	395
    461  1.1  jmcneill #define SCLK_SDMMC1_DRV		396
    462  1.1  jmcneill #define SCLK_SDMMC1_SAMPLE	397
    463  1.1  jmcneill #define SCLK_SDMMC2_DRV		398
    464  1.1  jmcneill #define SCLK_SDMMC2_SAMPLE	399
    465  1.1  jmcneill #define SCLK_EMMC_DRV		400
    466  1.1  jmcneill #define SCLK_EMMC_SAMPLE	401
    467  1.1  jmcneill #define PCLK_EDPPHY_GRF		402
    468  1.1  jmcneill #define CLK_HDMI_CEC            403
    469  1.1  jmcneill #define CLK_I2S0_8CH_TX		404
    470  1.1  jmcneill #define CLK_I2S0_8CH_RX		405
    471  1.1  jmcneill #define CLK_I2S1_8CH_TX		406
    472  1.1  jmcneill #define CLK_I2S1_8CH_RX		407
    473  1.1  jmcneill #define CLK_I2S2_2CH		408
    474  1.1  jmcneill #define CLK_I2S3_2CH_TX		409
    475  1.1  jmcneill #define CLK_I2S3_2CH_RX		410
    476  1.1  jmcneill #define CPLL_500M		411
    477  1.1  jmcneill #define CPLL_250M		412
    478  1.1  jmcneill #define CPLL_125M		413
    479  1.1  jmcneill #define CPLL_62P5M		414
    480  1.1  jmcneill #define CPLL_50M		415
    481  1.1  jmcneill #define CPLL_25M		416
    482  1.1  jmcneill #define CPLL_100M		417
    483  1.1  jmcneill #define SCLK_DDRCLK		418
    484  1.1  jmcneill 
    485  1.1  jmcneill #define PCLK_CORE_PVTM		450
    486  1.1  jmcneill 
    487  1.1  jmcneill #define CLK_NR_CLKS		(PCLK_CORE_PVTM + 1)
    488  1.1  jmcneill 
    489  1.1  jmcneill /* pmu soft-reset indices */
    490  1.1  jmcneill /* pmucru_softrst_con0 */
    491  1.1  jmcneill #define SRST_P_PDPMU_NIU	0
    492  1.1  jmcneill #define SRST_P_PMUCRU		1
    493  1.1  jmcneill #define SRST_P_PMUGRF		2
    494  1.1  jmcneill #define SRST_P_I2C0		3
    495  1.1  jmcneill #define SRST_I2C0		4
    496  1.1  jmcneill #define SRST_P_UART0		5
    497  1.1  jmcneill #define SRST_S_UART0		6
    498  1.1  jmcneill #define SRST_P_PWM0		7
    499  1.1  jmcneill #define SRST_PWM0		8
    500  1.1  jmcneill #define SRST_P_GPIO0		9
    501  1.1  jmcneill #define SRST_GPIO0		10
    502  1.1  jmcneill #define SRST_P_PMUPVTM		11
    503  1.1  jmcneill #define SRST_PMUPVTM		12
    504  1.1  jmcneill 
    505  1.1  jmcneill /* soft-reset indices */
    506  1.1  jmcneill 
    507  1.1  jmcneill /* cru_softrst_con0 */
    508  1.1  jmcneill #define SRST_NCORERESET0	0
    509  1.1  jmcneill #define SRST_NCORERESET1	1
    510  1.1  jmcneill #define SRST_NCORERESET2	2
    511  1.1  jmcneill #define SRST_NCORERESET3	3
    512  1.1  jmcneill #define SRST_NCPUPORESET0	4
    513  1.1  jmcneill #define SRST_NCPUPORESET1	5
    514  1.1  jmcneill #define SRST_NCPUPORESET2	6
    515  1.1  jmcneill #define SRST_NCPUPORESET3	7
    516  1.1  jmcneill #define SRST_NSRESET		8
    517  1.1  jmcneill #define SRST_NSPORESET		9
    518  1.1  jmcneill #define SRST_NATRESET		10
    519  1.1  jmcneill #define SRST_NGICRESET		11
    520  1.1  jmcneill #define SRST_NPRESET		12
    521  1.1  jmcneill #define SRST_NPERIPHRESET	13
    522  1.1  jmcneill 
    523  1.1  jmcneill /* cru_softrst_con1 */
    524  1.1  jmcneill #define SRST_A_CORE_NIU2DDR	16
    525  1.1  jmcneill #define SRST_A_CORE_NIU2BUS	17
    526  1.1  jmcneill #define SRST_P_DBG_NIU		18
    527  1.1  jmcneill #define SRST_P_DBG		19
    528  1.1  jmcneill #define SRST_P_DBG_DAPLITE	20
    529  1.1  jmcneill #define SRST_DAP		21
    530  1.1  jmcneill #define SRST_A_ADB400_CORE2GIC	22
    531  1.1  jmcneill #define SRST_A_ADB400_GIC2CORE	23
    532  1.1  jmcneill #define SRST_P_CORE_GRF		24
    533  1.1  jmcneill #define SRST_P_CORE_PVTM	25
    534  1.1  jmcneill #define SRST_CORE_PVTM		26
    535  1.1  jmcneill #define SRST_CORE_PVTPLL	27
    536  1.1  jmcneill 
    537  1.1  jmcneill /* cru_softrst_con2 */
    538  1.1  jmcneill #define SRST_GPU		32
    539  1.1  jmcneill #define SRST_A_GPU_NIU		33
    540  1.1  jmcneill #define SRST_P_GPU_NIU		34
    541  1.1  jmcneill #define SRST_P_GPU_PVTM		35
    542  1.1  jmcneill #define SRST_GPU_PVTM		36
    543  1.1  jmcneill #define SRST_GPU_PVTPLL		37
    544  1.1  jmcneill #define SRST_A_NPU_NIU		40
    545  1.1  jmcneill #define SRST_H_NPU_NIU		41
    546  1.1  jmcneill #define SRST_P_NPU_NIU		42
    547  1.1  jmcneill #define SRST_A_NPU		43
    548  1.1  jmcneill #define SRST_H_NPU		44
    549  1.1  jmcneill #define SRST_P_NPU_PVTM		45
    550  1.1  jmcneill #define SRST_NPU_PVTM		46
    551  1.1  jmcneill #define SRST_NPU_PVTPLL		47
    552  1.1  jmcneill 
    553  1.1  jmcneill /* cru_softrst_con3 */
    554  1.1  jmcneill #define SRST_A_MSCH		51
    555  1.1  jmcneill #define SRST_HWFFC_CTRL		52
    556  1.1  jmcneill #define SRST_DDR_ALWAYSON	53
    557  1.1  jmcneill #define SRST_A_DDRSPLIT		54
    558  1.1  jmcneill #define SRST_DDRDFI_CTL		55
    559  1.1  jmcneill #define SRST_A_DMA2DDR		57
    560  1.1  jmcneill 
    561  1.1  jmcneill /* cru_softrst_con4 */
    562  1.1  jmcneill #define SRST_A_PERIMID_NIU	64
    563  1.1  jmcneill #define SRST_H_PERIMID_NIU	65
    564  1.1  jmcneill #define SRST_A_GIC_AUDIO_NIU	66
    565  1.1  jmcneill #define SRST_H_GIC_AUDIO_NIU	67
    566  1.1  jmcneill #define SRST_A_GIC600		68
    567  1.1  jmcneill #define SRST_A_GIC600_DEBUG	69
    568  1.1  jmcneill #define SRST_A_GICADB_CORE2GIC	70
    569  1.1  jmcneill #define SRST_A_GICADB_GIC2CORE	71
    570  1.1  jmcneill #define SRST_A_SPINLOCK		72
    571  1.1  jmcneill #define SRST_H_SDMMC_BUFFER	73
    572  1.1  jmcneill #define SRST_D_SDMMC_BUFFER	74
    573  1.1  jmcneill #define SRST_H_I2S0_8CH		75
    574  1.1  jmcneill #define SRST_H_I2S1_8CH		76
    575  1.1  jmcneill #define SRST_H_I2S2_2CH		77
    576  1.1  jmcneill #define SRST_H_I2S3_2CH		78
    577  1.1  jmcneill 
    578  1.1  jmcneill /* cru_softrst_con5 */
    579  1.1  jmcneill #define SRST_M_I2S0_8CH_TX	80
    580  1.1  jmcneill #define SRST_M_I2S0_8CH_RX	81
    581  1.1  jmcneill #define SRST_M_I2S1_8CH_TX	82
    582  1.1  jmcneill #define SRST_M_I2S1_8CH_RX	83
    583  1.1  jmcneill #define SRST_M_I2S2_2CH		84
    584  1.1  jmcneill #define SRST_M_I2S3_2CH_TX	85
    585  1.1  jmcneill #define SRST_M_I2S3_2CH_RX	86
    586  1.1  jmcneill #define SRST_H_PDM		87
    587  1.1  jmcneill #define SRST_M_PDM		88
    588  1.1  jmcneill #define SRST_H_VAD		89
    589  1.1  jmcneill #define SRST_H_SPDIF_8CH	90
    590  1.1  jmcneill #define SRST_M_SPDIF_8CH	91
    591  1.1  jmcneill #define SRST_H_AUDPWM		92
    592  1.1  jmcneill #define SRST_S_AUDPWM		93
    593  1.1  jmcneill #define SRST_H_ACDCDIG		94
    594  1.1  jmcneill #define SRST_ACDCDIG		95
    595  1.1  jmcneill 
    596  1.1  jmcneill /* cru_softrst_con6 */
    597  1.1  jmcneill #define SRST_A_SECURE_FLASH_NIU	96
    598  1.1  jmcneill #define SRST_H_SECURE_FLASH_NIU	97
    599  1.1  jmcneill #define SRST_A_CRYPTO_NS	103
    600  1.1  jmcneill #define SRST_H_CRYPTO_NS	104
    601  1.1  jmcneill #define SRST_CRYPTO_NS_CORE	105
    602  1.1  jmcneill #define SRST_CRYPTO_NS_PKA	106
    603  1.1  jmcneill #define SRST_CRYPTO_NS_RNG	107
    604  1.1  jmcneill #define SRST_H_TRNG_NS		108
    605  1.1  jmcneill #define SRST_TRNG_NS		109
    606  1.1  jmcneill 
    607  1.1  jmcneill /* cru_softrst_con7 */
    608  1.1  jmcneill #define SRST_H_NANDC		112
    609  1.1  jmcneill #define SRST_N_NANDC		113
    610  1.1  jmcneill #define SRST_H_SFC		114
    611  1.1  jmcneill #define SRST_H_SFC_XIP		115
    612  1.1  jmcneill #define SRST_S_SFC		116
    613  1.1  jmcneill #define SRST_A_EMMC		117
    614  1.1  jmcneill #define SRST_H_EMMC		118
    615  1.1  jmcneill #define SRST_B_EMMC		119
    616  1.1  jmcneill #define SRST_C_EMMC		120
    617  1.1  jmcneill #define SRST_T_EMMC		121
    618  1.1  jmcneill 
    619  1.1  jmcneill /* cru_softrst_con8 */
    620  1.1  jmcneill #define SRST_A_PIPE_NIU		128
    621  1.1  jmcneill #define SRST_P_PIPE_NIU		130
    622  1.1  jmcneill #define SRST_P_PIPE_GRF		133
    623  1.1  jmcneill #define SRST_A_SATA0		134
    624  1.1  jmcneill #define SRST_SATA0_PIPE		135
    625  1.1  jmcneill #define SRST_SATA0_PMALIVE	136
    626  1.1  jmcneill #define SRST_SATA0_RXOOB	137
    627  1.1  jmcneill #define SRST_A_SATA1		138
    628  1.1  jmcneill #define SRST_SATA1_PIPE		139
    629  1.1  jmcneill #define SRST_SATA1_PMALIVE	140
    630  1.1  jmcneill #define SRST_SATA1_RXOOB	141
    631  1.1  jmcneill 
    632  1.1  jmcneill /* cru_softrst_con9 */
    633  1.1  jmcneill #define SRST_A_SATA2		144
    634  1.1  jmcneill #define SRST_SATA2_PIPE		145
    635  1.1  jmcneill #define SRST_SATA2_PMALIVE	146
    636  1.1  jmcneill #define SRST_SATA2_RXOOB	147
    637  1.1  jmcneill #define SRST_USB3OTG0		148
    638  1.1  jmcneill #define SRST_USB3OTG1		149
    639  1.1  jmcneill #define SRST_XPCS		150
    640  1.1  jmcneill #define SRST_XPCS_TX_DIV10	151
    641  1.1  jmcneill #define SRST_XPCS_RX_DIV10	152
    642  1.1  jmcneill #define SRST_XPCS_XGXS_RX	153
    643  1.1  jmcneill 
    644  1.1  jmcneill /* cru_softrst_con10 */
    645  1.1  jmcneill #define SRST_P_PCIE20		160
    646  1.1  jmcneill #define SRST_PCIE20_POWERUP	161
    647  1.1  jmcneill #define SRST_MSTR_ARESET_PCIE20	162
    648  1.1  jmcneill #define SRST_SLV_ARESET_PCIE20	163
    649  1.1  jmcneill #define SRST_DBI_ARESET_PCIE20	164
    650  1.1  jmcneill #define SRST_BRESET_PCIE20	165
    651  1.1  jmcneill #define SRST_PERST_PCIE20	166
    652  1.1  jmcneill #define SRST_CORE_RST_PCIE20	167
    653  1.1  jmcneill #define SRST_NSTICKY_RST_PCIE20	168
    654  1.1  jmcneill #define SRST_STICKY_RST_PCIE20	169
    655  1.1  jmcneill #define SRST_PWR_RST_PCIE20	170
    656  1.1  jmcneill 
    657  1.1  jmcneill /* cru_softrst_con11 */
    658  1.1  jmcneill #define SRST_P_PCIE30X1		176
    659  1.1  jmcneill #define SRST_PCIE30X1_POWERUP	177
    660  1.1  jmcneill #define SRST_M_ARESET_PCIE30X1	178
    661  1.1  jmcneill #define SRST_S_ARESET_PCIE30X1	179
    662  1.1  jmcneill #define SRST_D_ARESET_PCIE30X1	180
    663  1.1  jmcneill #define SRST_BRESET_PCIE30X1	181
    664  1.1  jmcneill #define SRST_PERST_PCIE30X1	182
    665  1.1  jmcneill #define SRST_CORE_RST_PCIE30X1	183
    666  1.1  jmcneill #define SRST_NSTC_RST_PCIE30X1	184
    667  1.1  jmcneill #define SRST_STC_RST_PCIE30X1	185
    668  1.1  jmcneill #define SRST_PWR_RST_PCIE30X1	186
    669  1.1  jmcneill 
    670  1.1  jmcneill /* cru_softrst_con12 */
    671  1.1  jmcneill #define SRST_P_PCIE30X2		192
    672  1.1  jmcneill #define SRST_PCIE30X2_POWERUP	193
    673  1.1  jmcneill #define SRST_M_ARESET_PCIE30X2	194
    674  1.1  jmcneill #define SRST_S_ARESET_PCIE30X2	195
    675  1.1  jmcneill #define SRST_D_ARESET_PCIE30X2	196
    676  1.1  jmcneill #define SRST_BRESET_PCIE30X2	197
    677  1.1  jmcneill #define SRST_PERST_PCIE30X2	198
    678  1.1  jmcneill #define SRST_CORE_RST_PCIE30X2	199
    679  1.1  jmcneill #define SRST_NSTC_RST_PCIE30X2	200
    680  1.1  jmcneill #define SRST_STC_RST_PCIE30X2	201
    681  1.1  jmcneill #define SRST_PWR_RST_PCIE30X2	202
    682  1.1  jmcneill 
    683  1.1  jmcneill /* cru_softrst_con13 */
    684  1.1  jmcneill #define SRST_A_PHP_NIU		208
    685  1.1  jmcneill #define SRST_H_PHP_NIU		209
    686  1.1  jmcneill #define SRST_P_PHP_NIU		210
    687  1.1  jmcneill #define SRST_H_SDMMC0		211
    688  1.1  jmcneill #define SRST_SDMMC0		212
    689  1.1  jmcneill #define SRST_H_SDMMC1		213
    690  1.1  jmcneill #define SRST_SDMMC1		214
    691  1.1  jmcneill #define SRST_A_GMAC0		215
    692  1.1  jmcneill #define SRST_GMAC0_TIMESTAMP	216
    693  1.1  jmcneill 
    694  1.1  jmcneill /* cru_softrst_con14 */
    695  1.1  jmcneill #define SRST_A_USB_NIU		224
    696  1.1  jmcneill #define SRST_H_USB_NIU		225
    697  1.1  jmcneill #define SRST_P_USB_NIU		226
    698  1.1  jmcneill #define SRST_P_USB_GRF		227
    699  1.1  jmcneill #define SRST_H_USB2HOST0	228
    700  1.1  jmcneill #define SRST_H_USB2HOST0_ARB	229
    701  1.1  jmcneill #define SRST_USB2HOST0_UTMI	230
    702  1.1  jmcneill #define SRST_H_USB2HOST1	231
    703  1.1  jmcneill #define SRST_H_USB2HOST1_ARB	232
    704  1.1  jmcneill #define SRST_USB2HOST1_UTMI	233
    705  1.1  jmcneill #define SRST_H_SDMMC2		234
    706  1.1  jmcneill #define SRST_SDMMC2		235
    707  1.1  jmcneill #define SRST_A_GMAC1		236
    708  1.1  jmcneill #define SRST_GMAC1_TIMESTAMP	237
    709  1.1  jmcneill 
    710  1.1  jmcneill /* cru_softrst_con15 */
    711  1.1  jmcneill #define SRST_A_VI_NIU		240
    712  1.1  jmcneill #define SRST_H_VI_NIU		241
    713  1.1  jmcneill #define SRST_P_VI_NIU		242
    714  1.1  jmcneill #define SRST_A_VICAP		247
    715  1.1  jmcneill #define SRST_H_VICAP		248
    716  1.1  jmcneill #define SRST_D_VICAP		249
    717  1.1  jmcneill #define SRST_I_VICAP		250
    718  1.1  jmcneill #define SRST_P_VICAP		251
    719  1.1  jmcneill #define SRST_H_ISP		252
    720  1.1  jmcneill #define SRST_ISP		253
    721  1.1  jmcneill #define SRST_P_CSI2HOST1	255
    722  1.1  jmcneill 
    723  1.1  jmcneill /* cru_softrst_con16 */
    724  1.1  jmcneill #define SRST_A_VO_NIU		256
    725  1.1  jmcneill #define SRST_H_VO_NIU		257
    726  1.1  jmcneill #define SRST_P_VO_NIU		258
    727  1.1  jmcneill #define SRST_A_VOP_NIU		259
    728  1.1  jmcneill #define SRST_A_VOP		260
    729  1.1  jmcneill #define SRST_H_VOP		261
    730  1.1  jmcneill #define SRST_VOP0		262
    731  1.1  jmcneill #define SRST_VOP1		263
    732  1.1  jmcneill #define SRST_VOP2		264
    733  1.1  jmcneill #define SRST_VOP_PWM		265
    734  1.1  jmcneill #define SRST_A_HDCP		266
    735  1.1  jmcneill #define SRST_H_HDCP		267
    736  1.1  jmcneill #define SRST_P_HDCP		268
    737  1.1  jmcneill #define SRST_P_HDMI_HOST	270
    738  1.1  jmcneill #define SRST_HDMI_HOST		271
    739  1.1  jmcneill 
    740  1.1  jmcneill /* cru_softrst_con17 */
    741  1.1  jmcneill #define SRST_P_DSITX_0		272
    742  1.1  jmcneill #define SRST_P_DSITX_1		273
    743  1.1  jmcneill #define SRST_P_EDP_CTRL		274
    744  1.1  jmcneill #define SRST_EDP_24M		275
    745  1.1  jmcneill #define SRST_A_VPU_NIU		280
    746  1.1  jmcneill #define SRST_H_VPU_NIU		281
    747  1.1  jmcneill #define SRST_A_VPU		282
    748  1.1  jmcneill #define SRST_H_VPU		283
    749  1.1  jmcneill #define SRST_H_EINK		286
    750  1.1  jmcneill #define SRST_P_EINK		287
    751  1.1  jmcneill 
    752  1.1  jmcneill /* cru_softrst_con18 */
    753  1.1  jmcneill #define SRST_A_RGA_NIU		288
    754  1.1  jmcneill #define SRST_H_RGA_NIU		289
    755  1.1  jmcneill #define SRST_P_RGA_NIU		290
    756  1.1  jmcneill #define SRST_A_RGA		292
    757  1.1  jmcneill #define SRST_H_RGA		293
    758  1.1  jmcneill #define SRST_RGA_CORE		294
    759  1.1  jmcneill #define SRST_A_IEP		295
    760  1.1  jmcneill #define SRST_H_IEP		296
    761  1.1  jmcneill #define SRST_IEP_CORE		297
    762  1.1  jmcneill #define SRST_H_EBC		298
    763  1.1  jmcneill #define SRST_D_EBC		299
    764  1.1  jmcneill #define SRST_A_JDEC		300
    765  1.1  jmcneill #define SRST_H_JDEC		301
    766  1.1  jmcneill #define SRST_A_JENC		302
    767  1.1  jmcneill #define SRST_H_JENC		303
    768  1.1  jmcneill 
    769  1.1  jmcneill /* cru_softrst_con19 */
    770  1.1  jmcneill #define SRST_A_VENC_NIU		304
    771  1.1  jmcneill #define SRST_H_VENC_NIU		305
    772  1.1  jmcneill #define SRST_A_RKVENC		307
    773  1.1  jmcneill #define SRST_H_RKVENC		308
    774  1.1  jmcneill #define SRST_RKVENC_CORE	309
    775  1.1  jmcneill 
    776  1.1  jmcneill /* cru_softrst_con20 */
    777  1.1  jmcneill #define SRST_A_RKVDEC_NIU	320
    778  1.1  jmcneill #define SRST_H_RKVDEC_NIU	321
    779  1.1  jmcneill #define SRST_A_RKVDEC		322
    780  1.1  jmcneill #define SRST_H_RKVDEC		323
    781  1.1  jmcneill #define SRST_RKVDEC_CA		324
    782  1.1  jmcneill #define SRST_RKVDEC_CORE	325
    783  1.1  jmcneill #define SRST_RKVDEC_HEVC_CA	326
    784  1.1  jmcneill 
    785  1.1  jmcneill /* cru_softrst_con21 */
    786  1.1  jmcneill #define SRST_A_BUS_NIU		336
    787  1.1  jmcneill #define SRST_P_BUS_NIU		338
    788  1.1  jmcneill #define SRST_P_CAN0		340
    789  1.1  jmcneill #define SRST_CAN0		341
    790  1.1  jmcneill #define SRST_P_CAN1		342
    791  1.1  jmcneill #define SRST_CAN1		343
    792  1.1  jmcneill #define SRST_P_CAN2		344
    793  1.1  jmcneill #define SRST_CAN2		345
    794  1.1  jmcneill #define SRST_P_GPIO1		346
    795  1.1  jmcneill #define SRST_GPIO1		347
    796  1.1  jmcneill #define SRST_P_GPIO2		348
    797  1.1  jmcneill #define SRST_GPIO2		349
    798  1.1  jmcneill #define SRST_P_GPIO3		350
    799  1.1  jmcneill #define SRST_GPIO3		351
    800  1.1  jmcneill 
    801  1.1  jmcneill /* cru_softrst_con22 */
    802  1.1  jmcneill #define SRST_P_GPIO4		352
    803  1.1  jmcneill #define SRST_GPIO4		353
    804  1.1  jmcneill #define SRST_P_I2C1		354
    805  1.1  jmcneill #define SRST_I2C1		355
    806  1.1  jmcneill #define SRST_P_I2C2		356
    807  1.1  jmcneill #define SRST_I2C2		357
    808  1.1  jmcneill #define SRST_P_I2C3		358
    809  1.1  jmcneill #define SRST_I2C3		359
    810  1.1  jmcneill #define SRST_P_I2C4		360
    811  1.1  jmcneill #define SRST_I2C4		361
    812  1.1  jmcneill #define SRST_P_I2C5		362
    813  1.1  jmcneill #define SRST_I2C5		363
    814  1.1  jmcneill #define SRST_P_OTPC_NS		364
    815  1.1  jmcneill #define SRST_OTPC_NS_SBPI	365
    816  1.1  jmcneill #define SRST_OTPC_NS_USR	366
    817  1.1  jmcneill 
    818  1.1  jmcneill /* cru_softrst_con23 */
    819  1.1  jmcneill #define SRST_P_PWM1		368
    820  1.1  jmcneill #define SRST_PWM1		369
    821  1.1  jmcneill #define SRST_P_PWM2		370
    822  1.1  jmcneill #define SRST_PWM2		371
    823  1.1  jmcneill #define SRST_P_PWM3		372
    824  1.1  jmcneill #define SRST_PWM3		373
    825  1.1  jmcneill #define SRST_P_SPI0		374
    826  1.1  jmcneill #define SRST_SPI0		375
    827  1.1  jmcneill #define SRST_P_SPI1		376
    828  1.1  jmcneill #define SRST_SPI1		377
    829  1.1  jmcneill #define SRST_P_SPI2		378
    830  1.1  jmcneill #define SRST_SPI2		379
    831  1.1  jmcneill #define SRST_P_SPI3		380
    832  1.1  jmcneill #define SRST_SPI3		381
    833  1.1  jmcneill 
    834  1.1  jmcneill /* cru_softrst_con24 */
    835  1.1  jmcneill #define SRST_P_SARADC		384
    836  1.1  jmcneill #define SRST_P_TSADC		385
    837  1.1  jmcneill #define SRST_TSADC		386
    838  1.1  jmcneill #define SRST_P_TIMER		387
    839  1.1  jmcneill #define SRST_TIMER0		388
    840  1.1  jmcneill #define SRST_TIMER1		389
    841  1.1  jmcneill #define SRST_TIMER2		390
    842  1.1  jmcneill #define SRST_TIMER3		391
    843  1.1  jmcneill #define SRST_TIMER4		392
    844  1.1  jmcneill #define SRST_TIMER5		393
    845  1.1  jmcneill #define SRST_P_UART1		394
    846  1.1  jmcneill #define SRST_S_UART1		395
    847  1.1  jmcneill 
    848  1.1  jmcneill /* cru_softrst_con25 */
    849  1.1  jmcneill #define SRST_P_UART2		400
    850  1.1  jmcneill #define SRST_S_UART2		401
    851  1.1  jmcneill #define SRST_P_UART3		402
    852  1.1  jmcneill #define SRST_S_UART3		403
    853  1.1  jmcneill #define SRST_P_UART4		404
    854  1.1  jmcneill #define SRST_S_UART4		405
    855  1.1  jmcneill #define SRST_P_UART5		406
    856  1.1  jmcneill #define SRST_S_UART5		407
    857  1.1  jmcneill #define SRST_P_UART6		408
    858  1.1  jmcneill #define SRST_S_UART6		409
    859  1.1  jmcneill #define SRST_P_UART7		410
    860  1.1  jmcneill #define SRST_S_UART7		411
    861  1.1  jmcneill #define SRST_P_UART8		412
    862  1.1  jmcneill #define SRST_S_UART8		413
    863  1.1  jmcneill #define SRST_P_UART9		414
    864  1.1  jmcneill #define SRST_S_UART9		415
    865  1.1  jmcneill 
    866  1.1  jmcneill /* cru_softrst_con26 */
    867  1.1  jmcneill #define SRST_P_GRF 416
    868  1.1  jmcneill #define SRST_P_GRF_VCCIO12	417
    869  1.1  jmcneill #define SRST_P_GRF_VCCIO34	418
    870  1.1  jmcneill #define SRST_P_GRF_VCCIO567	419
    871  1.1  jmcneill #define SRST_P_SCR		420
    872  1.1  jmcneill #define SRST_P_WDT_NS		421
    873  1.1  jmcneill #define SRST_T_WDT_NS		422
    874  1.1  jmcneill #define SRST_P_DFT2APB		423
    875  1.1  jmcneill #define SRST_A_MCU		426
    876  1.1  jmcneill #define SRST_P_INTMUX		427
    877  1.1  jmcneill #define SRST_P_MAILBOX		428
    878  1.1  jmcneill 
    879  1.1  jmcneill /* cru_softrst_con27 */
    880  1.1  jmcneill #define SRST_A_TOP_HIGH_NIU	432
    881  1.1  jmcneill #define SRST_A_TOP_LOW_NIU	433
    882  1.1  jmcneill #define SRST_H_TOP_NIU		434
    883  1.1  jmcneill #define SRST_P_TOP_NIU		435
    884  1.1  jmcneill #define SRST_P_TOP_CRU		438
    885  1.1  jmcneill #define SRST_P_DDRPHY		439
    886  1.1  jmcneill #define SRST_DDRPHY		440
    887  1.1  jmcneill #define SRST_P_MIPICSIPHY	442
    888  1.1  jmcneill #define SRST_P_MIPIDSIPHY0	443
    889  1.1  jmcneill #define SRST_P_MIPIDSIPHY1	444
    890  1.1  jmcneill #define SRST_P_PCIE30PHY	445
    891  1.1  jmcneill #define SRST_PCIE30PHY		446
    892  1.1  jmcneill #define SRST_P_PCIE30PHY_GRF	447
    893  1.1  jmcneill 
    894  1.1  jmcneill /* cru_softrst_con28 */
    895  1.1  jmcneill #define SRST_P_APB2ASB_LEFT	448
    896  1.1  jmcneill #define SRST_P_APB2ASB_BOTTOM	449
    897  1.1  jmcneill #define SRST_P_ASB2APB_LEFT	450
    898  1.1  jmcneill #define SRST_P_ASB2APB_BOTTOM	451
    899  1.1  jmcneill #define SRST_P_PIPEPHY0		452
    900  1.1  jmcneill #define SRST_PIPEPHY0		453
    901  1.1  jmcneill #define SRST_P_PIPEPHY1		454
    902  1.1  jmcneill #define SRST_PIPEPHY1		455
    903  1.1  jmcneill #define SRST_P_PIPEPHY2		456
    904  1.1  jmcneill #define SRST_PIPEPHY2		457
    905  1.1  jmcneill #define SRST_P_USB2PHY0_GRF	458
    906  1.1  jmcneill #define SRST_P_USB2PHY1_GRF	459
    907  1.1  jmcneill #define SRST_P_CPU_BOOST	460
    908  1.1  jmcneill #define SRST_CPU_BOOST		461
    909  1.1  jmcneill #define SRST_P_OTPPHY		462
    910  1.1  jmcneill #define SRST_OTPPHY		463
    911  1.1  jmcneill 
    912  1.1  jmcneill /* cru_softrst_con29 */
    913  1.1  jmcneill #define SRST_USB2PHY0_POR	464
    914  1.1  jmcneill #define SRST_USB2PHY0_USB3OTG0	465
    915  1.1  jmcneill #define SRST_USB2PHY0_USB3OTG1	466
    916  1.1  jmcneill #define SRST_USB2PHY1_POR	467
    917  1.1  jmcneill #define SRST_USB2PHY1_USB2HOST0	468
    918  1.1  jmcneill #define SRST_USB2PHY1_USB2HOST1	469
    919  1.1  jmcneill #define SRST_P_EDPPHY_GRF	470
    920  1.1  jmcneill #define SRST_TSADCPHY		471
    921  1.1  jmcneill #define SRST_GMAC0_DELAYLINE	472
    922  1.1  jmcneill #define SRST_GMAC1_DELAYLINE	473
    923  1.1  jmcneill #define SRST_OTPC_ARB		474
    924  1.1  jmcneill #define SRST_P_PIPEPHY0_GRF	475
    925  1.1  jmcneill #define SRST_P_PIPEPHY1_GRF	476
    926  1.1  jmcneill #define SRST_P_PIPEPHY2_GRF	477
    927  1.1  jmcneill 
    928  1.1  jmcneill #endif
    929