When an SPI in the OMAPL138 is configured for a slave what is the maximum frequency permitted on the SPIx_CLK input? Does it have the same maximum as for master mode or can it go as fast as the SPI module clock?
I'm finding somewhat contradictory information related to this signal in the documentation
TMS320C674x/OMAP-L1x Processor Serial Peripheral Interface (SPI) User's Guide
Literature Number: SPRUFM4G January 2010
http://focus.ti.com/lit/ug/sprufm4g/sprufm4g.pdf
I suspect the following sections contain typos.
1.2 Features
The SPI allows software to program the following options:
SPIx_CLK frequency (SPI module clock/2 through SPI module clock/256)
The rest of the guide consistently indicates a maximum of 1/3 the module clock.
2.6 Slave Mode Settings
Note that in certain cases the allowed values may still be ignored.
Table 6. Allowed SPI Register Settings in Slave Modes
SPIFMTn (1) PRESCALE 2 to FFh
PRESCALE doesn't make sense when in slave mode since the SPIx_CLK is asynchronous to the SPI module clock.
I think the following section best describes the SPI clock. Note that the PRESCALE value after reset is 0.
3.18 SPI Data Format Registers (SPIFMTn)
Table 26. SPI Data Format Register (SPIFMTn) Field Descriptions
SPI prescaler. It determines the bit transfer rate if the SPI is the network master and is directly derived from the SPI module clock. If the SPI is configured as slave, PRESCALE does not need to be configured. The clock rate can be calculated as: SPI clock frequency = SPI module clock/(PRESCALE + 1) Note: PRESCALE values less than 2h are not supported.