Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #include <linux/types.h> |
2 | #include <linux/string.h> | |
3 | #include <mach/mt_pm_ldo.h> | |
4 | #include <cust_mag.h> | |
5 | ||
6 | ||
7 | static struct mag_hw cust_mag_hw = { | |
8 | .i2c_num = 2, | |
9 | .direction = 7, | |
10 | .power_id = MT65XX_POWER_NONE, /*!< LDO is not used */ | |
11 | .power_vol= VOL_DEFAULT, /*!< LDO is not used */ | |
12 | }; | |
13 | static struct mag_hw cust_mag_hw_rotation270 = { | |
14 | .i2c_num = 2, | |
15 | .direction = 4, | |
16 | .power_id = MT65XX_POWER_NONE, /*!< LDO is not used */ | |
17 | .power_vol= VOL_DEFAULT, /*!< LDO is not used */ | |
18 | }; | |
19 | struct mag_hw* get_cust_mag_hw(void) | |
20 | { | |
21 | /*if(0 == strncmp(MTK_LCM_PHYSICAL_ROTATION, "270", 3)) */ | |
22 | /* return &cust_mag_hw_rotation270;*/ /*for p2[wsvga]*/ | |
23 | /*else*/ | |
24 | return &cust_mag_hw; | |
25 | } |