summaryrefslogtreecommitdiffstats
path: root/board/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-02-26 15:59:25 -0700
committerTom Rini <trini@ti.com>2014-03-04 12:15:30 -0500
commite2d8a714a7e6047124581b93d1cfe9c7702cedd4 (patch)
treea2967b99965ef1a3bc4ab5fb1e9cc9a901a87741 /board/sandbox
parent96495d90fe0165cf0cc721083e5a0b83771e3509 (diff)
downloadblackbird-obmc-uboot-e2d8a714a7e6047124581b93d1cfe9c7702cedd4.tar.gz
blackbird-obmc-uboot-e2d8a714a7e6047124581b93d1cfe9c7702cedd4.zip
sandbox: Convert GPIOs to use driver model
Convert sandbox over to use driver model GPIOs. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/sandbox')
-rw-r--r--board/sandbox/sandbox/sandbox.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c
index 95efaffcb1..2f90df52b4 100644
--- a/board/sandbox/sandbox/sandbox.c
+++ b/board/sandbox/sandbox/sandbox.c
@@ -4,7 +4,7 @@
*/
#include <common.h>
-
+#include <dm.h>
#include <os.h>
/*
@@ -14,6 +14,11 @@
*/
gd_t *gd;
+/* Add a simple GPIO device */
+U_BOOT_DEVICE(gpio_sandbox) = {
+ .name = "gpio_sandbox",
+};
+
void flush_cache(unsigned long start, unsigned long size)
{
}
OpenPOWER on IntegriCloud