input: touchscreen: add focaltech touch

Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Idd0d772225ed11a5080649d8e962e5cb4c2b89b7
This commit is contained in:
Weixin Zhou
2021-12-27 20:03:14 +08:00
committed by Tao Huang
parent 284169ebaa
commit 94c4a6fae2
7 changed files with 24 additions and 37 deletions

View File

@@ -376,6 +376,14 @@ config TOUCHSCREEN_EXC3000
To compile this driver as a module, choose M here: the
module will be called exc3000.
config TOUCHSCREEN_FTS
tristate "Focaltech Touchscreen"
depends on I2C
default n
help
Say Y here if you have Focaltech touch panel.
If unsure, say N.
config TOUCHSCREEN_FUJITSU
tristate "Fujitsu serial touchscreen"
select SERIO

View File

@@ -44,6 +44,7 @@ obj-$(CONFIG_TOUCHSCREEN_ELO) += elo.o
obj-$(CONFIG_TOUCHSCREEN_EGALAX) += egalax_ts.o
obj-$(CONFIG_TOUCHSCREEN_EGALAX_SERIAL) += egalax_ts_serial.o
obj-$(CONFIG_TOUCHSCREEN_EXC3000) += exc3000.o
obj-$(CONFIG_TOUCHSCREEN_FTS) += focaltech_touch/
obj-$(CONFIG_TOUCHSCREEN_FUJITSU) += fujitsu_ts.o
obj-$(CONFIG_TOUCHSCREEN_GOODIX) += goodix.o
obj-$(CONFIG_TOUCHSCREEN_GSL3673) += gsl3673-ts.o

View File

@@ -5,14 +5,15 @@
# Each configuration option enables a list of files.
obj-y += focaltech_core.o
obj-y += focaltech_ex_fun.o
obj-y += focaltech_ex_mode.o
obj-y += focaltech_flash.o
obj-y += focaltech_gesture.o
obj-y += focaltech_esdcheck.o
obj-y += focaltech_i2c.o
obj-y += focaltech_point_report_check.o
obj-y += focaltech_flash/
obj-y += focaltech_test/
obj-$(CONFIG_TOUCHSCREEN_FTS) += focaltech-ts.o
focaltech-ts-y += focaltech_core.o
focaltech-ts-y += focaltech_ex_fun.o
focaltech-ts-y += focaltech_ex_mode.o
focaltech-ts-y += focaltech_flash.o
focaltech-ts-y += focaltech_gesture.o
focaltech-ts-y += focaltech_esdcheck.o
focaltech-ts-y += focaltech_i2c.o
focaltech-ts-y += focaltech_point_report_check.o
focaltech-ts-y += focaltech_upgrade_ft8201.o
focaltech-ts-y += focaltech_test/

View File

@@ -35,6 +35,7 @@
#include "focaltech_core.h"
#include "focaltech_flash.h"
#define vfs_read(fp, buf, len, pos) kernel_read(fp, buf, len, pos)
/*****************************************************************************
* Static variables
*****************************************************************************/

View File

@@ -1,8 +0,0 @@
# SPDX-License-Identifier: GPL-2.0
# Makefile for the focaltech touchscreen drivers.
#
# Each configuration option enables a list of files.
obj-y += focaltech_upgrade_ft8201.o

View File

@@ -128,22 +128,6 @@ static int fts_strncmp(const char *cs, const char *ct, int count)
return 0;
}
static int isspace(int x)
{
if (x == ' ' || x == '\t' || x == '\n' || x == '\f' || x == '\b' || x == '\r')
return 1;
else
return 0;
}
static int isdigit(int x)
{
if (x <= '9' && x >= '0')
return 1;
else
return 0;
}
static long fts_atol(char *nptr)
{
int c; /* current char */

View File

@@ -32,14 +32,14 @@
/*****************************************************************************
* 1.Included header files
*****************************************************************************/
#include "../focaltech_core.h"
#include "../focaltech_flash.h"
#include "focaltech_core.h"
#include "focaltech_flash.h"
/*****************************************************************************
* Global variable or extern global variabls/functions
*****************************************************************************/
u8 pb_file_ft8006m[] = {
#include "../include/pramboot/FT8006M_Pramboot_V1.6_20180426_le.h"
#include "include/pramboot/FT8006M_Pramboot_V1.6_20180426_le.h"
};
/*****************************************************************************