From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 11 Jan 2015 12:28:04 +0530 Subject: Moved, renamed, and deleted files The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure. --- drivers/input/touchscreen/ft6x0x/ft6x06_ex_fun.h | 79 ++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 drivers/input/touchscreen/ft6x0x/ft6x06_ex_fun.h (limited to 'drivers/input/touchscreen/ft6x0x/ft6x06_ex_fun.h') diff --git a/drivers/input/touchscreen/ft6x0x/ft6x06_ex_fun.h b/drivers/input/touchscreen/ft6x0x/ft6x06_ex_fun.h new file mode 100755 index 00000000..e25675c0 --- /dev/null +++ b/drivers/input/touchscreen/ft6x0x/ft6x06_ex_fun.h @@ -0,0 +1,79 @@ +#ifndef __LINUX_FT6X06_EX_FUN_H__ +#define __LINUX_FT6X06_EX_FUN_H__ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + + + +#define FT_UPGRADE_AA 0xAA +#define FT_UPGRADE_55 0x55 + + +//upgrade config of FT6X06 +/* +#define FT6X06_UPGRADE_AA_DELAY 100 +#define FT6X06_UPGRADE_55_DELAY 10 +#define FT6X06_UPGRADE_ID_1 0x79 +#define FT6X06_UPGRADE_ID_2 0x08 +#define FT6X06_UPGRADE_READID_DELAY 10 +#define FT6X06_UPGRADE_EARSE_DELAY 2000 +*/ + +/*upgrade config of FT6X36*/ +#define FT6X06_UPGRADE_AA_DELAY 10 +#define FT6X06_UPGRADE_55_DELAY 10 +#define FT6X06_UPGRADE_ID_1 0x79 +#define FT6X06_UPGRADE_ID_2 0x18 +#define FT6X06_UPGRADE_READID_DELAY 10 +#define FT6X06_UPGRADE_EARSE_DELAY 2000 + +#define FTS_PACKET_LENGTH 128 +#define FTS_SETTING_BUF_LEN 128 + +#define FTS_UPGRADE_LOOP 20 + +#define FTS_FACTORYMODE_VALUE 0x40 +#define FTS_WORKMODE_VALUE 0x00 + +//#define AUTO_CLB +#define FTS_DBG +#ifdef FTS_DBG +#define DBG(fmt, args...) printk("[FTS]" fmt, ## args) +#else +#define DBG(fmt, args...) do{}while(0) +#endif + +/*create sysfs for debug*/ +int ft6x06_create_sysfs(struct i2c_client * client); + +void ft6x06_release_sysfs(struct i2c_client * client); + +int ft6x06_create_apk_debug_channel(struct i2c_client *client); + +void ft6x06_release_apk_debug_channel(void); + +/* +*ft6x06_write_reg- write register +*@client: handle of i2c +*@regaddr: register address +*@regvalue: register value +* +*/ +int ft6x06_write_reg(struct i2c_client * client,u8 regaddr, u8 regvalue); + +int ft6x06_read_reg(struct i2c_client * client,u8 regaddr, u8 *regvalue); + +#endif -- cgit