wlcore: spi: add wl18xx support
authorEyal Reizer <eyalr@ti.com>
Tue, 19 Jul 2016 06:58:02 +0000 (09:58 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 19 Jul 2016 18:16:04 +0000 (21:16 +0300)
commit01efe65aba6585c78c6fb90d63c3d10773b6f868
tree674f9fbfb130bc547c01ba74ffca8c3ab6f06684
parentf823a2aa8f4674c095a5413b9e3ba12d82df06f2
wlcore: spi: add wl18xx support

Add support for using with both wl12xx and wl18xx.

- all wilink family needs special init command for entering wspi mode.
  extra clock cycles should be sent after the spi init command while the
  cs pin is high.
- Use inverted chip select for sending a dummy 4 bytes command that
  completes the init stage.

Signed-off-by: Eyal Reizer <eyalr@ti.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Documentation/devicetree/bindings/net/wireless/ti,wlcore,spi.txt
drivers/net/wireless/ti/wlcore/spi.c