From 2e0a60058165e1314ae1459895e8dbfe276b8bcc Mon Sep 17 00:00:00 2001
From: Timothy Pearson <tpearson@raptorengineeringinc.com>
Date: Mon, 18 Apr 2016 16:50:52 +0000
Subject: [PATCH 13/15] arch/arm/mach-rockchip/rk3288-board-spl: Add debug
 control statements

Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
---
 arch/arm/mach-rockchip/rk3288-board-spl.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c
index e133cca..4165fe5 100644
--- a/arch/arm/mach-rockchip/rk3288-board-spl.c
+++ b/arch/arm/mach-rockchip/rk3288-board-spl.c
@@ -25,6 +25,9 @@
 #include <dm/util.h>
 #include <power/regulator.h>
 
+#define EARLY_UART 1
+// #define DEBUG_DM 1
+
 DECLARE_GLOBAL_DATA_PTR;
 
 u32 spl_boot_device(void)
@@ -187,6 +190,11 @@ void board_init_f(ulong dummy)
 	rockchip_timer_init();
 	configure_l2ctlr();
 
+#ifdef DEBUG_DM
+	dm_dump_all();
+	dm_dump_uclass();
+#endif
+
 	ret = uclass_get_device(UCLASS_CLK, 0, &dev);
 	if (ret) {
 		debug("CLK init failed: %d\n", ret);
-- 
1.9.1

