HACK: hid: Reset usb device when receiving to many invalid values.

Due to a mechanical construction issue, it is possible that the touch creates
events which do not result from a actual touch-event. These events then occur
in large amounts. To prevent this event flooding we reset the device when we
detect this behavior.

This workaround is only applied to one specific device.

Signed-off-by: Hendrik Lippek <hendrik.lippek@avionic-design.de>
Signed-off-by: Dirk Leber <dirk.leber@avionic-design.de>
Change-Id: Ia669ed49c7a0241c54838556f5ac2d65711bbfdb
Reviewed-on: http://review.adnet.avionic-design.de/843
Reviewed-by: Julian Scheel <julian@jusst.de>
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
arm: tegra: medcom-wide: Enable egalax hack

Enables a hack to hide the problems with the egalax touch.

Signed-off-by: Dirk Leber <dirk.leber@avionic-design.de>
Change-Id: I4cbd9187dfe265500bab0ad49fe2c873f72bc03e
Reviewed-on: http://review.adnet.avionic-design.de/930
Reviewed-by: Julian Scheel <julian@jusst.de>
cypress_firmware: Add ihex format support.

Add a firmware loader helper function that reads firmware files in the common
kernel ihex binary converted format, which is produced with ihex2fw tool.

Change-Id: Iefccfd0c56a663d87b05bb9d2da78a69bd041e41
Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-on: http://review.adnet.avionic-design.de/925
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
dvb-usb-ad1456: Add driver for AD1456 USB Stick.

This adds a dvb-usb-v2 based driver for a DVB-C/T USB 2.0 stick from Avionic
Design, which is used in OEM products.

Change-Id: If9baf6e2246c63a032f49abdc4adb5d57bc25526
Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-on: http://review.adnet.avionic-design.de/926
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
arm: tegra: medcom-wide: Update defconfig

This commit does not change any kernel configuration, but only updates the
config to match what savedefconfig generates with the current kernel tree. The
ADNP driver is auto-selected as of now.

Change-Id: I5b3844b69ce85fc57e3d294592e7c07e7223f4b2
Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-on: http://review.adnet.avionic-design.de/948
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
arm: tegra: medcom-wide: Enable ad1456 dvb driver

Enable the kernel modules for the ad1456 dvb usb stick.

Change-Id: Iaf9e0ba4bf01a58945591bcd692537dbcd6abae0
Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-on: http://review.adnet.avionic-design.de/949
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
arm: tegra: medcom-wide: Add support for analog tuners.

This adds support for the usb analog tuners used in some installations.

Change-Id: Ie9a9f114cfc20ac663a8057518ccd0d481939c1f
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/957
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
gpio/adnp: Add an optional check for the MachOX CPLD

The ADNP is generally implemented on a MachOX CPLD. Attempting to use
the CPLD when it is not yet programmed put it in an unrecoverable state.

To avoid this add an optional check for this CPLD that calls a platform
function with the basic identifier from the CPLD (device id, usercode
and trace id). If the platform function returns an error the ADNP
driver isn't loaded. Additionally this function can be used to print
out information about the CPLD.

Change-Id: I44cf0c567eb9342ba5c58bbfe86c8d7235992a3a
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/1017
Reviewed-by: Julian Scheel <julian@jusst.de>
arm: tegra: tamonten: Add a CPLD check to cope with unprogrammed CPLDs

Add a check for unprogrammed CPLD, as well as an optional platform ID
check, and a warning when the CPLD isn't a release version.

Also add the platform ID used on the medcom-wide and tec-ng boards.

Change-Id: I4d482a155f7aa9018ff447c46e653b7b01848fb6
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/1018
Reviewed-by: Julian Scheel <julian@jusst.de>
HID: multitouch: Fix the type of egalax_hack_event_max_triger

The egalax_hack_event_max_triger had the wrong type, it should be uint
and not bool.

Change-Id: I4ff4e2d9d0a4809b1b9125a1638a348ab3479382
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/1041
Reviewed-by: Hendrik Lippek <hendrik.lippek@avionic-design.de>
mfd: sx8634: Fix debug messages

The debug messages were not printed anymore, as the state variable pending was
never set. Use it again and use pending instead of err in subsequent function
call to increase readability.

Change-Id: Ie1083f1b90bae1ebd7ab665ebff5e64ab9138356
Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-on: http://review.adnet.avionic-design.de/1137
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
mfd: sx8634: unbind resources on removal

When the sx8634 driver is removed the irq has to be freed and the mfd devices
need to be unregistered. This fixes dynamic un/rebinding of the sx8634 driver.

Change-Id: Ib1e7aa6faf46caa162eeb29a60ef3919bac6803c
Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-on: http://review.adnet.avionic-design.de/1138
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
arm: tegra: medcom-wide: Fix sx8634 gpio assignment

The medcom-wide features two sx8634 controllers which can be reset individually
by a gpio on the adnp controller. Unfortunately the mapping between sensor
address and reset gpio pin was wrong, so that a driver rebind caused a reset on
the still bound controller to happen.

Change-Id: Iabc991813b3ee4bc8bd90cf11fa238cf1d3e077d
Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-on: http://review.adnet.avionic-design.de/1139
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
ARM: tegra: tamonten: Enable the pullups on the SDIO pins

Some Tamonten base boards are missing the pullups on the SDIO lines, so
always enable them on the SoC.

Change-Id: I87754d10a56764c83ec34f2c2f07df8e57999d5d
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/1147
Reviewed-by: Julian Scheel <julian@jusst.de>