summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-09-22 23:30:56 (GMT)
committerSimon Glass <sjg@chromium.org>2014-10-22 16:36:57 (GMT)
commit41e98e011da9a3a4461e8cb1479ce343898264fe (patch)
treeee5a4a4bcc3f57e39df466589913cc126ffc5a83 /include
parentda802b9e2726c7467e0b402efeb6ad3d975f1282 (diff)
downloadu-boot-41e98e011da9a3a4461e8cb1479ce343898264fe.tar.xz
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 'include')
-rw-r--r--include/configs/rpi_b.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/rpi_b.h b/include/configs/rpi_b.h
index 2d69809..d9475e9 100644
--- a/include/configs/rpi_b.h
+++ b/include/configs/rpi_b.h
@@ -31,6 +31,11 @@
*/
#define CONFIG_MACH_TYPE MACH_TYPE_BCM2708
+/* Enable driver model */
+#define CONFIG_DM
+#define CONFIG_CMD_DM
+#define CONFIG_DM_GPIO
+
/* Memory layout */
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_SYS_SDRAM_BASE 0x00000000