#ifdef CONFIG_VIDEO_RK29
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
-#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_OV5642 /* back camera sensor */
-#define CONFIG_SENSOR_IIC_ADDR_0 0x78
+#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_OV2655 /* back camera sensor */
+#define CONFIG_SENSOR_IIC_ADDR_0 0//0x60
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 1
#define CONFIG_SENSOR_POWER_PIN_0 INVALID_GPIO
#define CONFIG_SENSOR_RESET_PIN_0 INVALID_GPIO
-#define CONFIG_SENSOR_POWERDN_PIN_0 RK29_PIN6_PB7
+#define CONFIG_SENSOR_POWERDN_PIN_0 RK29_PIN5_PD7
#define CONFIG_SENSOR_FALSH_PIN_0 INVALID_GPIO
#define CONFIG_SENSOR_POWERACTIVE_LEVEL_0 RK29_CAM_POWERACTIVE_L
#define CONFIG_SENSOR_RESETACTIVE_LEVEL_0 RK29_CAM_RESETACTIVE_L
.name = "rk29_vout",
};
#endif
-/*HANNSTAR_P1003 touch*/
-#if defined (CONFIG_HANNSTAR_P1003)
-#define TOUCH_RESET_PIN RK29_PIN6_PC3
-#define TOUCH_INT_PIN RK29_PIN0_PA2
-
-int p1003_init_platform_hw(void)
-{
- if(gpio_request(TOUCH_RESET_PIN,NULL) != 0){
- gpio_free(TOUCH_RESET_PIN);
- printk("p1003_init_platform_hw gpio_request error\n");
- return -EIO;
- }
-
- if(gpio_request(TOUCH_INT_PIN,NULL) != 0){
- gpio_free(TOUCH_INT_PIN);
- printk("p1003_init_platform_hw gpio_request error\n");
- return -EIO;
- }
- gpio_pull_updown(TOUCH_INT_PIN, 1);
- gpio_direction_output(TOUCH_RESET_PIN, 0);
- msleep(500);
- gpio_set_value(TOUCH_RESET_PIN,GPIO_LOW);
- msleep(500);
- gpio_set_value(TOUCH_RESET_PIN,GPIO_HIGH);
-
- return 0;
-}
-
-
-struct p1003_platform_data p1003_info = {
- .model= 1003,
- .init_platform_hw= p1003_init_platform_hw,
-
-};
-#endif
-#if defined (CONFIG_EETI_EGALAX)
-#define TOUCH_RESET_PIN RK29_PIN6_PC3
-#define TOUCH_INT_PIN RK29_PIN0_PA2
-
-static int EETI_EGALAX_init_platform_hw(void)
-{
- if(gpio_request(TOUCH_RESET_PIN,NULL) != 0){
- gpio_free(TOUCH_RESET_PIN);
- printk("p1003_init_platform_hw gpio_request error\n");
- return -EIO;
- }
-
- if(gpio_request(TOUCH_INT_PIN,NULL) != 0){
- gpio_free(TOUCH_INT_PIN);
- printk("p1003_init_platform_hw gpio_request error\n");
- return -EIO;
- }
- gpio_pull_updown(TOUCH_INT_PIN, 1);
- gpio_direction_output(TOUCH_RESET_PIN, 0);
- msleep(500);
- gpio_set_value(TOUCH_RESET_PIN,GPIO_LOW);
- msleep(500);
- gpio_set_value(TOUCH_RESET_PIN,GPIO_HIGH);
-
- return 0;
-}
-
-
-static struct eeti_egalax_platform_data eeti_egalax_info = {
- .model= 1003,
- .init_platform_hw= EETI_EGALAX_init_platform_hw,
- .standby_pin = TOUCH_SCREEN_STANDBY_PIN,
- .standby_value = TOUCH_SCREEN_STANDBY_VALUE,
- .disp_on_pin = TOUCH_SCREEN_DISPLAY_PIN,
- .disp_on_value = TOUCH_SCREEN_DISPLAY_VALUE,
-};
-#endif
#if defined (CONFIG_TOUCHSCREEN_FT5406)
#define TOUCH_RESET_PIN RK29_PIN6_PC3
.platform_data = &cs42l52_info,
},
#endif
+#if defined (CONFIG_RTC_M41T66)
+ {
+ .type = "rtc-M41T66",
+ .addr = 0x68,
+ .flags = 0,
+ .irq = RK29_PIN0_PA1,
+ },
+#endif
#if defined (CONFIG_BATTERY_STC3100)
{
.type = "stc3100",
.irq = RK29_PIN0_PA1,
},
#endif
-#if defined (CONFIG_RTC_M41T66)
- {
- .type = "rtc-M41T62",
- .addr = 0xd0>>1,
- .flags = 0,
- .irq = RK29_PIN0_PA1,
- },
-#endif
#if defined (CONFIG_GS_MMA8452)
{
.type = "gs_mma8452",
#if defined (CONFIG_EETI_EGALAX)
{
.type = "egalax_i2c",
- .addr = 0x30,
+ .addr = 0x04,
.flags = 0,
.irq = RK29_PIN0_PA2,
.platform_data = &eeti_egalax_info,
},
#endif
-
#if defined (CONFIG_TOUCHSCREEN_FT5406)
{
.type ="ft5x0x_ts",
#endif
};
-
#endif
#ifdef CONFIG_I2C3_RK29
#ifdef CONFIG_VIVANTE
#define GPU_HIGH_CLOCK 552
-#define GPU_LOW_CLOCK 300
+#define GPU_LOW_CLOCK 288 /* same as general pll clock rate below */
static struct resource resources_gpu[] = {
[0] = {
.name = "gpu_irq",
.io_resume_leakage_bug = spi_io_resume_leakage_bug,
};
-/*****************************************************************************************
- * xpt2046 touch panel
- * author: cmc@rock-chips.com
- *****************************************************************************************/
-#define XPT2046_GPIO_INT RK29_PIN0_PA3
-#define DEBOUNCE_REPTIME 3
-
-#if defined(CONFIG_TOUCHSCREEN_XPT2046_320X480_SPI)
-static struct xpt2046_platform_data xpt2046_info = {
- .model = 2046,
- .keep_vref_on = 1,
- .swap_xy = 0,
- .x_min = 0,
- .x_max = 320,
- .y_min = 0,
- .y_max = 480,
- .debounce_max = 7,
- .debounce_rep = DEBOUNCE_REPTIME,
- .debounce_tol = 20,
- .gpio_pendown = XPT2046_GPIO_INT,
- .penirq_recheck_delay_usecs = 1,
-};
-#elif defined(CONFIG_TOUCHSCREEN_XPT2046_320X480_CBN_SPI)
-static struct xpt2046_platform_data xpt2046_info = {
- .model = 2046,
- .keep_vref_on = 1,
- .swap_xy = 0,
- .x_min = 0,
- .x_max = 320,
- .y_min = 0,
- .y_max = 480,
- .debounce_max = 7,
- .debounce_rep = DEBOUNCE_REPTIME,
- .debounce_tol = 20,
- .gpio_pendown = XPT2046_GPIO_INT,
- .penirq_recheck_delay_usecs = 1,
-};
-#elif defined(CONFIG_TOUCHSCREEN_XPT2046_SPI)
-static struct xpt2046_platform_data xpt2046_info = {
- .model = 2046,
- .keep_vref_on = 1,
- .swap_xy = 1,
- .x_min = 0,
- .x_max = 800,
- .y_min = 0,
- .y_max = 480,
- .debounce_max = 7,
- .debounce_rep = DEBOUNCE_REPTIME,
- .debounce_tol = 20,
- .gpio_pendown = XPT2046_GPIO_INT,
-
- .penirq_recheck_delay_usecs = 1,
-};
-#elif defined(CONFIG_TOUCHSCREEN_XPT2046_CBN_SPI)
-static struct xpt2046_platform_data xpt2046_info = {
- .model = 2046,
- .keep_vref_on = 1,
- .swap_xy = 1,
- .x_min = 0,
- .x_max = 800,
- .y_min = 0,
- .y_max = 480,
- .debounce_max = 7,
- .debounce_rep = DEBOUNCE_REPTIME,
- .debounce_tol = 20,
- .gpio_pendown = XPT2046_GPIO_INT,
-
- .penirq_recheck_delay_usecs = 1,
-};
-#endif
static struct spi_board_info board_spi_devices[] = {
-#if defined(CONFIG_TOUCHSCREEN_XPT2046_320X480_SPI) || defined(CONFIG_TOUCHSCREEN_XPT2046_320X480_CBN_SPI)\
- ||defined(CONFIG_TOUCHSCREEN_XPT2046_SPI) || defined(CONFIG_TOUCHSCREEN_XPT2046_CBN_SPI)
- {
- .modalias = "xpt2046_ts",
- .chip_select = 0,
- .max_speed_hz = 125 * 1000 * 26,/* (max sample rate @ 3V) * (cmd + data + overhead) */
- .bus_num = 0,
- .irq = XPT2046_GPIO_INT,
- .platform_data = &xpt2046_info,
- },
-#endif
};