summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/spi-dm320.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tms320dm320/spi-dm320.c')
-rw-r--r--firmware/target/arm/tms320dm320/spi-dm320.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/tms320dm320/spi-dm320.c b/firmware/target/arm/tms320dm320/spi-dm320.c
index c2e774462a..e9a097b0ea 100644
--- a/firmware/target/arm/tms320dm320/spi-dm320.c
+++ b/firmware/target/arm/tms320dm320/spi-dm320.c
@@ -43,9 +43,12 @@ struct SPI_info {
43 bool clk_invert; 43 bool clk_invert;
44}; 44};
45 45
46static const struct SPI_info spi_targets[] = 46static const struct SPI_info spi_targets[SPI_MAX_TARGETS] =
47{ 47{
48#ifndef CREATIVE_ZVx 48#if defined(CREATIVE_ZVx)
49 [SPI_target_LTV250QV] = { &IO_GIO_BITCLR2, &IO_GIO_BITSET2,
50 GIO_LCD_ENABLE, true, 0x07},
51#elif defined(MROBE_500)
49 [SPI_target_TSC2100] = { &IO_GIO_BITCLR1, &IO_GIO_BITSET1, 52 [SPI_target_TSC2100] = { &IO_GIO_BITCLR1, &IO_GIO_BITSET1,
50 GIO_TS_ENABLE, 0x260D, true}, 53 GIO_TS_ENABLE, 0x260D, true},
51 /* RTC seems to have timing problems if the CLK idles low */ 54 /* RTC seems to have timing problems if the CLK idles low */
@@ -54,9 +57,6 @@ static const struct SPI_info spi_targets[] =
54 /* This appears to work properly idling low, idling high is very glitchy */ 57 /* This appears to work properly idling low, idling high is very glitchy */
55 [SPI_target_BACKLIGHT] = { &IO_GIO_BITCLR1, &IO_GIO_BITSET1, 58 [SPI_target_BACKLIGHT] = { &IO_GIO_BITCLR1, &IO_GIO_BITSET1,
56 GIO_BL_ENABLE, 0x2656, false}, 59 GIO_BL_ENABLE, 0x2656, false},
57#else
58 [SPI_target_LTV250QV] = { &IO_GIO_BITCLR2, &IO_GIO_BITSET2,
59 GIO_LCD_ENABLE, true, 0x07},
60#endif 60#endif
61}; 61};
62 62