summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/onda_vx747
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-21 22:50:50 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-21 22:50:50 +0000
commit249392c2d33130b86e39ad36d99cc2673842e37d (patch)
tree6a096162f49b94b22b3a5317530dcadd000b6a34 /firmware/target/mips/ingenic_jz47xx/onda_vx747
parente4c754b30a800c077b73ac82dad074c46a1fb1f0 (diff)
downloadrockbox-249392c2d33130b86e39ad36d99cc2673842e37d.tar.gz
rockbox-249392c2d33130b86e39ad36d99cc2673842e37d.tar.bz2
rockbox-249392c2d33130b86e39ad36d99cc2673842e37d.zip
Add a BTN_MASK for the VX777 (aka fix red)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22461 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
index 124e81f689..5695e2533e 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
@@ -36,21 +36,26 @@
#define BTN_HOLD (1 << 16)
#define BTN_MENU (1 << 1)
#define BTN_VOL_UP (1 << 0)
+
+#define BTN_MASK (BTN_OFF | BTN_VOL_DOWN | \
+ BTN_MENU | BTN_VOL_UP)
#elif defined(ONDA_VX747P)
#define BTN_OFF (1 << 29)
#define BTN_VOL_DOWN (1 << 27)
#define BTN_HOLD (1 << 22) /* on REG_GPIO_PXPIN(2) */
#define BTN_MENU (1 << 20)
#define BTN_VOL_UP (1 << 19)
+
+#define BTN_MASK (BTN_OFF | BTN_VOL_DOWN | \
+ BTN_MENU | BTN_VOL_UP)
#elif defined(ONDA_VX777)
#define BTN_OFF (1 << 29)
+
+#define BTN_MASK (BTN_OFF)
#else
#error No buttons defined!
#endif
-#define BTN_MASK (BTN_OFF | BTN_VOL_DOWN | \
- BTN_MENU | BTN_VOL_UP)
-
#define TS_AD_COUNT 3
#define SADC_CFG_SNUM ((TS_AD_COUNT - 1) << SADC_CFG_SNUM_BIT)