On Wed, 9 Sep 2020 at 10:44, Etienne Carriere <etienne.carri...@linaro.org> wrote: > > Add tests for SCMI reset controllers. A test device driver > sandbox-scmi_devices.c is used to get reset resources, allowing further > resets manipulation. > > Change sandbox-smci_agent to emulate 1 reset controller exposed through > an agent. Add DM test scmi_resets to test this reset controller. > > Signed-off-by: Etienne Carriere <etienne.carri...@linaro.org> > Cc: Simon Glass <s...@chromium.org> > Cc: Peng Fan <peng....@nxp.com> > Cc: Sudeep Holla <sudeep.ho...@arm.com> > --- > > Changes in v4: > - Rebase in the series without major conflict. > - Rename test/dm/scmi.c local variables rc to ret for consistency. > > Changes in v3: > - New commit in the series, addresses review comments on test support. > ut_dm_scmi_resets() tests SCMI resources are found and behave as > expected for the implemented reset uclass methods. > --- > arch/sandbox/dts/test.dts | 6 + > arch/sandbox/include/asm/scmi_test.h | 17 +++ > configs/sandbox_defconfig | 1 + > drivers/firmware/scmi/sandbox-scmi_agent.c | 117 ++++++++++++++++++- > drivers/firmware/scmi/sandbox-scmi_devices.c | 40 ++++++- > test/dm/scmi.c | 36 ++++++ > 6 files changed, 211 insertions(+), 6 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org>