summaryrefslogtreecommitdiff
path: root/board
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
parent96495d90fe0165cf0cc721083e5a0b83771e3509 (diff)
downloadu-boot-imx-e2d8a714a7e6047124581b93d1cfe9c7702cedd4.zip
u-boot-imx-e2d8a714a7e6047124581b93d1cfe9c7702cedd4.tar.gz
u-boot-imx-e2d8a714a7e6047124581b93d1cfe9c7702cedd4.tar.bz2
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')
-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 95efaff..2f90df5 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)
{
}