#endif // #if COMBO_MODULE_MT6620_CDT--#endif
#endif
+#ifndef RK30SDK_WIFI_GPIO_WIFI_INT_B
+#define RK30SDK_WIFI_GPIO_WIFI_INT_B INVALID_GPIO
+#define RK30SDK_WIFI_GPIO_WIFI_INT_B_ENABLE_VALUE GPIO_HIGH
+#endif
+
int rk31sdk_get_sdio_wifi_voltage(void)
{
int voltage;
};
#endif
+#if defined(CONFIG_MT5931_MT6622)
+static struct mt6622_platform_data mt6622_platdata = {
+ .power_gpio = { // BT_REG_ON
+ .io = RK30_PIN3_PD5, // set io to INVALID_GPIO for disable it
+ .enable = GPIO_HIGH,
+ .iomux = {
+ .name = NULL,
+ },
+ },
+
+ .reset_gpio = { // BT_RST
+ .io = RK30_PIN0_PD7,
+ .enable = GPIO_HIGH,
+ .iomux = {
+ .name = NULL,
+ },
+ },
+
+ .irq_gpio = {
+ .io = RK30_PIN3_PD2,
+ .enable = GPIO_HIGH,
+ .iomux = {
+ .name = NULL,
+ },
+ }
+};
+
+static struct platform_device device_mt6622 = {
+ .name = "mt6622",
+ .id = -1,
+ .dev = {
+ .platform_data = &mt6622_platdata,
+ },
+};
+#endif
static struct platform_device *devices[] __initdata = {
#ifdef CONFIG_ION
&rk_device_gps,
#endif
+#ifdef CONFIG_MT5931_MT6622
+ &device_mt6622,
+#endif
};
static int rk_platform_add_display_devices(void)
#if defined(CONFIG_MT6620)
clk_set_rate(clk_get_sys("rk_serial.0", "uart"), 48*1000000);
#endif
+
+#if defined(CONFIG_MT5931_MT6622)
+ clk_set_rate(clk_get_sys("rk_serial.0", "uart"), 24*1000000);
+#endif
}
static void __init rk30_reserve(void)
#endif // #if COMBO_MODULE_MT6620_CDT--#endif
#endif
+#ifndef RK30SDK_WIFI_GPIO_WIFI_INT_B
+#define RK30SDK_WIFI_GPIO_WIFI_INT_B INVALID_GPIO
+#define RK30SDK_WIFI_GPIO_WIFI_INT_B_ENABLE_VALUE GPIO_HIGH
+#endif
+
int rk31sdk_get_sdio_wifi_voltage(void)
{
int voltage;
};
#endif
+#if defined(CONFIG_MT5931_MT6622)
+static struct mt6622_platform_data mt6622_platdata = {
+ .power_gpio = { // BT_REG_ON
+ .io = RK30_PIN3_PD5, // set io to INVALID_GPIO for disable it
+ .enable = GPIO_HIGH,
+ .iomux = {
+ .name = NULL,
+ },
+ },
+
+ .reset_gpio = { // BT_RST
+ .io = RK30_PIN0_PD7,
+ .enable = GPIO_HIGH,
+ .iomux = {
+ .name = NULL,
+ },
+ },
+
+ .irq_gpio = {
+ .io = RK30_PIN3_PD2,
+ .enable = GPIO_HIGH,
+ .iomux = {
+ .name = NULL,
+ },
+ }
+};
+
+static struct platform_device device_mt6622 = {
+ .name = "mt6622",
+ .id = -1,
+ .dev = {
+ .platform_data = &mt6622_platdata,
+ },
+};
+#endif
static struct platform_device *devices[] __initdata = {
#ifdef CONFIG_ION
#if defined(CONFIG_ARCH_RK3188)
&device_mali,
#endif
+#ifdef CONFIG_MT5931_MT6622
+ &device_mt6622,
+#endif
};
static int rk_platform_add_display_devices(void)
#if defined(CONFIG_MT6620)
clk_set_rate(clk_get_sys("rk_serial.0", "uart"), 48*1000000);
#endif
+
+#if defined(CONFIG_MT5931_MT6622)
+ clk_set_rate(clk_get_sys("rk_serial.0", "uart"), 24*1000000);
+#endif
}
#define HD_SCREEN_SIZE 1920UL*1200UL*4*3
static void __init rk30_reserve(void)
#endif // #if COMBO_MODULE_MT6620_CDT--#endif
#endif
+#ifndef RK30SDK_WIFI_GPIO_WIFI_INT_B
+#define RK30SDK_WIFI_GPIO_WIFI_INT_B INVALID_GPIO
+#define RK30SDK_WIFI_GPIO_WIFI_INT_B_ENABLE_VALUE GPIO_HIGH
+#endif
+
int rk31sdk_get_sdio_wifi_voltage(void)
{
int voltage;
};
#endif
+#if defined(CONFIG_MT5931_MT6622)
+static struct mt6622_platform_data mt6622_platdata = {
+ .power_gpio = { // BT_REG_ON
+ .io = RK30_PIN3_PD5, // set io to INVALID_GPIO for disable it
+ .enable = GPIO_HIGH,
+ .iomux = {
+ .name = NULL,
+ },
+ },
+
+ .reset_gpio = { // BT_RST
+ .io = RK30_PIN0_PD7,
+ .enable = GPIO_HIGH,
+ .iomux = {
+ .name = NULL,
+ },
+ },
+
+ .irq_gpio = {
+ .io = RK30_PIN3_PD2,
+ .enable = GPIO_HIGH,
+ .iomux = {
+ .name = NULL,
+ },
+ }
+};
+
+static struct platform_device device_mt6622 = {
+ .name = "mt6622",
+ .id = -1,
+ .dev = {
+ .platform_data = &mt6622_platdata,
+ },
+};
+#endif
static struct platform_device *devices[] __initdata = {
#ifdef CONFIG_ION
&rk_device_gps,
#endif
+#ifdef CONFIG_MT5931_MT6622
+ &device_mt6622,
+#endif
};
static int rk_platform_add_display_devices(void)
#if defined(CONFIG_MT6620)
clk_set_rate(clk_get_sys("rk_serial.0", "uart"), 48*1000000);
#endif
+
+#if defined(CONFIG_MT5931_MT6622)
+ clk_set_rate(clk_get_sys("rk_serial.0", "uart"), 24*1000000);
+#endif
}
static void __init rk30_reserve(void)