aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel <pavel@ucw.cz>2017-11-15 15:08:22 +0100
committerPavel <pavel@ucw.cz>2017-11-15 15:08:22 +0100
commit74b12bf9852d1fb051342d56d89096ea43806426 (patch)
tree9d7bfa56b5a439a891b39e63dd5438f06b3252a9
parent5866c23161bd3f8345d3f3ffa4c416858f5b0bbd (diff)
downloadlinux-n900-n950-v4.14.tar.gz
Add firmware for touch controller. Seems to work (with x coordinate inverted).n950-v4.14
-rw-r--r--.config5
-rw-r--r--drivers/input/touchscreen/atmel_mxt_ts.c4
-rw-r--r--maxtouch.cfg19
3 files changed, 22 insertions, 6 deletions
diff --git a/.config b/.config
index 2bfa06edf41257..753a3b666f3bfb 100644
--- a/.config
+++ b/.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/arm 4.14.0-rc7 Kernel Configuration
+# Linux/arm 4.14.0 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
@@ -990,7 +990,8 @@ CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
-CONFIG_EXTRA_FIRMWARE=""
+CONFIG_EXTRA_FIRMWARE="maxtouch.cfg"
+CONFIG_EXTRA_FIRMWARE_DIR="/data/l/linux-n900"
CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set
CONFIG_ALLOW_DEV_COREDUMP=y
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index a336494a7d3664..7659bc48f1db8e 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -2081,13 +2081,9 @@ static int mxt_initialize(struct mxt_data *data)
if (error)
goto err_free_object_table;
-#if 0
error = request_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME,
&client->dev, GFP_KERNEL, data,
mxt_config_cb);
-#else
- error = -EINVAL;
-#endif
if (error) {
dev_err(&client->dev, "Failed to invoke firmware loader: %d\n",
error);
diff --git a/maxtouch.cfg b/maxtouch.cfg
new file mode 100644
index 00000000000000..7eb87204a7e566
--- /dev/null
+++ b/maxtouch.cfg
@@ -0,0 +1,19 @@
+OBP_RAW V1
+80 01 16 AB 13 0B 11
+FF341C
+5EE81A
+0026 0000 0008 00 00 00 00 00 00 00 00
+0007 0000 0003 14 07 20
+0008 0000 0008 08 00 14 14 00 00 0A 0F
+0009 0000 001F 8F 00 00 13 0B 00 11 23 02 05 00 08 06 0F 0A 0A 0A 0A 55 03 DF 01 00 11 05 0A 94 32 9A 55 00
+000F 0000 000B 00 00 00 00 00 00 00 00 00 00 00
+0012 0000 0002 00 00
+0013 0000 0010 01 00 00 0C 00 00 00 00 00 00 00 00 00 00 00 00
+0014 0000 000C 00 00 00 00 00 00 00 00 00 00 00 00
+0016 0000 0011 05 00 00 00 00 00 00 00 0F 00 00 00 0A 0F FF FF 00
+0017 0000 000F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0018 0000 0013 00 01 08 00 08 50 64 00 64 00 00 E8 03 C8 00 64 00 E8 03
+0019 0000 000E 03 00 EC 2C 7C 15 00 00 00 00 00 00 00 00
+001B 0000 0007 00 00 00 00 00 00 00
+001C 0000 0006 00 00 03 04 08 0A
+0025 0000 0082 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00