Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
VERSION = 3
PATCHLEVEL = 4
SUBLEVEL = 10
EXTRAVERSION =-BoA
NAME = Saber-toothed Squirrel
EXTRAVERSION =-anvol
NAME = CTO at mobiliuz.com

# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
Expand Down
5 changes: 4 additions & 1 deletion arch/arm/mach-msm/htc_battery_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#include <linux/android_alarm.h>
#include <mach/board_htc.h>

#ifdef CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE
#include <linux/synaptics_i2c_rmi.h>
#endif

static ssize_t htc_battery_show_property(struct device *dev,
struct device_attribute *attr,
Expand Down Expand Up @@ -82,7 +85,7 @@ static struct alarm batt_charger_ctrl_alarm;
static struct work_struct batt_charger_ctrl_work;
struct workqueue_struct *batt_charger_ctrl_wq;
static unsigned int charger_ctrl_stat;
static unsigned int phone_call_stat;
unsigned int phone_call_stat;

static int test_power_monitor;

Expand Down
19 changes: 19 additions & 0 deletions drivers/i2c/chips/cm3629.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ static void report_psensor_input_event(struct cm3629_info *lpi, int interrupt_fl
} else {
val = (interrupt_flag == 2) ? 0 : 1;
}
ps_near = !val;

if (lpi->ps_debounce == 1 && lpi->mfg_mode != MFG_MODE) {
if (val == 0) {
Expand Down Expand Up @@ -2571,6 +2572,24 @@ int power_key_check_in_pocket(void)
return (ls_dark && ps_near);
}

int pocket_detection_check(void)
{
struct cm3629_info *lpi = lp_info;

if (!is_probe_success) {
printk("[cm3629] %s return by cm3629 probe fail\n", __func__);
return 0;
}
pocket_mode_flag = 1;

psensor_enable(lpi);
D("[cm3629] %s ps_near = %d\n", __func__, ps_near);
psensor_disable(lpi);

pocket_mode_flag = 0;
return (ps_near);
}

int psensor_enable_by_touch_driver(int on)
{
struct cm3629_info *lpi = lp_info;
Expand Down
10 changes: 10 additions & 0 deletions drivers/input/misc/gpio_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include <linux/slab.h>
#include <mach/board_htc.h>

#ifdef CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE
#include <linux/synaptics_i2c_rmi.h>
#endif

struct gpio_event {
struct gpio_event_input_devs *input_devs;
const struct gpio_event_platform_data *info;
Expand Down Expand Up @@ -177,6 +181,12 @@ static int gpio_event_probe(struct platform_device *pdev)
event_info->name : event_info->names[i];
input_dev->event = gpio_input_event;
ip->input_devs->dev[i] = input_dev;
#ifdef CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE
if (!strcmp(input_dev->name, "keypad_8960")) {
sweep2wake_setdev(input_dev);
printk(KERN_INFO "[sweep2wake]: set device %s\n", input_dev->name);
}
#endif
}
ip->input_devs->count = dev_count;
ip->info = event_info;
Expand Down
4 changes: 4 additions & 0 deletions drivers/input/touchscreen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ config TOUCHSCREEN_SYNAPTICS_I2C_RMI
help
This enables support for Synaptics RMI over I2C based touchscreens.

config TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE
tristate "Sweep2Wake for SYNAPTICS_3k based touchscreens"
default y

config TOUCHSCREEN_SYNAPTICS_RMI4_I2C
tristate "Synaptics i2c touchscreen(ClearPad 3000)"
depends on I2C
Expand Down
Loading