1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef _LINUX_FTS_I2C_H_
- #define _LINUX_FTS_I2C_H_
- #define FTS_SUPPORT_NOISE_PARAM
- #if defined(CONFIG_SEC_LOCALE_KOR_FRESCO)
- #define FTS_SUPPORT_TA_MODE
- #endif
- #if defined(CONFIG_SEC_T10_PROJECT)
- #define FTS_SUPPORT_TOUCH_KEY
- #endif
- #ifdef FTS_SUPPORT_NOISE_PARAM
- #define MAX_NOISE_PARAM 5
- struct fts_noise_param {
- unsigned short pAddr[MAX_NOISE_PARAM];
- unsigned short pData[MAX_NOISE_PARAM];
- };
- #endif
- #ifdef FTS_SUPPORT_TOUCH_KEY
- /* TSP Key Feature*/
- #define KEY_PRESS 1
- #define KEY_RELEASE 0
- #define TOUCH_KEY_NULL 0
- /* support 4 touch key */
- #define TOUCH_KEY_D_MENU 0x01
- #define TOUCH_KEY_RECENT 0x02
- #define TOUCH_KEY_BACK 0x04
- #define TOUCH_KEY_D_BACK 0x08
- struct fts_touchkey {
- unsigned int value;
- unsigned int keycode;
- char *name;
- };
- #endif
- #ifdef FTS_SUPPORT_TA_MODE
- struct fts_callbacks {
- void (*inform_charger) (struct fts_callbacks *, int);
- };
- #endif
- struct fts_i2c_platform_data {
- bool factory_flatform;
- bool recovery_mode;
- bool support_hover;
- bool support_mshover;
- int max_x;
- int max_y;
- int max_width;
- unsigned char panel_revision; /* to identify panel info */
- const char *firmware_name;
- const char *project_name;
- int (*power) (bool enable);
- void (*register_cb)(void *);
- #ifdef FTS_SUPPORT_TA_MODE
- struct fts_callbacks callbacks;
- bool charging_mode;
- #endif
- void (*enable_sync)(bool on);
- unsigned gpio;
- int irq_type;
- #ifdef FTS_SUPPORT_TOUCH_KEY
- unsigned int num_touchkey;
- struct fts_touchkey *touchkey;
- int (*led_power_on) (void);
- int (*led_power_off) (void);
- #endif
- };
- #define SEC_TSP_FACTORY_TEST
- #ifdef SEC_TSP_FACTORY_TEST
- extern struct class *sec_class;
- #endif
- #endif
|