summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/button-lradc-imx233.c
AgeCommit message (Collapse)Author
2014-02-10imx233: make button-lradc drive able to handle VDDIO derived valuesAmaury Pouly
In most devices, the button ladder is not actually derived from VDDIO but from a constant voltage source, making it very easy to read it. However on some devices like ther ZEN X-Fi Style, the ladder is wired to VDDIO we can be changed so it's crucial that the button driver correctly scales the values wrt VDDIO. Change-Id: Ifc11abe2838fa7d16d0d60ecd96964a8dc5ea6d7
2014-01-05Add missing kernel.h includes (hopefully all of them).Thomas Martitz
Change-Id: I9c1825296a788587b8d494d8514b3314847b0ff0
2013-09-25imx233: improve button lradc driverAmaury Pouly
The driver can now handle HOLD in several ways, including using a GPIO. Also add a debug routine to read the raw value of the adc. Change-Id: Ide2cb1ac58e759b4bc464e606b432f2c150ee36f
2013-09-05imx233: cleanup lradc button driverAmaury Pouly
Change-Id: I85fbe6807a1f91ae5be97b6847c07b24a4f18c24
2013-06-18imx233: add generic lradc based button driverAmaury Pouly
This driver does debouncing and best lradc usage and only requires a sorted table of values to work, this factoring code as much as possible. Change-Id: I84b46f4b08094634e1c5deb5ca9ba20763389e66