summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-09-22 17:30:56 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 10:36:57 -0600
commit41e98e011da9a3a4461e8cb1479ce343898264fe (patch)
treeee5a4a4bcc3f57e39df466589913cc126ffc5a83 /arch
parentda802b9e2726c7467e0b402efeb6ad3d975f1282 (diff)
downloadu-boot-imx-41e98e011da9a3a4461e8cb1479ce343898264fe.zip
u-boot-imx-41e98e011da9a3a4461e8cb1479ce343898264fe.tar.gz
u-boot-imx-41e98e011da9a3a4461e8cb1479ce343898264fe.tar.bz2
dm: rpi: Convert GPIO driver to driver model
Convert the BCM2835 GPIO driver to use driver model, and switch over Raspberry Pi to use this, since it is the only board. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@wwwdotorg.org> Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/arch-bcm2835/gpio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-bcm2835/gpio.h b/arch/arm/include/asm/arch-bcm2835/gpio.h
index 9a49b6e..db42896 100644
--- a/arch/arm/include/asm/arch-bcm2835/gpio.h
+++ b/arch/arm/include/asm/arch-bcm2835/gpio.h
@@ -52,4 +52,13 @@ struct bcm2835_gpio_regs {
u32 gppudclk[2];
};
+/**
+ * struct bcm2835_gpio_platdata - GPIO platform description
+ *
+ * @base: Base address of GPIO controller
+ */
+struct bcm2835_gpio_platdata {
+ unsigned long base;
+};
+
#endif /* _BCM2835_GPIO_H_ */