static int rk_sensor_io_deinit(int sensor);\r
static int rk_sensor_ioctrl(struct device *dev,enum rk29camera_ioctrl_cmd cmd, int on);\r
static int rk_sensor_power(struct device *dev, int on);\r
+#if (CONFIG_SENSOR_RESET_PIN_0 != INVALID_GPIO) || (CONFIG_SENSOR_RESET_PIN_1 != INVALID_GPIO) \\r
+ || (CONFIG_SENSOR_RESET_PIN_01 != INVALID_GPIO) || (CONFIG_SENSOR_RESET_PIN_02 != INVALID_GPIO) \\r
+ || (CONFIG_SENSOR_RESET_PIN_11 != INVALID_GPIO) || (CONFIG_SENSOR_RESET_PIN_12 != INVALID_GPIO)\r
static int rk_sensor_reset(struct device *dev);\r
+#endif\r
static int rk_sensor_powerdown(struct device *dev, int on);\r
\r
static struct rk29camera_platform_data rk_camera_platform_data = {\r
.bus_id= RK29_CAM_PLATFORM_DEV_ID,\r
#endif\r
.power = rk_sensor_power,\r
- #if (CONFIG_SENSOR_RESET_PIN_1 != INVALID_GPIO)\r
+ #if (CONFIG_SENSOR_RESET_PIN_01 != INVALID_GPIO)\r
.reset = rk_sensor_reset,\r
#endif \r
.powerdown = rk_sensor_powerdown,\r
.bus_id= RK29_CAM_PLATFORM_DEV_ID,\r
#endif\r
.power = rk_sensor_power,\r
- #if (CONFIG_SENSOR_RESET_PIN_1 != INVALID_GPIO)\r
+ #if (CONFIG_SENSOR_RESET_PIN_02 != INVALID_GPIO)\r
.reset = rk_sensor_reset,\r
#endif \r
.powerdown = rk_sensor_powerdown,\r
.bus_id= RK29_CAM_PLATFORM_DEV_ID,\r
#endif\r
.power = rk_sensor_power,\r
- #if (CONFIG_SENSOR_RESET_PIN_1 != INVALID_GPIO)\r
+ #if (CONFIG_SENSOR_RESET_PIN_11 != INVALID_GPIO)\r
.reset = rk_sensor_reset,\r
#endif \r
.powerdown = rk_sensor_powerdown,\r
.bus_id= RK29_CAM_PLATFORM_DEV_ID,\r
#endif\r
.power = rk_sensor_power,\r
- #if (CONFIG_SENSOR_RESET_PIN_1 != INVALID_GPIO)\r
+ #if (CONFIG_SENSOR_RESET_PIN_12 != INVALID_GPIO)\r
.reset = rk_sensor_reset,\r
#endif \r
.powerdown = rk_sensor_powerdown,\r
rk_sensor_ioctrl(dev,Cam_Power,on);\r
return 0;\r
}\r
-#if (CONFIG_SENSOR_RESET_PIN_0 != INVALID_GPIO) || (CONFIG_SENSOR_RESET_PIN_1 != INVALID_GPIO)\r
+#if (CONFIG_SENSOR_RESET_PIN_0 != INVALID_GPIO) || (CONFIG_SENSOR_RESET_PIN_1 != INVALID_GPIO) \\r
+ || (CONFIG_SENSOR_RESET_PIN_01 != INVALID_GPIO) || (CONFIG_SENSOR_RESET_PIN_02 != INVALID_GPIO) \\r
+ || (CONFIG_SENSOR_RESET_PIN_11 != INVALID_GPIO) || (CONFIG_SENSOR_RESET_PIN_12 != INVALID_GPIO)\r
static int rk_sensor_reset(struct device *dev)\r
{\r
rk_sensor_ioctrl(dev,Cam_Reset,1);\r
{\r
return rk_sensor_ioctrl(dev,Cam_PowerDown,on);\r
}\r
-\r
-#ifdef PMEM_CAM_NECESSARY\r
+#if ((defined PMEM_CAM_NECESSARY)&&(defined CONFIG_VIDEO_RK29_CAMMEM_PMEM))\r
static struct android_pmem_platform_data android_pmem_cam_pdata = {\r
.name = "pmem_cam",\r
.start = PMEM_CAM_BASE,\r