hawkeye: enable nvtouch; default mode vendor only
Aaron Bartholomew [Thu, 8 Oct 2015 01:22:43 +0000 (01:22 +0000)]
- will add nvtouch to image, but will be in vendor only mode, ie
expects vendor driver to handle touch processing

bug 1688100
bug 1668304
bug 1602711
bug 1651230

Reviewed-on: http://git-master/r/774488
(cherry picked from commit c738b1a08e13a4d05d363c0200dd8379afa23a14)

Signed-off-by: Aaron Bartholomew <abartholomew@nvidia.com>
Change-Id: I7b8eddacf43a16fa65972eb15162940feba5171a
Reviewed-on: http://git-master/r/806271
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

arch/arm64/configs/tegra21_android_defconfig
drivers/input/touchscreen/nvtouch/nvtouch_kernel.c

index 2a8e3d7..9028740 100644 (file)
@@ -321,6 +321,7 @@ CONFIG_TABLET_USB_KBTAB=y
 CONFIG_TABLET_USB_WACOM=y
 CONFIG_INPUT_TOUCHSCREEN=y
 CONFIG_TOUCHSCREEN_LR388K7=y
+CONFIG_TOUCHSCREEN_NVTOUCH=y
 CONFIG_TOUCHSCREEN_RM31080A=y
 CONFIG_INPUT_MISC=y
 CONFIG_INPUT_KEYCHORD=y
index decfa3b..5f327a0 100644 (file)
@@ -883,7 +883,7 @@ void nvtouch_kernel_init(int sensor_w, int sensor_h, int screen_w,
 
        init_waitqueue_head(&g_state_kernel.sample_gpfifo.data_waitqueue);
 
-       g_state_kernel.driver_mode = NVTOUCH_DRIVER_CONFIG_MODE_NVTOUCH_ONLY;
+       g_state_kernel.driver_mode = NVTOUCH_DRIVER_CONFIG_MODE_VENDOR_ONLY;
 
        g_state_kernel.dual_mode_enable_nvtouch_events = 1;
        g_state_kernel.dual_mode_enable_vendor_events = 1;