xref: /openbmc/u-boot/arch/arm/include/asm/arch-hi6220/hi6220.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
28293009bSPeter Griffin /*
38293009bSPeter Griffin  * (C) Copyright 2015 Linaro
48293009bSPeter Griffin  * Peter Griffin <peter.griffin@linaro.org>
58293009bSPeter Griffin  */
68293009bSPeter Griffin 
78293009bSPeter Griffin #ifndef __HI6220_H__
88293009bSPeter Griffin #define __HI6220_H__
98293009bSPeter Griffin 
108293009bSPeter Griffin #include "hi6220_regs_alwayson.h"
118293009bSPeter Griffin 
128293009bSPeter Griffin #define HI6220_MMC0_BASE			0xF723D000
138293009bSPeter Griffin #define HI6220_MMC1_BASE			0xF723E000
148293009bSPeter Griffin 
15f7ca45e8SPeter Griffin #define HI6220_UART0_BASE			0xF8015000
16f7ca45e8SPeter Griffin #define HI6220_UART3_BASE			0xF7113000
17f7ca45e8SPeter Griffin 
188293009bSPeter Griffin #define HI6220_PMUSSI_BASE			0xF8000000
198293009bSPeter Griffin 
208293009bSPeter Griffin #define HI6220_PERI_BASE			0xF7030000
218293009bSPeter Griffin 
228293009bSPeter Griffin struct peri_sc_periph_regs {
238293009bSPeter Griffin 	u32 ctrl1;		/*0x0*/
248293009bSPeter Griffin 	u32 ctrl2;
258293009bSPeter Griffin 	u32 ctrl3;
268293009bSPeter Griffin 	u32 ctrl4;
278293009bSPeter Griffin 	u32 ctrl5;
288293009bSPeter Griffin 	u32 ctrl6;
298293009bSPeter Griffin 	u32 ctrl8;
308293009bSPeter Griffin 	u32 ctrl9;
318293009bSPeter Griffin 	u32 ctrl10;
328293009bSPeter Griffin 	u32 ctrl12;
338293009bSPeter Griffin 	u32 ctrl13;
348293009bSPeter Griffin 	u32 ctrl14;
358293009bSPeter Griffin 
368293009bSPeter Griffin 	u32 unknown_1[8];
378293009bSPeter Griffin 
388293009bSPeter Griffin 	u32 ddr_ctrl0;		/*0x50*/
398293009bSPeter Griffin 
408293009bSPeter Griffin 	u32 unknown_2[16];
418293009bSPeter Griffin 
428293009bSPeter Griffin 	u32 stat1;		/*0x94*/
438293009bSPeter Griffin 
448293009bSPeter Griffin 	u32 unknown_3[90];
458293009bSPeter Griffin 
468293009bSPeter Griffin 	u32 clk0_en;		/*0x200*/
478293009bSPeter Griffin 	u32 clk0_dis;
488293009bSPeter Griffin 	u32 clk0_stat;
498293009bSPeter Griffin 
508293009bSPeter Griffin 	u32 unknown_4;
518293009bSPeter Griffin 
528293009bSPeter Griffin 	u32 clk1_en;		/*0x210*/
538293009bSPeter Griffin 	u32 clk1_dis;
548293009bSPeter Griffin 	u32 clk1_stat;
558293009bSPeter Griffin 
568293009bSPeter Griffin 	u32 unknown_5;
578293009bSPeter Griffin 
588293009bSPeter Griffin 	u32 clk2_en;		/*0x220*/
598293009bSPeter Griffin 	u32 clk2_dis;
608293009bSPeter Griffin 	u32 clk2_stat;
618293009bSPeter Griffin 
628293009bSPeter Griffin 	u32 unknown_6;
638293009bSPeter Griffin 
648293009bSPeter Griffin 	u32 clk3_en;		/*0x230*/
658293009bSPeter Griffin 	u32 clk3_dis;
668293009bSPeter Griffin 	u32 clk3_stat;
678293009bSPeter Griffin 
688293009bSPeter Griffin 	u32 unknown_7;
698293009bSPeter Griffin 
708293009bSPeter Griffin 	u32 clk8_en;		/*0x240*/
718293009bSPeter Griffin 	u32 clk8_dis;
728293009bSPeter Griffin 	u32 clk8_stat;
738293009bSPeter Griffin 
748293009bSPeter Griffin 	u32 unknown_8;
758293009bSPeter Griffin 
768293009bSPeter Griffin 	u32 clk9_en;		/*0x250*/
778293009bSPeter Griffin 	u32 clk9_dis;
788293009bSPeter Griffin 	u32 clk9_stat;
798293009bSPeter Griffin 
808293009bSPeter Griffin 	u32 unknown_9;
818293009bSPeter Griffin 
828293009bSPeter Griffin 	u32 clk10_en;		/*0x260*/
838293009bSPeter Griffin 	u32 clk10_dis;
848293009bSPeter Griffin 	u32 clk10_stat;
858293009bSPeter Griffin 
868293009bSPeter Griffin 	u32 unknown_10;
878293009bSPeter Griffin 
888293009bSPeter Griffin 	u32 clk12_en;		/*0x270*/
898293009bSPeter Griffin 	u32 clk12_dis;
908293009bSPeter Griffin 	u32 clk12_stat;
918293009bSPeter Griffin 
928293009bSPeter Griffin 	u32 unknown_11[33];
938293009bSPeter Griffin 
948293009bSPeter Griffin 	u32 rst0_en;		/*0x300*/
958293009bSPeter Griffin 	u32 rst0_dis;
968293009bSPeter Griffin 	u32 rst0_stat;
978293009bSPeter Griffin 
988293009bSPeter Griffin 	u32 unknown_12;
998293009bSPeter Griffin 
1008293009bSPeter Griffin 	u32 rst1_en;		/*0x310*/
1018293009bSPeter Griffin 	u32 rst1_dis;
1028293009bSPeter Griffin 	u32 rst1_stat;
1038293009bSPeter Griffin 
1048293009bSPeter Griffin 	u32 unknown_13;
1058293009bSPeter Griffin 
1068293009bSPeter Griffin 	u32 rst2_en;		/*0x320*/
1078293009bSPeter Griffin 	u32 rst2_dis;
1088293009bSPeter Griffin 	u32 rst2_stat;
1098293009bSPeter Griffin 
1108293009bSPeter Griffin 	u32 unknown_14;
1118293009bSPeter Griffin 
1128293009bSPeter Griffin 	u32 rst3_en;		/*0x330*/
1138293009bSPeter Griffin 	u32 rst3_dis;
1148293009bSPeter Griffin 	u32 rst3_stat;
1158293009bSPeter Griffin 
1168293009bSPeter Griffin 	u32 unknown_15;
1178293009bSPeter Griffin 
1188293009bSPeter Griffin 	u32 rst8_en;		/*0x340*/
1198293009bSPeter Griffin 	u32 rst8_dis;
1208293009bSPeter Griffin 	u32 rst8_stat;
1218293009bSPeter Griffin 
1228293009bSPeter Griffin 	u32 unknown_16[45];
1238293009bSPeter Griffin 
1248293009bSPeter Griffin 	u32 clk0_sel;		/*0x400*/
1258293009bSPeter Griffin 
1268293009bSPeter Griffin 	u32 unknown_17[36];
1278293009bSPeter Griffin 
1288293009bSPeter Griffin 	u32 clkcfg8bit1;	/*0x494*/
1298293009bSPeter Griffin 	u32 clkcfg8bit2;
1308293009bSPeter Griffin 
1318293009bSPeter Griffin 	u32 unknown_18[538];
1328293009bSPeter Griffin 
1338293009bSPeter Griffin 	u32 reserved8_addr;	/*0xd04*/
1348293009bSPeter Griffin };
1358293009bSPeter Griffin 
1368293009bSPeter Griffin 
1378293009bSPeter Griffin /* CTRL1 bit definitions */
1388293009bSPeter Griffin 
1398293009bSPeter Griffin #define PERI_CTRL1_ETR_AXI_CSYSREQ_N			(1 << 0)
1408293009bSPeter Griffin #define PERI_CTRL1_HIFI_INT_MASK			(1 << 1)
1418293009bSPeter Griffin #define PERI_CTRL1_HIFI_ALL_INT_MASK			(1 << 2)
1428293009bSPeter Griffin #define PERI_CTRL1_ETR_AXI_CSYSREQ_N_MSK		(1 << 16)
1438293009bSPeter Griffin #define PERI_CTRL1_HIFI_INT_MASK_MSK			(1 << 17)
1448293009bSPeter Griffin #define PERI_CTRL1_HIFI_ALL_INT_MASK_MSK		(1 << 18)
1458293009bSPeter Griffin 
1468293009bSPeter Griffin 
1478293009bSPeter Griffin /* CTRL2 bit definitions */
1488293009bSPeter Griffin 
1498293009bSPeter Griffin #define PERI_CTRL2_MMC_CLK_PHASE_BYPASS_EN_MMC0		(1 << 0)
1508293009bSPeter Griffin #define PERI_CTRL2_MMC_CLK_PHASE_BYPASS_EN_MMC1		(1 << 2)
1518293009bSPeter Griffin #define PERI_CTRL2_NAND_SYS_MEM_SEL			(1 << 6)
1528293009bSPeter Griffin #define PERI_CTRL2_G3D_DDRT_AXI_SEL			(1 << 7)
1538293009bSPeter Griffin #define PERI_CTRL2_GU_MDM_BBP_TESTPIN_SEL		(1 << 8)
1548293009bSPeter Griffin #define PERI_CTRL2_CODEC_SSI_MASTER_CHECK		(1 << 9)
1558293009bSPeter Griffin #define PERI_CTRL2_FUNC_TEST_SOFT			(1 << 12)
1568293009bSPeter Griffin #define PERI_CTRL2_CSSYS_TS_ENABLE			(1 << 15)
1578293009bSPeter Griffin #define PERI_CTRL2_HIFI_RAMCTRL_S_EMA			(1 << 16)
1588293009bSPeter Griffin #define PERI_CTRL2_HIFI_RAMCTRL_S_EMAW			(1 << 20)
1598293009bSPeter Griffin #define PERI_CTRL2_HIFI_RAMCTRL_S_EMAS			(1 << 22)
1608293009bSPeter Griffin #define PERI_CTRL2_HIFI_RAMCTRL_S_RET1N			(1 << 26)
1618293009bSPeter Griffin #define PERI_CTRL2_HIFI_RAMCTRL_S_RET2N			(1 << 27)
1628293009bSPeter Griffin #define PERI_CTRL2_HIFI_RAMCTRL_S_PGEN			(1 << 28)
1638293009bSPeter Griffin 
1648293009bSPeter Griffin /* CTRL3 bit definitions */
1658293009bSPeter Griffin 
1668293009bSPeter Griffin #define PERI_CTRL3_HIFI_DDR_HARQMEM_ADDR		(1 << 0)
1678293009bSPeter Griffin #define PERI_CTRL3_HIFI_HARQMEMRMP_EN			(1 << 12)
1688293009bSPeter Griffin #define PERI_CTRL3_HARQMEM_SYS_MED_SEL			(1 << 13)
1698293009bSPeter Griffin #define PERI_CTRL3_SOC_AP_OCCUPY_GRP1			(1 << 14)
1708293009bSPeter Griffin #define PERI_CTRL3_SOC_AP_OCCUPY_GRP2			(1 << 16)
1718293009bSPeter Griffin #define PERI_CTRL3_SOC_AP_OCCUPY_GRP3			(1 << 18)
1728293009bSPeter Griffin #define PERI_CTRL3_SOC_AP_OCCUPY_GRP4			(1 << 20)
1738293009bSPeter Griffin #define PERI_CTRL3_SOC_AP_OCCUPY_GRP5			(1 << 22)
1748293009bSPeter Griffin #define PERI_CTRL3_SOC_AP_OCCUPY_GRP6			(1 << 24)
1758293009bSPeter Griffin 
1768293009bSPeter Griffin /* CTRL4 bit definitions */
1778293009bSPeter Griffin 
1788293009bSPeter Griffin #define PERI_CTRL4_PICO_FSELV				(1 << 0)
1798293009bSPeter Griffin #define PERI_CTRL4_FPGA_EXT_PHY_SEL			(1 << 3)
1808293009bSPeter Griffin #define PERI_CTRL4_PICO_REFCLKSEL			(1 << 4)
1818293009bSPeter Griffin #define PERI_CTRL4_PICO_SIDDQ				(1 << 6)
1828293009bSPeter Griffin #define PERI_CTRL4_PICO_SUSPENDM_SLEEPM			(1 << 7)
1838293009bSPeter Griffin #define PERI_CTRL4_PICO_OGDISABLE			(1 << 8)
1848293009bSPeter Griffin #define PERI_CTRL4_PICO_COMMONONN			(1 << 9)
1858293009bSPeter Griffin #define PERI_CTRL4_PICO_VBUSVLDEXT			(1 << 10)
1868293009bSPeter Griffin #define PERI_CTRL4_PICO_VBUSVLDEXTSEL			(1 << 11)
1878293009bSPeter Griffin #define PERI_CTRL4_PICO_VATESTENB			(1 << 12)
1888293009bSPeter Griffin #define PERI_CTRL4_PICO_SUSPENDM			(1 << 14)
1898293009bSPeter Griffin #define PERI_CTRL4_PICO_SLEEPM				(1 << 15)
1908293009bSPeter Griffin #define PERI_CTRL4_BC11_C				(1 << 16)
1918293009bSPeter Griffin #define PERI_CTRL4_BC11_B				(1 << 17)
1928293009bSPeter Griffin #define PERI_CTRL4_BC11_A				(1 << 18)
1938293009bSPeter Griffin #define PERI_CTRL4_BC11_GND				(1 << 19)
1948293009bSPeter Griffin #define PERI_CTRL4_BC11_FLOAT				(1 << 20)
1958293009bSPeter Griffin #define PERI_CTRL4_OTG_PHY_SEL				(1 << 21)
1968293009bSPeter Griffin #define PERI_CTRL4_USB_OTG_SS_SCALEDOWN_MODE		(1 << 22)
1978293009bSPeter Griffin #define PERI_CTRL4_OTG_DM_PULLDOWN			(1 << 24)
1988293009bSPeter Griffin #define PERI_CTRL4_OTG_DP_PULLDOWN			(1 << 25)
1998293009bSPeter Griffin #define PERI_CTRL4_OTG_IDPULLUP				(1 << 26)
2008293009bSPeter Griffin #define PERI_CTRL4_OTG_DRVBUS				(1 << 27)
2018293009bSPeter Griffin #define PERI_CTRL4_OTG_SESSEND				(1 << 28)
2028293009bSPeter Griffin #define PERI_CTRL4_OTG_BVALID				(1 << 29)
2038293009bSPeter Griffin #define PERI_CTRL4_OTG_AVALID				(1 << 30)
2048293009bSPeter Griffin #define PERI_CTRL4_OTG_VBUSVALID			(1 << 31)
2058293009bSPeter Griffin 
2068293009bSPeter Griffin /* CTRL5 bit definitions */
2078293009bSPeter Griffin 
2088293009bSPeter Griffin #define PERI_CTRL5_USBOTG_RES_SEL			(1 << 3)
2098293009bSPeter Griffin #define PERI_CTRL5_PICOPHY_ACAENB			(1 << 4)
2108293009bSPeter Griffin #define PERI_CTRL5_PICOPHY_BC_MODE			(1 << 5)
2118293009bSPeter Griffin #define PERI_CTRL5_PICOPHY_CHRGSEL			(1 << 6)
2128293009bSPeter Griffin #define PERI_CTRL5_PICOPHY_VDATSRCEND			(1 << 7)
2138293009bSPeter Griffin #define PERI_CTRL5_PICOPHY_VDATDETENB			(1 << 8)
2148293009bSPeter Griffin #define PERI_CTRL5_PICOPHY_DCDENB			(1 << 9)
2158293009bSPeter Griffin #define PERI_CTRL5_PICOPHY_IDDIG			(1 << 10)
2168293009bSPeter Griffin #define PERI_CTRL5_DBG_MUX				(1 << 11)
2178293009bSPeter Griffin 
2188293009bSPeter Griffin /* CTRL6 bit definitions */
2198293009bSPeter Griffin 
2208293009bSPeter Griffin #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_EMA		(1 << 0)
2218293009bSPeter Griffin #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_EMAW		(1 << 4)
2228293009bSPeter Griffin #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_EMAS		(1 << 6)
2238293009bSPeter Griffin #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_RET1N		(1 << 10)
2248293009bSPeter Griffin #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_RET2N		(1 << 11)
2258293009bSPeter Griffin #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_PGEN		(1 << 12)
2268293009bSPeter Griffin 
2278293009bSPeter Griffin /* CTRL8 bit definitions */
2288293009bSPeter Griffin 
2298293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_TXRISETUNE0			(1 << 0)
2308293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_TXPREEMPAMPTUNE0		(1 << 2)
2318293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_TXRESTUNE0			(1 << 4)
2328293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_TXHSSVTUNE0			(1 << 6)
2338293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_COMPDISTUNE0			(1 << 8)
2348293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_TXPREEMPPULSETUNE0		(1 << 11)
2358293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_OTGTUNE0			(1 << 12)
2368293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_SQRXTUNE0			(1 << 16)
2378293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_TXVREFTUNE0			(1 << 20)
2388293009bSPeter Griffin #define PERI_CTRL8_PICOPHY_TXFSLSTUNE0			(1 << 28)
2398293009bSPeter Griffin 
2408293009bSPeter Griffin /* CTRL9 bit definitions */
2418293009bSPeter Griffin 
2428293009bSPeter Griffin #define PERI_CTRL9_PICOPLY_TESTCLKEN			(1 << 0)
2438293009bSPeter Griffin #define PERI_CTRL9_PICOPLY_TESTDATAOUTSEL		(1 << 1)
2448293009bSPeter Griffin #define PERI_CTRL9_PICOPLY_TESTADDR			(1 << 4)
2458293009bSPeter Griffin #define PERI_CTRL9_PICOPLY_TESTDATAIN			(1 << 8)
2468293009bSPeter Griffin 
2478293009bSPeter Griffin /* CLK0 EN/DIS/STAT bit definitions */
2488293009bSPeter Griffin 
2498293009bSPeter Griffin #define PERI_CLK0_MMC0					(1 << 0)
2508293009bSPeter Griffin #define PERI_CLK0_MMC1					(1 << 1)
2518293009bSPeter Griffin #define PERI_CLK0_MMC2					(1 << 2)
2528293009bSPeter Griffin #define PERI_CLK0_NANDC					(1 << 3)
2538293009bSPeter Griffin #define PERI_CLK0_USBOTG				(1 << 4)
2548293009bSPeter Griffin #define PERI_CLK0_PICOPHY				(1 << 5)
2558293009bSPeter Griffin #define PERI_CLK0_PLL					(1 << 6)
2568293009bSPeter Griffin 
2578293009bSPeter Griffin /* CLK1 EN/DIS/STAT bit definitions */
2588293009bSPeter Griffin 
2598293009bSPeter Griffin #define PERI_CLK1_HIFI					(1 << 0)
2608293009bSPeter Griffin #define PERI_CLK1_DIGACODEC				(1 << 5)
2618293009bSPeter Griffin 
2628293009bSPeter Griffin /* CLK2 EN/DIS/STAT bit definitions */
2638293009bSPeter Griffin 
2648293009bSPeter Griffin #define PERI_CLK2_IPF					(1 << 0)
2658293009bSPeter Griffin #define PERI_CLK2_SOCP					(1 << 1)
2668293009bSPeter Griffin #define PERI_CLK2_DMAC					(1 << 2)
2678293009bSPeter Griffin #define PERI_CLK2_SECENG				(1 << 3)
2688293009bSPeter Griffin #define PERI_CLK2_HPM0					(1 << 5)
2698293009bSPeter Griffin #define PERI_CLK2_HPM1					(1 << 6)
2708293009bSPeter Griffin #define PERI_CLK2_HPM2					(1 << 7)
2718293009bSPeter Griffin #define PERI_CLK2_HPM3					(1 << 8)
2728293009bSPeter Griffin 
2738293009bSPeter Griffin /* CLK8 EN/DIS/STAT bit definitions */
2748293009bSPeter Griffin 
2758293009bSPeter Griffin #define PERI_CLK8_RS0					(1 << 0)
2768293009bSPeter Griffin #define PERI_CLK8_RS2					(1 << 1)
2778293009bSPeter Griffin #define PERI_CLK8_RS3					(1 << 2)
2788293009bSPeter Griffin #define PERI_CLK8_MS0					(1 << 3)
2798293009bSPeter Griffin #define PERI_CLK8_MS2					(1 << 5)
2808293009bSPeter Griffin #define PERI_CLK8_XG2RAM0				(1 << 6)
2818293009bSPeter Griffin #define PERI_CLK8_X2SRAM				(1 << 7)
2828293009bSPeter Griffin #define PERI_CLK8_SRAM					(1 << 8)
2838293009bSPeter Griffin #define PERI_CLK8_ROM					(1 << 9)
2848293009bSPeter Griffin #define PERI_CLK8_HARQ					(1 << 10)
2858293009bSPeter Griffin #define PERI_CLK8_MMU					(1 << 11)
2868293009bSPeter Griffin #define PERI_CLK8_DDRC					(1 << 12)
2878293009bSPeter Griffin #define PERI_CLK8_DDRPHY				(1 << 13)
2888293009bSPeter Griffin #define PERI_CLK8_DDRPHY_REF				(1 << 14)
2898293009bSPeter Griffin #define PERI_CLK8_X2X_SYSNOC				(1 << 15)
2908293009bSPeter Griffin #define PERI_CLK8_X2X_CCPU				(1 << 16)
2918293009bSPeter Griffin #define PERI_CLK8_DDRT					(1 << 17)
2928293009bSPeter Griffin #define PERI_CLK8_DDRPACK_RS				(1 << 18)
2938293009bSPeter Griffin 
2948293009bSPeter Griffin /* CLK9 EN/DIS/STAT bit definitions */
2958293009bSPeter Griffin 
2968293009bSPeter Griffin #define PERI_CLK9_CARM_DAP				(1 << 0)
2978293009bSPeter Griffin #define PERI_CLK9_CARM_ATB				(1 << 1)
2988293009bSPeter Griffin #define PERI_CLK9_CARM_LBUS				(1 << 2)
2998293009bSPeter Griffin #define PERI_CLK9_CARM_KERNEL				(1 << 3)
3008293009bSPeter Griffin 
3018293009bSPeter Griffin /* CLK10 EN/DIS/STAT bit definitions */
3028293009bSPeter Griffin 
3038293009bSPeter Griffin #define PERI_CLK10_IPF_CCPU				(1 << 0)
3048293009bSPeter Griffin #define PERI_CLK10_SOCP_CCPU				(1 << 1)
3058293009bSPeter Griffin #define PERI_CLK10_SECENG_CCPU				(1 << 2)
3068293009bSPeter Griffin #define PERI_CLK10_HARQ_CCPU				(1 << 3)
3078293009bSPeter Griffin #define PERI_CLK10_IPF_MCU				(1 << 16)
3088293009bSPeter Griffin #define PERI_CLK10_SOCP_MCU				(1 << 17)
3098293009bSPeter Griffin #define PERI_CLK10_SECENG_MCU				(1 << 18)
3108293009bSPeter Griffin #define PERI_CLK10_HARQ_MCU				(1 << 19)
3118293009bSPeter Griffin 
3128293009bSPeter Griffin /* CLK12 EN/DIS/STAT bit definitions */
3138293009bSPeter Griffin 
3148293009bSPeter Griffin #define PERI_CLK12_HIFI_SRC				(1 << 0)
3158293009bSPeter Griffin #define PERI_CLK12_MMC0_SRC				(1 << 1)
3168293009bSPeter Griffin #define PERI_CLK12_MMC1_SRC				(1 << 2)
3178293009bSPeter Griffin #define PERI_CLK12_MMC2_SRC				(1 << 3)
3188293009bSPeter Griffin #define PERI_CLK12_SYSPLL_DIV				(1 << 4)
3198293009bSPeter Griffin #define PERI_CLK12_TPIU_SRC				(1 << 5)
3208293009bSPeter Griffin #define PERI_CLK12_MMC0_HF				(1 << 6)
3218293009bSPeter Griffin #define PERI_CLK12_MMC1_HF				(1 << 7)
3228293009bSPeter Griffin #define PERI_CLK12_PLL_TEST_SRC				(1 << 8)
3238293009bSPeter Griffin #define PERI_CLK12_CODEC_SOC				(1 << 9)
3248293009bSPeter Griffin #define PERI_CLK12_MEDIA				(1 << 10)
3258293009bSPeter Griffin 
3268293009bSPeter Griffin /* RST0 EN/DIS/STAT bit definitions */
3278293009bSPeter Griffin 
3288293009bSPeter Griffin #define PERI_RST0_MMC0					(1 << 0)
3298293009bSPeter Griffin #define PERI_RST0_MMC1					(1 << 1)
3308293009bSPeter Griffin #define PERI_RST0_MMC2					(1 << 2)
3318293009bSPeter Griffin #define PERI_RST0_NANDC					(1 << 3)
3328293009bSPeter Griffin #define PERI_RST0_USBOTG_BUS				(1 << 4)
3338293009bSPeter Griffin #define PERI_RST0_POR_PICOPHY				(1 << 5)
3348293009bSPeter Griffin #define PERI_RST0_USBOTG				(1 << 6)
3358293009bSPeter Griffin #define PERI_RST0_USBOTG_32K				(1 << 7)
3368293009bSPeter Griffin 
3378293009bSPeter Griffin /* RST1 EN/DIS/STAT bit definitions */
3388293009bSPeter Griffin 
3398293009bSPeter Griffin #define PERI_RST1_HIFI					(1 << 0)
3408293009bSPeter Griffin #define PERI_RST1_DIGACODEC				(1 << 5)
3418293009bSPeter Griffin 
3428293009bSPeter Griffin /* RST2 EN/DIS/STAT bit definitions */
3438293009bSPeter Griffin 
3448293009bSPeter Griffin #define PERI_RST2_IPF					(1 << 0)
3458293009bSPeter Griffin #define PERI_RST2_SOCP					(1 << 1)
3468293009bSPeter Griffin #define PERI_RST2_DMAC					(1 << 2)
3478293009bSPeter Griffin #define PERI_RST2_SECENG				(1 << 3)
3488293009bSPeter Griffin #define PERI_RST2_ABB					(1 << 4)
3498293009bSPeter Griffin #define PERI_RST2_HPM0					(1 << 5)
3508293009bSPeter Griffin #define PERI_RST2_HPM1					(1 << 6)
3518293009bSPeter Griffin #define PERI_RST2_HPM2					(1 << 7)
3528293009bSPeter Griffin #define PERI_RST2_HPM3					(1 << 8)
3538293009bSPeter Griffin 
3548293009bSPeter Griffin /* RST3 EN/DIS/STAT bit definitions */
3558293009bSPeter Griffin 
3568293009bSPeter Griffin #define PERI_RST3_CSSYS					(1 << 0)
3578293009bSPeter Griffin #define PERI_RST3_I2C0					(1 << 1)
3588293009bSPeter Griffin #define PERI_RST3_I2C1					(1 << 2)
3598293009bSPeter Griffin #define PERI_RST3_I2C2					(1 << 3)
3608293009bSPeter Griffin #define PERI_RST3_I2C3					(1 << 4)
3618293009bSPeter Griffin #define PERI_RST3_UART1					(1 << 5)
3628293009bSPeter Griffin #define PERI_RST3_UART2					(1 << 6)
3638293009bSPeter Griffin #define PERI_RST3_UART3					(1 << 7)
3648293009bSPeter Griffin #define PERI_RST3_UART4					(1 << 8)
3658293009bSPeter Griffin #define PERI_RST3_SSP					(1 << 9)
3668293009bSPeter Griffin #define PERI_RST3_PWM					(1 << 10)
3678293009bSPeter Griffin #define PERI_RST3_BLPWM					(1 << 11)
3688293009bSPeter Griffin #define PERI_RST3_TSENSOR				(1 << 12)
3698293009bSPeter Griffin #define PERI_RST3_DAPB					(1 << 18)
3708293009bSPeter Griffin #define PERI_RST3_HKADC					(1 << 19)
3718293009bSPeter Griffin #define PERI_RST3_CODEC					(1 << 20)
3728293009bSPeter Griffin 
3738293009bSPeter Griffin /* RST8 EN/DIS/STAT bit definitions */
3748293009bSPeter Griffin 
3758293009bSPeter Griffin #define PERI_RST8_RS0					(1 << 0)
3768293009bSPeter Griffin #define PERI_RST8_RS2					(1 << 1)
3778293009bSPeter Griffin #define PERI_RST8_RS3					(1 << 2)
3788293009bSPeter Griffin #define PERI_RST8_MS0					(1 << 3)
3798293009bSPeter Griffin #define PERI_RST8_MS2					(1 << 5)
3808293009bSPeter Griffin #define PERI_RST8_XG2RAM0				(1 << 6)
3818293009bSPeter Griffin #define PERI_RST8_X2SRAM_TZMA				(1 << 7)
3828293009bSPeter Griffin #define PERI_RST8_SRAM					(1 << 8)
3838293009bSPeter Griffin #define PERI_RST8_HARQ					(1 << 10)
3848293009bSPeter Griffin #define PERI_RST8_DDRC					(1 << 12)
3858293009bSPeter Griffin #define PERI_RST8_DDRC_APB				(1 << 13)
3868293009bSPeter Griffin #define PERI_RST8_DDRPACK_APB				(1 << 14)
3878293009bSPeter Griffin #define PERI_RST8_DDRT					(1 << 17)
3888293009bSPeter Griffin 
3898293009bSPeter Griffin #endif /*__HI62220_H__*/
390