ARM: plat-iop: instantiate GPIO from platform device
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 9 Sep 2013 14:39:51 +0000 (16:39 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Sep 2013 21:04:50 +0000 (23:04 +0200)
commit7b85b867b99044da93f83851c806d1e324d49ed5
tree22fd6412f7d986b1d3720badd4d5fe60f3fd9a45
parent51a97d829e32b7a1b960d3365e4c2546c9c792aa
ARM: plat-iop: instantiate GPIO from platform device

This converts the IOP32x and IOP33x platforms to pass their
base address offset by a resource attached to a platform device
instead of using static offset macros implicitly passed
through <linux/gpio.h> including <mach/gpio.h>. Delete the
local <mach/gpio.h> and <asm/hardware/iop3xx-gpio.h> headers
and remove the selection of NEED_MACH_GPIO_H.

Pass the virtual address as a resource in the platform device
at this point for bisectability, next patch will pass the
physical address as is custom.

Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Mikael Pettersson <mikpe@it.uu.se>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
16 files changed:
arch/arm/Kconfig
arch/arm/include/asm/hardware/iop3xx-gpio.h [deleted file]
arch/arm/include/asm/hardware/iop3xx.h
arch/arm/mach-iop32x/em7210.c
arch/arm/mach-iop32x/glantank.c
arch/arm/mach-iop32x/gpio-iop32x.h [new file with mode: 0644]
arch/arm/mach-iop32x/include/mach/gpio.h [deleted file]
arch/arm/mach-iop32x/include/mach/iop32x.h
arch/arm/mach-iop32x/iq31244.c
arch/arm/mach-iop32x/iq80321.c
arch/arm/mach-iop32x/n2100.c
arch/arm/mach-iop33x/include/mach/gpio.h [deleted file]
arch/arm/mach-iop33x/include/mach/iop33x.h
arch/arm/mach-iop33x/iq80331.c
arch/arm/mach-iop33x/iq80332.c
drivers/gpio/gpio-iop.c