[PATCH v3 8/8] firmware: smci: sandbox test for SCMI reset controllers

Simon Glass sjg at chromium.org
Tue Sep 8 17:21:00 CEST 2020


Hi Etienne,

On Mon, 7 Sep 2020 at 08:50, 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 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 |  30 ++++-
>  test/dm/scmi.c                               |  35 ++++++
>  6 files changed, 200 insertions(+), 6 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>

Similar comment to the other patch about putting the BSS data in a
struct allocated by driver-private data.

Regards,
SImon


More information about the U-Boot mailing list