From 7ef85a767298425ab7ca7ffee19647124f16671a Mon Sep 17 00:00:00 2001 From: Shawn Joo Date: Fri, 16 Jun 2017 15:49:05 +0900 Subject: nvidia: input: add atmel touch driver this atmel touchscreen driver is from k4.4 in order to apply touch drv regardless of kernel version, move to linux-nvidia with new kernel config TOUCHSCREEN_NVIDIA_ATMEL_MXT. Bug 200309618 EASS-1856 Change-Id: I7365a061fedb6c554679258b0d8121ae1f397ec5 Signed-off-by: Shawn Joo Reviewed-on: http://git-master/r/1503659 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam --- include/linux/platform_data/atmel_mxt_ts_nv.h | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 include/linux/platform_data/atmel_mxt_ts_nv.h (limited to 'include/linux/platform_data') diff --git a/include/linux/platform_data/atmel_mxt_ts_nv.h b/include/linux/platform_data/atmel_mxt_ts_nv.h new file mode 100644 index 000000000..6d59eebcb --- /dev/null +++ b/include/linux/platform_data/atmel_mxt_ts_nv.h @@ -0,0 +1,33 @@ +/* + * Atmel maXTouch Touchscreen driver + * + * Copyright (C) 2010 Samsung Electronics Co.Ltd + * Copyright (C) 2011-2017, NVIDIA CORPORATION. All rights reserved. + * Author: Joonyoung Shim + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + +#ifndef __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H +#define __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H + +#include +#include + +/* The platform data for the Atmel maXTouch touchscreen driver */ +struct mxt_platform_data { + unsigned long irqflags; + u8 t19_num_keys; + const unsigned int *t19_keymap; + int suspend_mode; + int t15_num_keys; + const unsigned int *t15_keymap; + unsigned long gpio_reset; + const char *cfg_name; + const char *input_name; +}; + +#endif /* __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H */ -- cgit v1.2.2