spi: atmel: adopt pinctrl support
authorWenyou Yang <wenyou.yang@atmel.com>
Wed, 5 Mar 2014 01:58:49 +0000 (09:58 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 5 Mar 2014 03:21:47 +0000 (11:21 +0800)
commit5bdfd491a01955727a6b2382534ec7760174863e
tree42ee015bf457b62106e1d1fdb1f8de9db7b2670a
parentad6f33d22c25e7340107a330e6de60bba57ecf52
spi: atmel: adopt pinctrl support

Amend the spi atmel pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume and before performing an spitransfer
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-atmel.c