Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #include <linux/types.h> |
2 | #include <mach/mt_pm_ldo.h> | |
3 | #include <cust_alsps.h> | |
4 | //#include <mach/mt6577_pm_ldo.h> | |
5 | ||
6 | static struct alsps_hw cust_alsps_hw = { | |
7 | .i2c_num = 2, | |
8 | .polling_mode_ps =0, | |
9 | .polling_mode_als =1, | |
10 | .power_id = MT65XX_POWER_NONE, /*LDO is not used*/ | |
11 | .power_vol = VOL_DEFAULT, /*LDO is not used*/ | |
12 | .i2c_addr = {0x72, 0x48, 0x78, 0x00}, | |
13 | /*Lenovo-sw chenlj2 add 2011-06-03,modify parameter below two lines*/ | |
14 | //.als_level = { 4, 40, 80, 120, 160, 250, 400, 800, 1200, 1600, 2000, 3000, 5000, 10000, 65535}, | |
15 | //.als_value = {10, 20,20, 120, 120, 280, 280, 280, 1600, 1600, 1600, 6000, 6000, 9000, 10240, 10240}, | |
16 | .als_level = { 5, 10, 25, 50, 100, 150, 200, 400, 1000, 1500, 2000, 3000, 5000, 8000, 10000}, | |
17 | .als_value = {10, 50, 100, 150, 200, 250, 280, 280, 1600, 1600, 1600, 6000, 6000, 9000, 10240, 10240}, | |
18 | .ps_threshold_high = 120, | |
19 | .ps_threshold_low = 100, | |
20 | .ps_threshold = 900, | |
21 | }; | |
22 | struct alsps_hw *get_cust_alsps_hw(void) { | |
23 | return &cust_alsps_hw; | |
24 | } | |
25 | int APDS9930_CMM_PPCOUNT_VALUE = 0x08; | |
26 | int APDS9930_CMM_CONTROL_VALUE = 0xE4; | |
27 | int ZOOM_TIME = 4; |