[PATCH v4 8/8] firmware: smci: sandbox test for SCMI reset controllers
Simon Glass
sjg at chromium.org
Thu Sep 10 15:38:32 CEST 2020
On Wed, 9 Sep 2020 at 10:44, Etienne Carriere
<etienne.carriere at 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.carriere at linaro.org>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Sudeep Holla <sudeep.holla at 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 <sjg at chromium.org>
More information about the U-Boot
mailing list