gpio: SPEAr: add spi chipselect control driver
authorShiraz Hashim <shiraz.hashim@st.com>
Fri, 16 Nov 2012 05:15:25 +0000 (10:45 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 17 Nov 2012 23:01:27 +0000 (00:01 +0100)
commitb53bc2819a71099ecfc3d61ba0796b3dcc6be321
treea8d5efe5711a737a2bda7faa00371eebef848905
parent8754fccbae661a0020923cffd63e21de36d51e2e
gpio: SPEAr: add spi chipselect control driver

SPEAr platform provides a provision to control chipselects of ARM PL022
Prime Cell spi controller through its system registers, which otherwise
remains under PL022 control which some protocols do not want.

This commit intends to provide the spi chipselect control in software over
gpiolib interface. spi chip drivers can use the exported gpiolib interface to
define their chipselect through DT or platform data.

Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Reviewed-by: Vipin Kumar <vipin.kumar@st.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/spear_spics.txt [new file with mode: 0644]
arch/arm/plat-spear/Kconfig
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-spear-spics.c [new file with mode: 0644]