summaryrefslogtreecommitdiff
path: root/arch/sandbox/cpu
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-04 17:57:55 (GMT)
committerSimon Glass <sjg@chromium.org>2016-07-15 02:40:24 (GMT)
commita091a8f084f731953fa77a3da3b5bec72d37ad0f (patch)
tree9de602b98462b876d5e677665c853e956c08372e /arch/sandbox/cpu
parent8797b2cae3ac5ddb005665e4b5cde4783a4f5555 (diff)
downloadu-boot-fsl-qoriq-a091a8f084f731953fa77a3da3b5bec72d37ad0f.tar.xz
sandbox: Add a test device that uses of-platdata
Start up the test devices. These print out of-platdata contents, providing a check that the of-platdata feature is working correctly. The device-tree changes are made to sandbox.dts rather than test.dts. since the former controls the of-platdata generation. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu')
-rw-r--r--arch/sandbox/cpu/spl.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c
index e17c0ed..e8349c0 100644
--- a/arch/sandbox/cpu/spl.c
+++ b/arch/sandbox/cpu/spl.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
#include <os.h>
+#include <spl.h>
#include <asm/spl.h>
#include <asm/state.h>
@@ -49,3 +50,19 @@ int spl_board_load_image(void)
/* Hopefully this will not return */
return os_spl_to_uboot(fname);
}
+
+void spl_board_init(void)
+{
+ struct udevice *dev;
+
+ preloader_console_init();
+
+ /*
+ * Scan all the devices so that we can output their platform data. See
+ * sandbox_spl_probe().
+ */
+ for (uclass_first_device(UCLASS_MISC, &dev);
+ dev;
+ uclass_next_device(&dev))
+ ;
+}