summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/tms320dm320/spi-dm320.c11
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)
125 IO_SERIAL0_TX_ENABLE = 0x0001; 125 IO_SERIAL0_TX_ENABLE = 0x0001;
126#ifndef CREATIVE_ZVx 126#ifndef CREATIVE_ZVx
127 /* Set GIO 18 to output for touch screen slave enable */ 127 /* Set GIO 18 to output for touch screen slave enable */
128 IO_GIO_DIR1 &= ~GIO_TS_ENABLE; 128 /* Set GIO 29 to output for backlight enable */
129 IO_GIO_DIR1 &= ~(GIO_TS_ENABLE | GIO_BL_ENABLE);
130 IO_GIO_INV1 &= ~(GIO_TS_ENABLE | GIO_BL_ENABLE); /* non-inverted */
131 IO_GIO_FSEL1 &= ~(0x03<<2); /* normal pin */
132 IO_GIO_FSEL2 &= ~(0x03<<8); /* normal pin */
133
129 /* Set GIO 12 to output for rtc slave enable */ 134 /* Set GIO 12 to output for rtc slave enable */
130 IO_GIO_DIR0 &= ~GIO_RTC_ENABLE; 135 IO_GIO_DIR0 &= ~GIO_RTC_ENABLE;
136 IO_GIO_INV0 &= ~(GIO_RTC_ENABLE); /* non-inverted */
137 IO_GIO_FSEL0 &= ~(0x03<<6); /* normal pin */
131#endif 138#endif
132 /* make sure only one is ever enabled at a time */ 139 /* make sure only one is ever enabled at a time */
133 spi_disable_all_targets(); 140 spi_disable_all_targets();