summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/button-lradc-imx233.h
AgeCommit message (Collapse)AuthorFilesLines
2014-02-10imx233: make button-lradc drive able to handle VDDIO derived valuesAmaury Pouly1-0/+19
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
2013-09-25imx233: improve button lradc driverAmaury Pouly1-2/+24
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-06-18imx233: add generic lradc based button driverAmaury Pouly1-0/+56
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