[U-Boot] [PATCH V2 13/13] rbpi: Add BCM2835 GPIO driver for raspberry pi

Stephen Warren swarren at wwwdotorg.org
Wed Aug 1 06:13:43 CEST 2012


From: Vikram Narayanan <vikram186 at gmail.com>

Add the driver to the default config

swarren: Enable CONFIG_CMD_GPIO, so you can actually use the driver.

Signed-off-by: Vikram Narayanan <vikram186 at gmail.com>
Signed-off-by: Stephen Warren <swarren at wwwdotorg.org>
---
v2: New patch
---
 include/configs/rpi_b.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/configs/rpi_b.h b/include/configs/rpi_b.h
index 33169d3..5c91e7d 100644
--- a/include/configs/rpi_b.h
+++ b/include/configs/rpi_b.h
@@ -55,7 +55,8 @@
 #define CONFIG_SYS_NO_FLASH
 
 /* Devices */
-/* None yet */
+/* GPIO */
+#define CONFIG_BCM2835_GPIO
 
 /* Console UART */
 #define CONFIG_PL011_SERIAL
@@ -88,6 +89,7 @@
 /* Commands */
 #include <config_cmd_default.h>
 #define CONFIG_CMD_BOOTZ
+#define CONFIG_CMD_GPIO
 /* Some things don't make sense on this HW or yet */
 #undef CONFIG_CMD_FPGA
 #undef CONFIG_CMD_NET
-- 
1.7.9.5



More information about the U-Boot mailing list