Signed-off-by: Marek Vasut <ma...@denx.de>
---
 arch/sandbox/lib/board.c |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/sandbox/lib/board.c b/arch/sandbox/lib/board.c
index c173bf9..b6b3768 100644
--- a/arch/sandbox/lib/board.c
+++ b/arch/sandbox/lib/board.c
@@ -47,6 +47,8 @@
 
 #include <os.h>
 
+#include <dm/manager.h>
+
 DECLARE_GLOBAL_DATA_PTR;
 
 static gd_t gd_mem;
@@ -232,6 +234,23 @@ void board_init_r(gd_t *id, ulong dest_addr)
        mem_malloc_init((ulong)gd->ram_buf + gd->ram_size - TOTAL_MALLOC_LEN,
                        TOTAL_MALLOC_LEN);
 
+       dm_init();
+       static const struct driver_info info = {
+               .name = "demo_drv",
+               .platform_data = NULL
+       };
+       struct instance *root = get_root_instance();
+       struct instance *demo1, *demo2, *demo3;
+       demo1 = driver_bind(root, &info);
+               driver_bind(root, &info);
+                               driver_bind(demo1, &info);
+                               driver_bind(demo1, &info);
+                       demo2 = driver_bind(demo1, &info);
+                               demo3 = driver_bind(demo2, &info);
+       driver_bind(demo2, &info);
+
+       demo_hello(demo2);
+
        /* initialize environment */
        env_relocate();
 
-- 
1.7.10.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to