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>
This commit is contained in:
Simon Glass
2015-07-06 12:54:35 -06:00
parent 3c43fba3d2
commit 04035fd36c
7 changed files with 79 additions and 0 deletions

View File

@@ -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
*