summaryrefslogtreecommitdiff
path: root/arch/sandbox/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-06 18:54:35 (GMT)
committerSimon Glass <sjg@chromium.org>2015-07-21 23:39:33 (GMT)
commit04035fd36c9c793ab7b6e7c4513fe6a053daf5dd (patch)
tree7830bc280ef6d4c8b5b833f22c0689e3191af5f4 /arch/sandbox/include
parent3c43fba3d240a5d7b6042bfb834c274a8921ebd8 (diff)
downloadu-boot-04035fd36c9c793ab7b6e7c4513fe6a053daf5dd.tar.xz
dm: test: Add a test for the system controller uclass
Add a test to confirm that we can access system controllers and find their driver data. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include')
-rw-r--r--arch/sandbox/include/asm/test.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h
index 28e9c09..d3c7851 100644
--- a/arch/sandbox/include/asm/test.h
+++ b/arch/sandbox/include/asm/test.h
@@ -28,6 +28,14 @@ enum {
PERIPH_ID_COUNT,
};
+/* System controller driver data */
+enum {
+ SYSCON0 = 32,
+ SYSCON1,
+
+ SYSCON_COUNT
+};
+
/**
* sandbox_i2c_set_test_mode() - set test mode for running unit tests
*