*/
static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_OV5642,
+ back,
+ RK29_PIN6_PB7,
+ 0,
+ 0,
+ 1,
+ 0),
+ new_camera_device(RK29_CAM_SENSOR_OV2659,
+ front,
+ RK29_PIN5_PD7,
+ 0,
+ 0,
+ 1,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_OV5642 /* back camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_0 0x78
+#define CONFIG_SENSOR_IIC_ADDR_0 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 1
#define CONFIG_SENSOR_ORIENTATION_0 90
#define CONFIG_SENSOR_POWER_PIN_0 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_OV2659 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x60
+#define CONFIG_SENSOR_IIC_ADDR_1 0
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 1
#define CONFIG_SENSOR_ORIENTATION_1 270
#define CONFIG_SENSOR_POWER_PIN_1 INVALID_GPIO
*/
static struct rkcamera_platform_data new_camera[] = {
+#ifdef CONFIG_SOC_CAMERA_OV2655
+ new_camera_device(RK29_CAM_SENSOR_OV2655,
+ back,
+ RK29_PIN5_PD7,
+ 0,
+ 0,
+ 1,
+ 0),
+#endif
+#ifdef CONFIG_SOC_CAMERA_OV9665
+ new_camera_device(RK29_CAM_SENSOR_OV9665,
+ front,
+ RK29_PIN6_PB7,
+ 0,
+ 0,
+ 1,
+ 0),
+#endif
+ new_camera_device(RK29_CAM_SENSOR_OV2655,
+ front,
+ RK29_PIN6_PB7,
+ 0,
+ 0,
+ 1,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
#ifdef CONFIG_SOC_CAMERA_OV2655
#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_OV2655 /* back camera sensor *//* back camera sensor */
-#define CONFIG_SENSOR_IIC_ADDR_0 0x60
+#define CONFIG_SENSOR_IIC_ADDR_0 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 1
#define CONFIG_SENSOR_ORIENTATION_0 90
#define CONFIG_SENSOR_POWER_PIN_0 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_0 12504
#ifdef CONFIG_SOC_CAMERA_OV9665
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_OV9665 /* front camera sensor */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x60
+#define CONFIG_SENSOR_IIC_ADDR_1 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 1
#define CONFIG_SENSOR_ORIENTATION_1 0
#define CONFIG_SENSOR_POWER_PIN_1 INVALID_GPIO
mclk)\ // sensor input clock rate, 24 or 48
*/
-static struct rkcamera_platform_data new_camera[] = {
+static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_GC0308,
+ front,
+ RK2928_PIN3_PB3,
+ 0,
+ 0,
+ 1,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_GC0308 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x42
+#define CONFIG_SENSOR_IIC_ADDR_1 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 1
#define CONFIG_SENSOR_CIF_INDEX_1 0
#define CONFIG_SENSOR_ORIENTATION_1 270
*/
static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_GC2035,
+ back,
+ RK2928_PIN3_PB3,
+ 0,
+ 0,
+ 1,
+ 0),
+ new_camera_device(RK29_CAM_SENSOR_GC0308,
+ front,
+ RK2928_PIN3_PD7,
+ 0,
+ 0,
+ 1,
+ 0),
+ new_camera_device(RK29_CAM_SENSOR_GC0329,
+ front,
+ RK2928_PIN3_PD7,
+ 0,
+ 0,
+ 1,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_GC2035 /* back camera sensor */
-#define CONFIG_SENSOR_IIC_ADDR_0 0x78
+#define CONFIG_SENSOR_IIC_ADDR_0 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 1
#define CONFIG_SENSOR_CIF_INDEX_0 0
#define CONFIG_SENSOR_ORIENTATION_0 90
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_GC0308 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x42
+#define CONFIG_SENSOR_IIC_ADDR_1 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 1
#define CONFIG_SENSOR_CIF_INDEX_1 0
#define CONFIG_SENSOR_ORIENTATION_1 270
#define CONFIG_SENSOR_720P_FPS_FIXED_1 30000
#define CONFIG_SENSOR_11 RK29_CAM_SENSOR_GC0329 /* front camera sensor 1 */
-#define CONFIG_SENSOR_IIC_ADDR_11 0x62
+#define CONFIG_SENSOR_IIC_ADDR_11 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_11 1
#define CONFIG_SENSOR_CIF_INDEX_11 0
#define CONFIG_SENSOR_ORIENTATION_11 90
*/
static struct rkcamera_platform_data new_camera[] = {
+#if defined(CONFIG_MACH_RK2928_SDK)
+ new_camera_device(RK29_CAM_SENSOR_GC0308,
+ front,
+ RK2928_PIN3_PD7,
+ 0,
+ 0,
+ 1,
+ 0),
+#else
+ new_camera_device(RK29_CAM_SENSOR_GC0308,
+ front,
+ RK2928_PIN3_PB3,
+ 0,
+ 0,
+ 1,
+ 0),
+#endif
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_GC0308 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x42
+#define CONFIG_SENSOR_IIC_ADDR_1 0
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 1
#define CONFIG_SENSOR_CIF_INDEX_1 0
#define CONFIG_SENSOR_ORIENTATION_1 270
*/
static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_OV5642,
+ back,
+ RK2928_PIN3_PB3,
+ 0,
+ 0,
+ 0,
+ 0),
new_camera_device_end
};
/*---------------- 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// 0
+#define CONFIG_SENSOR_IIC_ADDR_0 0
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 0
#define CONFIG_SENSOR_CIF_INDEX_0 0
#define CONFIG_SENSOR_ORIENTATION_0 90
*/
static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_HI253,
+ back,
+ RK30_PIN3_PB5,
+ 0,
+ 0,
+ 4,
+ 0),
+ new_camera_device(RK29_CAM_SENSOR_HI704,
+ front,
+ RK30_PIN3_PB4,
+ 0,
+ 0,
+ 4,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_HI253 /* back camera sensor */
-#define CONFIG_SENSOR_IIC_ADDR_0 0x40
+#define CONFIG_SENSOR_IIC_ADDR_0 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 4
#define CONFIG_SENSOR_ORIENTATION_0 90
#define CONFIG_SENSOR_POWER_PIN_0 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_HI704 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x60
+#define CONFIG_SENSOR_IIC_ADDR_1 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 4
#define CONFIG_SENSOR_ORIENTATION_1 270
#define CONFIG_SENSOR_POWER_PIN_1 INVALID_GPIO
mclk)\ // sensor input clock rate, 24 or 48
*/
-static struct rkcamera_platform_data new_camera[] = {
+static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_OV2659,
+ front,
+ RK30_PIN2_PC7,
+ 0,
+ 0,
+ 3,
+ 0),
new_camera_device_end
};
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_OV2659 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x60
+#define CONFIG_SENSOR_IIC_ADDR_1 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 3
#define CONFIG_SENSOR_ORIENTATION_1 270
#define CONFIG_SENSOR_POWER_PIN_1 INVALID_GPIO
*/
static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_OV2659,
+ back,
+ RK30_PIN3_PB5,
+ 0,
+ 0,
+ 3,
+ 0),
+ new_camera_device(RK29_CAM_SENSOR_GC0308,
+ front,
+ RK30_PIN3_PB4,
+ 0,
+ 0,
+ 3,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_OV2659 /* back camera sensor */
-#define CONFIG_SENSOR_IIC_ADDR_0 0x60
+#define CONFIG_SENSOR_IIC_ADDR_0 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 3
#define CONFIG_SENSOR_ORIENTATION_0 90
#define CONFIG_SENSOR_POWER_PIN_0 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_GC0308 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x42
+#define CONFIG_SENSOR_IIC_ADDR_1 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 3
#define CONFIG_SENSOR_ORIENTATION_1 270
#define CONFIG_SENSOR_POWER_PIN_1 INVALID_GPIO
*/
static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_OV2659,
+ back,
+ RK30_PIN3_PB5,
+ 0,
+ 0,
+ 3,
+ 0),
+
+ new_camera_device(RK29_CAM_SENSOR_SP2518,
+ back,
+ RK30_PIN3_PB5,
+ 0,
+ 0,
+ 3,
+ 0),
+
+ new_camera_device(RK29_CAM_SENSOR_GC2035,
+ back,
+ RK30_PIN3_PB5,
+ 0,
+ 0,
+ 3,
+ 0),
+
+ new_camera_device(RK29_CAM_SENSOR_OV2659,
+ front,
+ RK30_PIN3_PB4,
+ 0,
+ 0,
+ 3,
+ 0),
+
+ new_camera_device(RK29_CAM_SENSOR_SP2518,
+ front,
+ RK30_PIN3_PB4,
+ 0,
+ 0,
+ 3,
+ 0),
+
+ new_camera_device(RK29_CAM_SENSOR_GC2035,
+ front,
+ RK30_PIN3_PB4,
+ 0,
+ 0,
+ 3,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_OV2659 /* back camera sensor */
-#define CONFIG_SENSOR_IIC_ADDR_0 0x60
+#define CONFIG_SENSOR_IIC_ADDR_0 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 3
#define CONFIG_SENSOR_ORIENTATION_0 90
#define CONFIG_SENSOR_POWER_PIN_0 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_0 30000
#define CONFIG_SENSOR_01 RK29_CAM_SENSOR_SP2518 /* back camera sensor 1 */
-#define CONFIG_SENSOR_IIC_ADDR_01 0x60
+#define CONFIG_SENSOR_IIC_ADDR_01 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_01 3
#define CONFIG_SENSOR_ORIENTATION_01 90
#define CONFIG_SENSOR_POWER_PIN_01 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_01 30000
#define CONFIG_SENSOR_02 RK29_CAM_SENSOR_GC2035 /* back camera sensor 2 */
-#define CONFIG_SENSOR_IIC_ADDR_02 0x78
+#define CONFIG_SENSOR_IIC_ADDR_02 0x00
#define CONFIG_SENSOR_CIF_INDEX_02 0
#define CONFIG_SENSOR_IIC_ADAPTER_ID_02 3
#define CONFIG_SENSOR_ORIENTATION_02 90
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_OV2659 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x60
+#define CONFIG_SENSOR_IIC_ADDR_1 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 3
#define CONFIG_SENSOR_ORIENTATION_1 270
#define CONFIG_SENSOR_POWER_PIN_1 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_1 30000
#define CONFIG_SENSOR_11 RK29_CAM_SENSOR_SP2518 /* front camera sensor 1 */
-#define CONFIG_SENSOR_IIC_ADDR_11 0x60
+#define CONFIG_SENSOR_IIC_ADDR_11 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_11 3
#define CONFIG_SENSOR_ORIENTATION_11 270
#define CONFIG_SENSOR_POWER_PIN_11 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_11 30000
#define CONFIG_SENSOR_12 RK29_CAM_SENSOR_GC2035//RK29_CAM_SENSOR_OV2655 /* front camera sensor 2 */
-#define CONFIG_SENSOR_IIC_ADDR_12 0x78
+#define CONFIG_SENSOR_IIC_ADDR_12 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_12 3
#define CONFIG_SENSOR_ORIENTATION_12 270
#define CONFIG_SENSOR_POWER_PIN_12 INVALID_GPIO
mclk)\ // sensor input clock rate, 24 or 48
*/
-static struct rkcamera_platform_data new_camera[] = {
+static struct rkcamera_platform_data new_camera[] = {
+
+ new_camera_device_ex(RK29_CAM_SENSOR_OV5640,
+ back,
+ INVALID_VALUE,
+ INVALID_VALUE,
+ INVALID_VALUE,
+ INVALID_VALUE,
+ INVALID_VALUE,
+ RK30_PIN3_PB5,
+ CONS(RK29_CAM_SENSOR_OV5640,_PWRDN_ACTIVE),
+ 1,
+ CONS(RK29_CAM_SENSOR_OV5640,_FULL_RESOLUTION),
+ 0x00,
+ 3,
+ 100000,
+ CONS(RK29_CAM_SENSOR_OV5640,_I2C_ADDR),
+ 0,
+ 24),
+ new_camera_device(RK29_CAM_SENSOR_OV2659,
+ front,
+ RK30_PIN3_PB4,
+ 0,
+ 0,
+ 3,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_OV5640 /* back camera sensor */
-#define CONFIG_SENSOR_IIC_ADDR_0 0x78
+#define CONFIG_SENSOR_IIC_ADDR_0 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 3
#define CONFIG_SENSOR_ORIENTATION_0 90
#define CONFIG_SENSOR_POWER_PIN_0 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_OV2659 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x60
+#define CONFIG_SENSOR_IIC_ADDR_1 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 3
#define CONFIG_SENSOR_ORIENTATION_1 270
#define CONFIG_SENSOR_POWER_PIN_1 INVALID_GPIO
*/
static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_OV5640,
+ back,
+ RK30_PIN3_PB5,
+ 0,
+ 0,
+ 4,
+ 0),
+ new_camera_device(RK29_CAM_SENSOR_OV2659,
+ front,
+ RK30_PIN3_PB4,
+ 0,
+ 0,
+ 3,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
*/
static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device_ex(RK29_CAM_SENSOR_OV5640,
+ back,
+ INVALID_VALUE,
+ INVALID_VALUE,
+ INVALID_VALUE,
+ INVALID_VALUE,
+ INVALID_VALUE,
+ RK30_PIN3_PB4,
+ CONS(RK29_CAM_SENSOR_OV5640,_PWRDN_ACTIVE),
+ 1,
+ CONS(RK29_CAM_SENSOR_OV5640,_FULL_RESOLUTION),
+ 0x00,
+ 3,
+ 100000,
+ CONS(RK29_CAM_SENSOR_OV5640,_I2C_ADDR),
+ 0,
+ 24),
+ new_camera_device(RK29_CAM_SENSOR_OV2659,
+ front,
+ RK30_PIN3_PB5,
+ 0,
+ 0,
+ 3,
+ 0),
+ new_camera_device(RK29_CAM_SENSOR_GC0308,
+ front,
+ RK30_PIN3_PB5,
+ 0,
+ 0,
+ 3,
+ 0),
new_camera_device_end
};
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
#define CONFIG_SENSOR_0 RK29_CAM_SENSOR_OV5640 /* back camera sensor */
-#define CONFIG_SENSOR_IIC_ADDR_0 0x78
+#define CONFIG_SENSOR_IIC_ADDR_0 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_0 3
#define CONFIG_SENSOR_ORIENTATION_0 90
#define CONFIG_SENSOR_POWER_PIN_0 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_02 30000
#define CONFIG_SENSOR_1 RK29_CAM_SENSOR_GC0308 /* front camera sensor 0 */
-#define CONFIG_SENSOR_IIC_ADDR_1 0x42
+#define CONFIG_SENSOR_IIC_ADDR_1 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_1 3
#define CONFIG_SENSOR_ORIENTATION_1 270
#define CONFIG_SENSOR_POWER_PIN_1 INVALID_GPIO
#define CONFIG_SENSOR_720P_FPS_FIXED_1 30000
#define CONFIG_SENSOR_11 RK29_CAM_SENSOR_OV2659 /* front camera sensor 1 */
-#define CONFIG_SENSOR_IIC_ADDR_11 0x60
+#define CONFIG_SENSOR_IIC_ADDR_11 0x00
#define CONFIG_SENSOR_IIC_ADAPTER_ID_11 3
#define CONFIG_SENSOR_ORIENTATION_11 270
#define CONFIG_SENSOR_POWER_PIN_11 INVALID_GPIO