hc
2023-11-06 36f0949ef9854b82a9a3154d970da4e3b8d12a61
kernel/include/linux/rockchip/cpu.h
....@@ -24,6 +24,7 @@
2424 #define ROCKCHIP_CPU_RK312X 0x31260000
2525 #define ROCKCHIP_CPU_RK3288 0x32880000
2626 #define ROCKCHIP_CPU_RK3308 0x33080000
27
+#define ROCKCHIP_CPU_RK3528 0x35280000
2728 #define ROCKCHIP_CPU_RK3566 0x35660000
2829 #define ROCKCHIP_CPU_RK3568 0x35680000
2930
....@@ -153,6 +154,17 @@
153154 static inline bool cpu_is_rk3308(void) { return false; }
154155 #endif
155156
157
+#if defined(CONFIG_CPU_RK3528)
158
+static inline bool cpu_is_rk3528(void)
159
+{
160
+ if (rockchip_soc_id)
161
+ return (rockchip_soc_id & ROCKCHIP_CPU_MASK) == ROCKCHIP_CPU_RK3528;
162
+ return of_machine_is_compatible("rockchip,rk3528");
163
+}
164
+#else
165
+static inline bool cpu_is_rk3528(void) { return false; }
166
+#endif
167
+
156168 #if defined(CONFIG_CPU_RK3568)
157169 static inline bool cpu_is_rk3566(void)
158170 {
....@@ -185,6 +197,7 @@
185197 #define ROCKCHIP_SOC_RK3288W (ROCKCHIP_CPU_RK3288 | 0x01)
186198 #define ROCKCHIP_SOC_RK3308 (ROCKCHIP_CPU_RK3308 | 0x00)
187199 #define ROCKCHIP_SOC_RK3308B (ROCKCHIP_CPU_RK3308 | 0x01)
200
+#define ROCKCHIP_SOC_RK3528 (ROCKCHIP_CPU_RK3528 | 0x00)
188201 #define ROCKCHIP_SOC_RK3566 (ROCKCHIP_CPU_RK3566 | 0x00)
189202 #define ROCKCHIP_SOC_RK3568 (ROCKCHIP_CPU_RK3568 | 0x00)
190203
....@@ -208,6 +221,7 @@
208221 ROCKCHIP_SOC(rk3288w, RK3288W)
209222 ROCKCHIP_SOC(rk3308, RK3308)
210223 ROCKCHIP_SOC(rk3308b, RK3308B)
224
+ROCKCHIP_SOC(rk3528, RK3528)
211225 ROCKCHIP_SOC(rk3566, RK3566)
212226 ROCKCHIP_SOC(rk3568, RK3568)
213227