Skip to content
Snippets Groups Projects
Commit f166bcf5 authored by Felix Gerking's avatar Felix Gerking Committed by Tobias Kahlki
Browse files

mxt-touch: Pull support for atmel mxt touch from dunfell branch

* imx6:mxt-touch: Add kernel support for atmel mxt touch
  BCS 746-000886
  (cherry picked from commit 82cbcf67)

* maxTouch:udev: Add udev rule to skip maxTouch fwr loading fallback

  The current version of the atmel_mxt_ts driver tries to load a controller
  configuration on each driver probe. However, if no config is provided or
  can't be provided because the driver is built-in, the driver probing process
  is delayed by 60 seconds because of a sysfs firmware load fallback.
  Added a udev rule that automatically cancels the sysfs firmware fallback.

  BCS 746-000892
  (cherry picked from commit 55a34692)

* atmel-mxt: convert recipe to new syntax
parent d9a59f84
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,7 @@ CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_ADS7846=y
CONFIG_TOUCHSCREEN_AD7879=y
CONFIG_TOUCHSCREEN_AD7879_I2C=y
CONFIG_TOUCHSCREEN_ATMEL_MXT=y
CONFIG_TOUCHSCREEN_EGALAX=y
CONFIG_TOUCHSCREEN_GOODIX=y
CONFIG_TOUCHSCREEN_MAX11801=y
......
SUMMARY = "Workaround to skip the sysfs firmware fallback of the atmel maxTouch at boot up"
# The current version of the atmel_mxt_ts driver tries to load a controller configuration
# on each driver probe. However, if no config is provided or can't be provided because
# the driver is build in, the driver probing process is delayed by 60 seconds because
# of a sysfs firmware load fallback. To shorten this delay, this recipe adds a udev rule
# that cancels the sysfs firmware fallback.
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
SRC_URI += " \
file://skip_atmel-mxt_fwr_fallback.rules \
"
do_install() {
install -d ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${WORKDIR}/skip_atmel-mxt_fwr_fallback.rules ${D}${sysconfdir}/udev/rules.d
}
ACTION=="add", SUBSYSTEM=="firmware", ENV{FIRMWARE}=="maxtouch.cfg", ATTR{loading}="-1"
......@@ -5,7 +5,6 @@ inherit packagegroup
UNUSED_DRIVERS = " \
atmel-mxt \
auo-pixcir \
edt-ft5x06 \
himax \
......@@ -19,8 +18,17 @@ RDEPENDS:${PN} = " \
scx0500633 \
"
RDEPENDS:${PN}:append_mx6q = " \
RDEPENDS:${PN}:append:mx6q = " \
sis-i2c \
eetii2c \
ni-force-ts \
"
# This is not used for fng system, so use the override
# this is ugly as the override comes from the distro
# layer. But this hack is ugly anyway an may be
# replaced using the atmel driver instead of the mainline
# driver
RDEPENDS:${PN}:append:seconorth = " \
atmel-mxt-skip-fwr-fallback \
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment