diff options
author | Andrew Dodd <atd7@cornell.edu> | 2012-09-22 11:47:34 -0400 |
---|---|---|
committer | Andrew Dodd <atd7@cornell.edu> | 2012-09-22 13:51:22 -0400 |
commit | fc40e40a40effd3eb74527474384c297e90d54f8 (patch) | |
tree | 910c11e80c29b9935e24037e170d75bf582ac9ef /drivers/input/touchscreen/synaptics_sysfs.h | |
parent | 2489007e7d740ccbc3e0a202914e243ad5178787 (diff) | |
download | kernel_samsung_smdk4412-fc40e40a40effd3eb74527474384c297e90d54f8.zip kernel_samsung_smdk4412-fc40e40a40effd3eb74527474384c297e90d54f8.tar.gz kernel_samsung_smdk4412-fc40e40a40effd3eb74527474384c297e90d54f8.tar.bz2 |
synaptics: Add S7301 touchscreen driver
Change-Id: Id03320d59aef53ebb77a2ddc008361912e2764ba
Diffstat (limited to 'drivers/input/touchscreen/synaptics_sysfs.h')
-rw-r--r-- | drivers/input/touchscreen/synaptics_sysfs.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/synaptics_sysfs.h b/drivers/input/touchscreen/synaptics_sysfs.h new file mode 100644 index 0000000..6d212c8 --- /dev/null +++ b/drivers/input/touchscreen/synaptics_sysfs.h @@ -0,0 +1,78 @@ +/* + * drivers/input/touchscreen/synaptics_sysfs.h + * + * Copyright (c) 2010 Samsung Electronics Co., LTD. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#ifndef _SEC_TSP_SYSFS_H +#define _SEC_TSP_SYSFS_H + +#include <linux/wakelock.h> + +#define SYNAPTICS_FW "/sdcard/firmware/synaptics_fw" +#define FULL_RAW_CAP_LOWER_LIMIT 1000 +#define FULL_RAW_CAP_UPPER_LIMIT 3000 +#define MAX_RX_SIZE 45 +#define MAX_TX_SIZE 29 +#define NOISEMITIGATION 0xb1 +#define ABS_POS_BIT (0x1 << 3) + +enum REPORT_TYPE { + REPORT_TYPE_RESERVED = 1, + REPORT_TYPE_DELTA_CAP, + REPORT_TYPE_RAW_CAP, + REPORT_TYPE_HIGH_REG, + REPORT_TYPE_TX_TO_TX, /* 5 */ + REPORT_TYPE_RX_TO_RX = 7, + REPORT_TYPE_TRUE_BASELINE = 9, + REPORT_TYPE_RAW_CAP2 = 13, + REPORT_TYPE_RX_OPEN, + REPORT_TYPE_TX_OPEN, /* 15 */ + REPORT_TYPE_TX_TO_GND, + REPORT_TYPE_RX_TO_RX2, + REPORT_TYPE_MAX, +}; + +enum CMD_STATUS { + CMD_STATUS_RESERVED = 0, + CMD_STATUS_WAITING, + CMD_STATUS_RUNNING, + CMD_STATUS_OK, + CMD_STATUS_FAIL, /* 5 */ +}; + +enum CMD_FW_CMD { + CMD_FW_CMD_BUILT_IN = 0, + CMD_FW_CMD_UMS, +}; + +enum CMD_LIST { + CMD_LIST_FW_UPDATE = 0, + CMD_LIST_FW_VER_BIN, + CMD_LIST_FW_VER_IC, + CMD_LIST_CONFIG_VER, + CMD_LIST_GET_THRESHOLD, + CMD_LIST_POWER_OFF, + CMD_LIST_POWER_ON, + CMD_LIST_VENDOR, + CMD_LIST_IC_NAME, + CMD_LIST_X_SIZE, + CMD_LIST_Y_SIZE, + CMD_LIST_READ_REF, + CMD_LIST_READ_RX, + CMD_LIST_READ_TX, + CMD_LIST_READ_TXG, + CMD_LIST_GET_REF, + CMD_LIST_GET_RX, + CMD_LIST_GET_TX, + CMD_LIST_GET_TXG, + CMD_LIST_MAX, +}; + +#endif /* _SEC_TSP_SYSFS_H */ + |