]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: atmel-mci: adopt pinctrl support
authorWenyou Yang <wenyou.yang@atmel.com>
Fri, 7 Nov 2014 00:48:13 +0000 (08:48 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 26 Nov 2014 13:30:52 +0000 (14:30 +0100)
commitf41ebe334e01fb1e90755206c569fd95f7330614
treeed360bb147a0b62a3aac778f5d7b0ad3bd49a1b1
parent8311d3d677ffd5763e607dd1a26647f5b56478bf
mmc: atmel-mci: adopt pinctrl support

Amend the atmel mci 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 transfer.
- "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: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/atmel-mci.c