TouchScreen: 571K/KL: remove HW revision checks

Removes suport for SR1 in favor of PR.

Bug: 8862570
Change-Id: I4862ac1b62c78602eb911bec4aace2b1315b5ce4
Signed-off-by: mars_kao <mars_kao@asus.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
mars_kao 2013-05-15 12:11:59 +08:00 committed by Iliyan Malchev
parent 943bf197fc
commit 22a44699b3

View file

@ -279,11 +279,6 @@ static void enable_cap1106_regulator(void) {
#define PCIE_PWR_EN_PMIC_GPIO 13
#define PCIE_RST_N_PMIC_MPP 1
/*regulator for touch*/
static struct regulator *pm8921_l17_ts;
static struct regulator *pm8921_lvs4;
#ifdef CONFIG_KERNEL_MSM_CONTIG_MEM_REGION
static unsigned msm_contig_mem_size = MSM_CONTIG_MEM_SIZE;
static int __init msm_contig_mem_size_setup(char *p)
@ -3162,47 +3157,7 @@ static struct i2c_board_info elan_i2c_devices[] = {
};
static void touch_init(void){
int rc = 0;
struct elan_ktf3k_i2c_platform_data *platform;
if (asustek_get_hw_rev() == HW_REV_A) {/*for SR device*/
/*get LSV4 for i2c3*/
pm8921_lvs4 = regulator_get(NULL, "8921_lvs4");
if (IS_ERR(pm8921_lvs4)) {
pr_err("%s: regulator get of 8921_lvs4 failed (%ld)\n",
__func__, PTR_ERR(pm8921_lvs4));
rc = PTR_ERR(pm8921_lvs4);
return;
}
/*enable LSV4 for i2c3*/
rc = regulator_enable(pm8921_lvs4);
if (rc) {
pr_err("%s: regulator_enable of 8921_lvs4 failed(%d)\n",
__func__, rc);
regulator_put(pm8921_lvs4);
}
/*get LDO17*/
pm8921_l17_ts = regulator_get(NULL, "8921_l17");
if (IS_ERR(pm8921_l17_ts)) {
pr_err("%s: regulator get of 8921_l17 failed (%ld)\n",
__func__, PTR_ERR(pm8921_l17_ts));
return;
}
/*set LDO17 to 3.0V*/
rc = regulator_set_voltage(pm8921_l17_ts, 3300000, 3300000);
if (rc) {
pr_err("%s: regulator_set_voltage of 8921_l17 failed(%d)\n",
__func__, rc);
regulator_put(pm8921_l17_ts);
}
/*enable LDO17 for touch*/
rc = regulator_enable(pm8921_l17_ts);
if (rc) {
pr_err("%s: regulator_enable of 8921_l17 failed(%d)\n",
__func__, rc);
regulator_put(pm8921_l17_ts);
}
}
//set gpio
gpio_request(TS_RESET_GPIO,"tp_reset");
gpio_direction_output(TS_RESET_GPIO,1);