WLAN from SDIO to SPI: battle plan

Werner Almesberger werner at openmoko.org
Mon Aug 25 20:47:00 CEST 2008

dennis.yxun wrote:
> +	spi->ch[0].SPCON = 0x1B; /* Polling, Prescaler, Master, CPOL=0,
> +				    CPHA=1 */

The problem seems to be that you also set what Samsung obliquely
refer to as "Tx auto garbage data mode". Setting it makes SPI ignore

Also, your clock rate is a bit off. (See the comments in the example

User-space example in:

(To compile it, you also need to build

And this is what happens on the wires:

D6 is MOSI, D5 is SCLK, D1 through D4 are floating, D0 is an
unsynchronized 1MHz reference clock.

- Werner

More information about the openmoko-kernel mailing list