gpio/mxs: Change gpio-mxs into an upstanding gpio driver
authorShawn Guo <shawn.guo@linaro.org>
Mon, 6 Jun 2011 15:37:58 +0000 (09:37 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 6 Jun 2011 16:01:19 +0000 (10:01 -0600)
commit8d7cf8370d5fb75a3265408dceb1d6173eebfafd
treec14bbe3f058dc65e0f9e3dcd7dc0c8e66bbf8ce3
parent7b2fa5702059a03c11f934224724b2f712a749ce
gpio/mxs: Change gpio-mxs into an upstanding gpio driver

The patch makes necessary changes on gpio-mxs as below to turn it
into an upstanding gpio driver.

 * Clean up the gpio port definition stuff

 * Use readl/writel to replace mach-specific accessors
   __raw_readl/__raw_writel

 * Change mxs_gpio_init into mxs_gpio_probe function

And it then migrates mach-mxs to the updated driver by adding
corresponding platform devices.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/mach-mxs/devices.c
arch/arm/mach-mxs/devices/Makefile
arch/arm/mach-mxs/devices/platform-gpio-mxs.c [new file with mode: 0644]
arch/arm/mach-mxs/include/mach/devices-common.h
arch/arm/mach-mxs/mm-mx23.c
arch/arm/mach-mxs/mm-mx28.c
drivers/gpio/gpio-mxs.c