]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/sandbox/sandbox/sandbox.c
sandbox: Convert GPIOs to use driver model
[karo-tx-uboot.git] / board / sandbox / sandbox / sandbox.c
index 95efaffcb1f87ccded807d6ee383d526d9f4553d..2f90df52b4620443002e824b382c7c96f2e4ee10 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include <common.h>
-
+#include <dm.h>
 #include <os.h>
 
 /*
  */
 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)
 {
 }