]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - download device config using firmware loader
authorNick Dyer <nick.dyer@itdev.co.uk>
Wed, 23 Jul 2014 19:38:48 +0000 (12:38 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 23 Jul 2014 21:42:07 +0000 (14:42 -0700)
commit43a9ad7afe5dc74e90e0480bb3b0843148c3229b
tree51681b9187e29a1f616b4a3dcb5ca5496d4f31f0
parente101dfeabdb0e7f68d68008a81c4db70a7c21c3b
Input: atmel_mxt_ts - download device config using firmware loader

The existing implementation which encodes the configuration as a binary
blob in platform data is unsatisfactory since it requires a kernel
recompile for the configuration to be changed, and it doesn't deal well
with firmware changes that move values around on the chip.

Atmel define an ASCII format for the configuration which can be exported
from their tools. This patch implements a parser for that format which
loads the configuration via the firmware loader and sends it to the MXT
chip.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Benson Leung <bleung@chromium.org>
Acked-by: Yufeng Shen <miletus@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c
drivers/platform/chrome/chromeos_laptop.c
include/linux/i2c/atmel_mxt_ts.h