summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-09-03 16:04:37 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-09-03 16:06:16 -0400
commit48a2b80c7742f5e3a0ef86e122648657624b8ba8 (patch)
tree5fb8cd7a2f6d245d312a70ac1225e92e51e485c4 /firmware/target/mips/ingenic_jz47xx
parent0cb162a76b16d58250a33e817af6a763e89a770a (diff)
downloadrockbox-48a2b80c7742f5e3a0ef86e122648657624b8ba8.tar.gz
rockbox-48a2b80c7742f5e3a0ef86e122648657624b8ba8.tar.bz2
rockbox-48a2b80c7742f5e3a0ef86e122648657624b8ba8.zip
Xduoo Gpio fix bug
Change-Id: I76eda59a391a408d1a6642497d8cc4aeb93a0da1
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
index 9e0ca1f077..c2ead85fb4 100644
--- a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
+++ b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
@@ -282,7 +282,10 @@ void SADC(void)
if (!__gpio_get_pin(PIN_KEY_INT)) /* key(s) are down kick off another read */
{
+#ifdef ENABLE_BUTTON_COMBOS
+ /* setting bit high removes BOP from ADC circuit*/
__gpio_set_pin(PIN_KEY_BOP);
+#endif
REG_SADC_ADENA = ADENA_AUXEN;
}
#ifdef ENABLE_BUTTON_COMBOS