[U-Boot] [PATCH 00/18] dm: test: Add test code for new uclasses
Simon Glass
sjg at chromium.org
Mon Jul 6 20:54:21 CEST 2015
Several new uclasses have been written and we need tests for these before
they can be merged. This series adds the test code.
Simon Glass (18):
dm: Add platform data advice and admonishment
dm: test: Allow test names to leave out the dm_test_ prefix
dm: test: Add tests for the clk uclass
dm: test: Add tests for the pinctrl uclass
sandbox: Support multiple reset types
dm: reset: Allow reset_walk() to return
sandbox: Add a warm and cold reset driver
sandbox: Use the reset driver to handle reset
dm: test: Add a test for the reset uclass
dm: test: Add a test for the ram uclass
dm: test: Add a test for the mmc uclass
led: Return -ENODEV if the LED device cannot be found
dm: test: Add a test for the LED uclass
dm: test: Add a test for the system controller uclass
dm: test: Add a size to each reg property
test: Add a macro to check that a value is not an error pointer
dm: core: Add device checking to syscon_get_regmap()
test: Add a test for regmap
arch/sandbox/cpu/cpu.c | 9 +--
arch/sandbox/cpu/state.c | 4 ++
arch/sandbox/dts/test.dts | 76 ++++++++++++++++++++---
arch/sandbox/include/asm/state.h | 3 +
arch/sandbox/include/asm/test.h | 19 ++++++
arch/sandbox/include/asm/u-boot-sandbox.h | 3 +
configs/sandbox_defconfig | 8 +++
doc/driver-model/README.txt | 17 ++++-
drivers/clk/Makefile | 1 +
drivers/clk/clk_sandbox.c | 85 +++++++++++++++++++++++++
drivers/core/syscon-uclass.c | 7 ++-
drivers/led/led-uclass.c | 5 +-
drivers/led/led_gpio.c | 6 ++
drivers/misc/Makefile | 2 +
drivers/misc/reset-uclass.c | 31 +++++++--
drivers/misc/reset_sandbox.c | 100 ++++++++++++++++++++++++++++++
drivers/misc/syscon_sandbox.c | 27 ++++++++
drivers/mmc/Makefile | 1 +
drivers/mmc/sandbox_mmc.c | 25 ++++++++
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/pinctrl_sandbox.c | 80 ++++++++++++++++++++++++
drivers/ram/Makefile | 1 +
drivers/ram/sandbox_ram.c | 38 ++++++++++++
include/dm/platdata.h | 9 +++
include/dt-bindings/clock/sandbox-clk.h | 10 +++
include/led.h | 2 +-
include/reset.h | 11 +++-
include/test/ut.h | 15 +++++
test/dm/Makefile | 8 +++
test/dm/clk.c | 59 ++++++++++++++++++
test/dm/led.c | 72 +++++++++++++++++++++
test/dm/mmc.c | 27 ++++++++
test/dm/pinctrl.c | 63 +++++++++++++++++++
test/dm/ram.c | 28 +++++++++
test/dm/regmap.c | 82 ++++++++++++++++++++++++
test/dm/reset.c | 74 ++++++++++++++++++++++
test/dm/syscon.c | 31 +++++++++
test/dm/test-main.c | 15 ++++-
38 files changed, 1021 insertions(+), 34 deletions(-)
create mode 100644 drivers/clk/clk_sandbox.c
create mode 100644 drivers/misc/reset_sandbox.c
create mode 100644 drivers/misc/syscon_sandbox.c
create mode 100644 drivers/mmc/sandbox_mmc.c
create mode 100644 drivers/pinctrl/pinctrl_sandbox.c
create mode 100644 drivers/ram/sandbox_ram.c
create mode 100644 include/dt-bindings/clock/sandbox-clk.h
create mode 100644 test/dm/clk.c
create mode 100644 test/dm/led.c
create mode 100644 test/dm/mmc.c
create mode 100644 test/dm/pinctrl.c
create mode 100644 test/dm/ram.c
create mode 100644 test/dm/regmap.c
create mode 100644 test/dm/reset.c
create mode 100644 test/dm/syscon.c
--
2.4.3.573.g4eafbef
More information about the U-Boot
mailing list