diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-02-04 00:23:35 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-02-10 23:14:25 +0100 |
commit | 0324bf59a8810cadf35d67f71f5ee409834ec4ee (patch) | |
tree | a636cb9b3ab6cfd6c0d3c54eb5659294799291a2 /firmware/target/arm/imx233/lradc-imx233.h | |
parent | 0e0c610df0d3d4044d0b21ddc1752a5dacd7f86e (diff) | |
download | rockbox-0324bf59a8810cadf35d67f71f5ee409834ec4ee.tar.gz rockbox-0324bf59a8810cadf35d67f71f5ee409834ec4ee.zip |
imx233: make button-lradc drive able to handle VDDIO derived values
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
Diffstat (limited to 'firmware/target/arm/imx233/lradc-imx233.h')
-rw-r--r-- | firmware/target/arm/imx233/lradc-imx233.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/lradc-imx233.h b/firmware/target/arm/imx233/lradc-imx233.h index f274db3520..e7853b97a5 100644 --- a/firmware/target/arm/imx233/lradc-imx233.h +++ b/firmware/target/arm/imx233/lradc-imx233.h | |||
@@ -65,6 +65,9 @@ | |||
65 | /* frequency of the delay counter */ | 65 | /* frequency of the delay counter */ |
66 | #define LRADC_DELAY_FREQ 2000 | 66 | #define LRADC_DELAY_FREQ 2000 |
67 | 67 | ||
68 | /* maximum value of a sample (without accumulation), defines the precision */ | ||
69 | #define LRADC_MAX_VALUE 4096 | ||
70 | |||
68 | typedef void (*lradc_irq_fn_t)(int chan); | 71 | typedef void (*lradc_irq_fn_t)(int chan); |
69 | 72 | ||
70 | void imx233_lradc_init(void); | 73 | void imx233_lradc_init(void); |