diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-14 04:47:59 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-14 04:47:59 +0000 |
commit | 91ada17c36294a1b2ef5f75ed1e231a448de3ea8 (patch) | |
tree | 5390d410ce856369684239eb5daa164cb0fcfcff /firmware/target/arm | |
parent | d6ae8edc134e9204044ec7b3113b5fef3122502c (diff) |
M:Robe 500 Add some additional pin initialization for the SPI devices.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23984 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/tms320dm320/spi-dm320.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/firmware/target/arm/tms320dm320/spi-dm320.c b/firmware/target/arm/tms320dm320/spi-dm320.c index 262b0611ac..040955f01a 100644 --- a/firmware/target/arm/tms320dm320/spi-dm320.c +++ b/firmware/target/arm/tms320dm320/spi-dm320.c @@ -125,9 +125,16 @@ void spi_init(void) IO_SERIAL0_TX_ENABLE = 0x0001; #ifndef CREATIVE_ZVx /* Set GIO 18 to output for touch screen slave enable */ - IO_GIO_DIR1 &= ~GIO_TS_ENABLE; + /* Set GIO 29 to output for backlight enable */ + IO_GIO_DIR1 &= ~(GIO_TS_ENABLE | GIO_BL_ENABLE); + IO_GIO_INV1 &= ~(GIO_TS_ENABLE | GIO_BL_ENABLE); /* non-inverted */ + IO_GIO_FSEL1 &= ~(0x03<<2); /* normal pin */ + IO_GIO_FSEL2 &= ~(0x03<<8); /* normal pin */ + /* Set GIO 12 to output for rtc slave enable */ - IO_GIO_DIR0 &= ~GIO_RTC_ENABLE; + IO_GIO_DIR0 &= ~GIO_RTC_ENABLE; + IO_GIO_INV0 &= ~(GIO_RTC_ENABLE); /* non-inverted */ + IO_GIO_FSEL0 &= ~(0x03<<6); /* normal pin */ #endif /* make sure only one is ever enabled at a time */ spi_disable_all_targets(); |