hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/drivers/clk/rockchip/clk.h
....@@ -255,6 +255,34 @@
255255 #define RK3399_PMU_CLKGATE_CON(x) ((x) * 0x4 + 0x100)
256256 #define RK3399_PMU_SOFTRST_CON(x) ((x) * 0x4 + 0x110)
257257
258
+#define RK3528_PMU_CRU_BASE 0x10000
259
+#define RK3528_PCIE_CRU_BASE 0x20000
260
+#define RK3528_DDRPHY_CRU_BASE 0x28000
261
+#define RK3528_VPU_GRF_BASE 0x40000
262
+#define RK3528_VO_GRF_BASE 0x60000
263
+#define RK3528_SDMMC_CON0 (RK3528_VO_GRF_BASE + 0x24)
264
+#define RK3528_SDMMC_CON1 (RK3528_VO_GRF_BASE + 0x28)
265
+#define RK3528_SDIO0_CON0 (RK3528_VPU_GRF_BASE + 0x4)
266
+#define RK3528_SDIO0_CON1 (RK3528_VPU_GRF_BASE + 0x8)
267
+#define RK3528_SDIO1_CON0 (RK3528_VPU_GRF_BASE + 0xc)
268
+#define RK3528_SDIO1_CON1 (RK3528_VPU_GRF_BASE + 0x10)
269
+#define RK3528_PLL_CON(x) RK2928_PLL_CON(x)
270
+#define RK3528_PCIE_PLL_CON(x) ((x) * 0x4 + RK3528_PCIE_CRU_BASE)
271
+#define RK3528_DDRPHY_PLL_CON(x) ((x) * 0x4 + RK3528_DDRPHY_CRU_BASE)
272
+#define RK3528_MODE_CON 0x280
273
+#define RK3528_CLKSEL_CON(x) ((x) * 0x4 + 0x300)
274
+#define RK3528_CLKGATE_CON(x) ((x) * 0x4 + 0x800)
275
+#define RK3528_SOFTRST_CON(x) ((x) * 0x4 + 0xa00)
276
+#define RK3528_PMU_CLKSEL_CON(x) ((x) * 0x4 + 0x300 + RK3528_PMU_CRU_BASE)
277
+#define RK3528_PMU_CLKGATE_CON(x) ((x) * 0x4 + 0x800 + RK3528_PMU_CRU_BASE)
278
+#define RK3528_PCIE_CLKSEL_CON(x) ((x) * 0x4 + 0x300 + RK3528_PCIE_CRU_BASE)
279
+#define RK3528_PCIE_CLKGATE_CON(x) ((x) * 0x4 + 0x800 + RK3528_PCIE_CRU_BASE)
280
+#define RK3528_DDRPHY_CLKGATE_CON(x) ((x) * 0x4 + 0x800 + RK3528_DDRPHY_CRU_BASE)
281
+#define RK3528_DDRPHY_MODE_CON (0x280 + RK3528_DDRPHY_CRU_BASE)
282
+#define RK3528_GLB_CNT_TH 0xc00
283
+#define RK3528_GLB_SRST_FST 0xc08
284
+#define RK3528_GLB_SRST_SND 0xc0c
285
+
258286 #define RK3568_PLL_CON(x) RK2928_PLL_CON(x)
259287 #define RK3568_MODE_CON0 0xc0
260288 #define RK3568_MISC_CON0 0xc4