[PATCH 2/2] firmware: scmi: fix sandbox and related test since clock discovery

Simon Glass sjg at chromium.org
Sat May 15 17:20:05 CEST 2021


On Wed, 12 May 2021 at 08:55, Etienne Carriere
<etienne.carriere at linaro.org> wrote:
>
> Since SCMI clock are discovered because of integration in the CCF,
> update SCMI emulation in sandbox accordingly. Sandbox must emulate all
> clocks exposed by SCMI server since CCF clock discovery will query all
> of them even if some clocks have no consumer. This change adds clock
> discovery support in the sandbox and changes clock IDs so that less
> clock shall be managed as each SCMI clock ID is actually an index
> identifier.
>
> For consistency, update also sandbox SCMI reset controller test to
> conform with the IDs being also indices of exposed resources as per
> SCMI specification.
>
> Signed-off-by: Etienne Carriere <etienne.carriere at linaro.org>
> ---
>  arch/sandbox/dts/test.dts                  |   4 +-
>  arch/sandbox/include/asm/scmi_test.h       |   2 -
>  drivers/firmware/scmi/sandbox-scmi_agent.c | 102 ++++++++++++++++++---
>  test/dm/scmi.c                             |  29 ++++--
>  4 files changed, 113 insertions(+), 24 deletions(-)

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


More information about the U-Boot mailing list