summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/mrobe-500/adc-mr500.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tms320dm320/mrobe-500/adc-mr500.c')
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/adc-mr500.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/adc-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/adc-mr500.c
index 7d073f4fda..5df764620d 100644
--- a/firmware/target/arm/tms320dm320/mrobe-500/adc-mr500.c
+++ b/firmware/target/arm/tms320dm320/mrobe-500/adc-mr500.c
@@ -28,6 +28,15 @@
28 28
29void adc_init(void) 29void adc_init(void)
30{ 30{
31 /* Pin 15 appears to be the nPWD pin - make sure it is high otherwise the
32 * touchscreen does not work, audio has not been tested, but it is
33 * expected that is will also not work when low.
34 */
35 IO_GIO_DIR0 &= ~(1<<15); /* output */
36 IO_GIO_INV0 &= ~(1<<15); /* non-inverted */
37 IO_GIO_FSEL0 &= ~(0x03<<12); /* normal pin */
38 IO_GIO_BITSET0 = (1<<15);
39
31 /* Initialize the touchscreen and the battery readout */ 40 /* Initialize the touchscreen and the battery readout */
32 tsc2100_adc_init(); 41 tsc2100_adc_init();
33 42