i2c: at91: adopt pinctrl support
authorWenyou Yang <wenyou.yang@atmel.com>
Mon, 10 Nov 2014 01:55:52 +0000 (09:55 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 12 Nov 2014 15:50:24 +0000 (16:50 +0100)
commit62d10c402f085be2bfa51b39199a76249ec09396
treeb2b60c8e6894473738a37857499922d88f144cbe
parentab0831d0f35b44724390134d03bcff99ae0d8a7e
i2c: at91: adopt pinctrl support

Amend the at91 i2c pin controller to set the state of the pins to:
- "default" on resume.
- "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: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-at91.c