*
******************************************************************************************/
+#define DS1006H_V1_2_SUPPORT 0
+
/*
** If you select the macro of CONFIG_SDMMC0_RK29_WRITE_PROTECT, You must define the following values.
** Otherwise, there is no need to define the following values¡£
//#define RK30SDK_WIFI_GPIO_RESET_N RK30_PIN3_PD1
//#define RK30SDK_WIFI_GPIO_RESET_ENABLE_VALUE GPIO_HIGH
+ #else
+ #if DS1006H_V1_2_SUPPORT
+ #define RK30SDK_WIFI_GPIO_POWER_N RK30_PIN3_PD0
+ #define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE GPIO_HIGH
#else
#define RK30SDK_WIFI_GPIO_POWER_N RK30_PIN0_PA5
#define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE GPIO_HIGH
#define RK30SDK_WIFI_GPIO_RESET_N RK30_PIN3_PD1
#define RK30SDK_WIFI_GPIO_RESET_ENABLE_VALUE GPIO_HIGH
+ #endif
#endif
#elif defined(CONFIG_MT6620)
#ifdef CONFIG_FB_ROCKCHIP
+#if DS1006H_V1_2_SUPPORT
+#define LCD_CS_PIN RK30_PIN0_PB0
+#else
#define LCD_CS_PIN INVALID_GPIO
+#endif
#define LCD_CS_VALUE GPIO_HIGH
+#if DS1006H_V1_2_SUPPORT
+#define LCD_EN_PIN RK30_PIN0_PB1
+#else
#define LCD_EN_PIN RK30_PIN0_PB0
+#endif
#define LCD_EN_VALUE GPIO_LOW
static int rk_fb_io_init(struct rk29_fb_setting_info *fb_setting)
#if defined(CONFIG_MT5931_MT6622)
static struct mt6622_platform_data mt6622_platdata = {
.power_gpio = { // BT_REG_ON
+ #if DS1006H_V1_2_SUPPORT
+ .io = RK30_PIN3_PC7, // set io to INVALID_GPIO for disable it
+ #else
.io = RK30_PIN3_PD5, // set io to INVALID_GPIO for disable it
+ #endif
.enable = GPIO_HIGH,
.iomux = {
.name = NULL,
},
.reset_gpio = { // BT_RST
+ #if DS1006H_V1_2_SUPPORT
+ .io = RK30_PIN3_PD1,
+ #else
.io = RK30_PIN0_PD7,
+ #endif
.enable = GPIO_HIGH,
.iomux = {
.name = NULL,
},
.irq_gpio = {
+ #if DS1006H_V1_2_SUPPORT
+ .io = RK30_PIN0_PA5,
+ #else
.io = RK30_PIN3_PD2,
+ #endif
.enable = GPIO_HIGH,
.iomux = {
.name = NULL,
.platform_data = &mma8452_info,
},
#endif
-#if defined (CONFIG_LS_US5151)
- {
- .type = "us5151",
- .addr = 0x10,
- .flags = 0,
- },
-#endif
#if defined (CONFIG_GS_LIS3DH)
{
.flags = 0,
},
#endif
-#if defined (CONFIG_SND_SOC_RT5631)
- {
- .type = "rt5631",
- .addr = 0x1a,
- .flags = 0,
- },
-#endif
};
#endif
.platform_data = &cm3217_info,
},
#endif
+#if defined (CONFIG_LS_US5151)
+ {
+ .type = "us5151",
+ .addr = 0x10,
+ .flags = 0,
+ },
+#endif
+
#if defined(CONFIG_HDMI_CAT66121)
{
.type = "cat66121_hdmi",
#endif
#endif
+#if defined (CONFIG_SND_SOC_RT5631)
+ {
+ .type = "rt5631",
+ .addr = 0x1a,
+ .flags = 0,
+ },
+#endif
+
};
#endif