-if ARCH_RK30
-
config ARCH_RK30XX
+ depends on ARCH_RK30
bool
config ARCH_RK3066B
+ depends on ARCH_RK30
bool
choice
prompt "Rockchip SoC Type"
+ depends on ARCH_RK30
default SOC_RK3066
config SOC_RK3000
select ARCH_RK3066B
select USB_ARCH_HAS_EHCI
-endchoice
+config SOC_RK3168M
+ bool "RK3168M"
+ select ARCH_RK3066B
+ select USB_ARCH_HAS_EHCI
-if ARCH_RK30XX
+endchoice
choice
prompt "RK30xx Board Type"
+ depends on ARCH_RK30XX
default MACH_RK30_SDK
config MACH_RK30_SDK
endchoice
-if MACH_RK30_PHONE_PAD
choice
prompt "RK30 phone pad board type"
+ depends on MACH_RK30_PHONE_PAD
default MACH_RK30_PHONE_PAD_DS763
config MACH_RK30_PHONE_PAD_DS763
bool "c8003"
endchoice
-endif
-
-endif
-if SOC_RK3066B
choice
prompt "RK3066B Board Type"
+ depends on SOC_RK3066B
config MACH_RK3066B_FPGA
bool "RK3066B FPGA board"
bool "RK3066B M701 board"
endchoice
-endif
-if SOC_RK3108
+choice
+ prompt "RK3168M Board Type"
+ depends on SOC_RK3168M
+
+config MACH_RK3168M_TB
+ bool "RK3168M Top Board"
+
+endchoice
+
choice
prompt "RK3108 Board Type"
+ depends on SOC_RK3108
config MACH_RK3108_TB
bool "RK3108 Top Board"
endchoice
-endif
-if SOC_RK3168
choice
prompt "RK3168 Board Type"
+ depends on SOC_RK3168
config MACH_RK3168_TB
bool "RK3168 Top Board"
config MACH_RK3168_86V
bool "RK3168 86V Board"
-
endchoice
-endif
-
-endif
obj-$(CONFIG_MACH_RK3066B_FPGA) += board-rk3066b-fpga.o
obj-$(CONFIG_MACH_RK3066B_SDK) += board-rk3066b-sdk.o
obj-$(CONFIG_MACH_RK3066B_M701) += board-rk3066b-m701.o
+obj-$(CONFIG_MACH_RK3168M_TB) += board-rk3168m-tb.o
obj-$(CONFIG_MACH_RK3108_TB) += board-rk3108-tb.o
obj-$(CONFIG_MACH_RK3168_TB) += board-rk3168-tb.o
obj-$(CONFIG_MACH_RK3168_LR097) += board-rk3168-LR097.o
{
return (((readl_relaxed(RK30_GPIO1_BASE + GPIO_EXT_PORT) >> 22) & 3) == 1);
}
+
+static inline bool soc_is_rk3168m(void)
+{
+ return (((readl_relaxed(RK30_GPIO1_BASE + GPIO_EXT_PORT) >> 22) & 3) == 3);
+}
#else
static inline bool soc_is_rk3066b(void) { return false; }
static inline bool soc_is_rk3108(void) { return false; }
+static inline bool soc_is_rk3168m(void) { return false; }
#endif
static inline bool soc_is_rk3168(void) { return soc_is_rk3108(); }