3 #ifndef __SOC_ROCKCHIP_RK3399_GRF_H__
4 #define __SOC_ROCKCHIP_RK3399_GRF_H__
6 #include <soc/addressmap.h>
323 #define UART2A_SEL RK_CLRSETBITS(3 << 10, 0 << 10)
324 #define UART2B_SEL RK_CLRSETBITS(3 << 10, 1 << 10)
325 #define UART2C_SEL RK_CLRSETBITS(3 << 10, 2 << 10)
326 #define PWM3_SEL_A RK_CLRBITS(1 << 5)
327 #define PWM3_SEL_B RK_SETBITS(1 << 5)
329 #define IOMUX_UART2A RK_CLRSETBITS(3 << 2 | 3 << 0, 2 << 2 | 2 << 0)
330 #define IOMUX_UART2B RK_CLRSETBITS(3 << 2 | 3 << 0, 2 << 2 | 2 << 0)
331 #define IOMUX_UART2C RK_CLRSETBITS(3 << 8 | 3 << 6, 1 << 8 | 1 << 6)
332 #define IOMUX_SPI0 RK_CLRSETBITS(0xff << 8, \
333 2 << 14 | 2 << 12 | 2 << 10 | 2 << 8)
334 #define IOMUX_SPI1_RX RK_CLRSETBITS(3 << 14, 2 << 14)
335 #define IOMUX_SPI1_CSCLKTX RK_CLRSETBITS(0x3f << 0, 2 << 4 |\
337 #define IOMUX_SPI2 RK_CLRSETBITS(0xff << 2, 1 << 8 | 1 << 6 |\
339 #define IOMUX_SPI5 RK_CLRSETBITS(0xff << 8, \
340 2 << 14 | 2 << 12 | 2 << 10 | 2 << 8)
341 #define IOMUX_SDMMC RK_CLRSETBITS(0xfff, 1 << 10 | 1 << 8 | 1 << 6 |\
342 1 << 4 | 1 << 2 | 1 << 0)
343 #define IOMUX_I2C0_SCL RK_CLRSETBITS(3 << 0, 2 << 0)
344 #define IOMUX_I2C0_SDA RK_CLRSETBITS(3 << 14, 2 << 14)
346 #define IOMUX_I2S0_SD0 RK_SETBITS(1 << 14 | 1 << 6 | 1 << 4 | 1 << 2 | 1 << 0)
347 #define IOMUX_I2SCLK RK_SETBITS(1 << 0)
349 #define IOMUX_PWM_0 RK_SETBITS(1 << 4)
350 #define IOMUX_PWM_1 RK_SETBITS(1 << 12)
351 #define IOMUX_PWM_2 RK_SETBITS(1 << 6)
352 #define IOMUX_PWM_3_A RK_SETBITS(1 << 12)
353 #define IOMUX_PWM_3_B RK_SETBITS(1 << 12)
354 #define IOMUX_TSADC_INT RK_CLRSETBITS(3 << 12, 1 << 12)
355 #define IOMUX_EDP_HOTPLUG RK_CLRSETBITS(3 << 14, 2 << 14)
check_member(rk3288_grf_gpio_lh, h, 0x4)
static struct rk3399_pmugrf_regs *const rk3399_pmugrf
static struct rk3399_grf_regs *const rk3399_grf
static struct rk3399_pmusgrf_regs *const rk3399_pmusgrf
u32 pcie_perf_rd_laterncy_acc_num
u32 usb3_perf_rd_latency_acc_num
u32 usb3_perf_rd_latency_samp_num
u32 pcie_perf_rd_axi_total_byte
u32 pcie_perf_rd_latency_samp_num
u32 a72_perf_rd_axi_total_byte
u32 a72_perf_rd_laterncy_acc_num
u32 pcie_perf_rd_max_latency_num
u32 reserved24[(0xe130 - 0xe0ec)/4 - 1]
u32 usb3_perf_rd_max_latency_num
u32 a53_perf_rd_latency_samp_num
u32 usb3_perf_rd_axi_total_byte
u32 a53_perf_rd_max_latency_num
u32 usb3_perf_working_cnt
u32 a72_perf_rd_max_latency_num
u32 a72_perf_rd_latency_samp_num
u32 reserved24a[(0xe200 - 0xe134)/4 - 1]
u32 pcie_perf_wr_axi_total_byte
u32 usb3_perf_wr_axi_total_byte
u32 a53_perf_rd_laterncy_acc_num
u32 a53_perf_rd_axi_total_byte
u32 a72_perf_wr_axi_total_byte
u32 pcie_perf_working_cnt
u32 a53_perf_wr_axi_total_byte