1
0
Fork 0
forked from len0rd/rockbox

hm801: Implement additional button driver.

Several HM-801 DAPs have another buttons circuit.
This patch adds support for such devices so they could work properly.

Change-Id: Ic49e8e46b3e785b91c7c4706003fac3dbc20ae59
This commit is contained in:
Andrew Ryabinin 2012-10-17 11:37:55 +04:00
parent 89254cb612
commit 04fb4b77ac
2 changed files with 99 additions and 28 deletions

View file

@ -25,7 +25,12 @@
#define ADC_BATTERY 0
#define ADC_BUTTONS 1
#define ADC_UNKNOWN 2
/* HiFiMAN HM-801 usually use this channel for second battery,
but some of them use it for buttons.
*/
#define ADC_EXTRA 2
#define ADC_VREF 3 /* that is what datasheet says */
#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */