import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / ttab / camera / camera / kd_camera_hw.h
1 #ifndef _KD_CAMERA_HW_H_
2 #define _KD_CAMERA_HW_H_
3
4
5 #include <mach/mt_gpio.h>
6 #include <mach/mt_pm_ldo.h>
7
8
9
10
11 //
12 //Power
13 #ifdef CONFIG_MTK_PMIC_MT6397
14 #define CAMERA_POWER_VCAM_A MT65XX_POWER_LDO_VCAMA
15 #define CAMERA_POWER_VCAM_D MT65XX_POWER_LDO_VCAMD
16 #define CAMERA_POWER_VCAM_A2 MT65XX_POWER_LDO_VCAMAF
17 #define CAMERA_POWER_VCAM_D2 MT65XX_POWER_LDO_VCAMIO
18 #else
19 #define CAMERA_POWER_VCAM_A MT6323_POWER_LDO_VCAMA
20 #define CAMERA_POWER_VCAM_D MT6323_POWER_LDO_VCAMD
21 #define CAMERA_POWER_VCAM_A2 MT6323_POWER_LDO_VCAM_AF
22 #define CAMERA_POWER_VCAM_D2 MT6323_POWER_LDO_VCAM_IO
23 #endif
24
25 //FIXME, should defined in DCT tool
26 //
27 /*
28 #ifndef GPIO_CAMERA_LDO_EN_PIN
29 #define GPIO_CAMERA_LDO_EN_PIN GPIO94
30 #endif
31 //
32 #ifndef GPIO_CAMERA_CMRST_PIN
33 #define GPIO_CAMERA_CMRST_PIN GPIO9
34 #endif
35 //
36 #ifndef GPIO_CAMERA_CMRST_PIN_M_GPIO
37 #define GPIO_CAMERA_CMRST_PIN_M_GPIO GPIO_MODE_00
38 #endif
39 //
40 #ifndef GPIO_CAMERA_CMPDN_PIN
41 #define GPIO_CAMERA_CMPDN_PIN GPIO10
42 #endif
43 //
44 #ifndef GPIO_CAMERA_LDO_EN_PIN_M_GPIO
45 #define GPIO_CAMERA_LDO_EN_PIN_M_GPIO GPIO_MODE_00
46 #endif
47 //
48 #ifndef GPIO_CAMERA_CMPDN_PIN_M_GPIO
49 #define GPIO_CAMERA_CMPDN_PIN_M_GPIO GPIO_MODE_00
50 #endif
51 //
52 #ifndef GPIO_CAMERA_CMRST1_PIN
53 #define GPIO_CAMERA_CMRST1_PIN GPIO3
54 #endif
55 //
56 #ifndef GPIO_CAMERA_CMRST1_PIN_M_GPIO
57 #define GPIO_CAMERA_CMRST1_PIN_M_GPIO GPIO_MODE_00
58 #endif
59 //
60 #ifndef GPIO_CAMERA_CMPDN1_PIN
61 #define GPIO_CAMERA_CMPDN1_PIN GPIO4
62 #endif
63 //
64 #ifndef GPIO_CAMERA_CMPDN1_PIN_M_GPIO
65 #define GPIO_CAMERA_CMPDN1_PIN_M_GPIO GPIO_MODE_00
66 #endif
67
68
69
70 //i2c id for sensor device, MT8320_fpga, the I2C is attached on 1
71 #define IMG_SENSOR_I2C_GROUP_ID 0
72
73 #define A60373_WRITE_ID (0xC0)
74 #define A60373_READ_ID (0xC1)
75 */
76
77
78 #endif