mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
Clean spi.h and spi-target.h
Only target-specific (list of SPI targets) go in spi-target.h API go into spi.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31615 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
12ef8723f8
commit
28d1af853c
6 changed files with 19 additions and 20 deletions
|
|
@ -43,9 +43,12 @@ struct SPI_info {
|
|||
bool clk_invert;
|
||||
};
|
||||
|
||||
static const struct SPI_info spi_targets[] =
|
||||
static const struct SPI_info spi_targets[SPI_MAX_TARGETS] =
|
||||
{
|
||||
#ifndef CREATIVE_ZVx
|
||||
#if defined(CREATIVE_ZVx)
|
||||
[SPI_target_LTV250QV] = { &IO_GIO_BITCLR2, &IO_GIO_BITSET2,
|
||||
GIO_LCD_ENABLE, true, 0x07},
|
||||
#elif defined(MROBE_500)
|
||||
[SPI_target_TSC2100] = { &IO_GIO_BITCLR1, &IO_GIO_BITSET1,
|
||||
GIO_TS_ENABLE, 0x260D, true},
|
||||
/* RTC seems to have timing problems if the CLK idles low */
|
||||
|
|
@ -54,9 +57,6 @@ static const struct SPI_info spi_targets[] =
|
|||
/* This appears to work properly idling low, idling high is very glitchy */
|
||||
[SPI_target_BACKLIGHT] = { &IO_GIO_BITCLR1, &IO_GIO_BITSET1,
|
||||
GIO_BL_ENABLE, 0x2656, false},
|
||||
#else
|
||||
[SPI_target_LTV250QV] = { &IO_GIO_BITCLR2, &IO_GIO_BITSET2,
|
||||
GIO_LCD_ENABLE, true, 0x07},
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue