spi/sh-hspi: add CS manual control support
authorPhil Edworthy <phil.edworthy@renesas.com>
Thu, 22 Nov 2012 14:37:27 +0000 (14:37 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 23 Nov 2012 09:52:43 +0000 (09:52 +0000)
commitce3293058637ada3b1837a77c8f9c672a51b2434
treef4de2d04934ce061a4b5f460680b1aaf269ae806
parent743179849015dc71bb2ea63d8cd4bfa7fdfb4bc6
spi/sh-hspi: add CS manual control support

The current HSPI driver used automatic CS control, leading to CS
active for each byte transmitted. This patch changes the driver
to manual CS control, and ensures CS is active thoughout a whole
message. Additionally, it uses the cs_change field to determine
if CS is disabled between transfers in the message.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-sh-hspi.c