From 173d854e7f10c51969ccf237074aa8dfcc083c7f Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Sun, 11 Oct 2009 06:08:14 +0000 Subject: M:Robe 500: Add support for more audio frequencies, initialize and set the touchscreen PWD pin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23089 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/tms320dm320/mrobe-500/adc-mr500.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'firmware/target/arm') 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 @@ void adc_init(void) { + /* Pin 15 appears to be the nPWD pin - make sure it is high otherwise the + * touchscreen does not work, audio has not been tested, but it is + * expected that is will also not work when low. + */ + IO_GIO_DIR0 &= ~(1<<15); /* output */ + IO_GIO_INV0 &= ~(1<<15); /* non-inverted */ + IO_GIO_FSEL0 &= ~(0x03<<12); /* normal pin */ + IO_GIO_BITSET0 = (1<<15); + /* Initialize the touchscreen and the battery readout */ tsc2100_adc_init(); -- cgit v1.2.3