[PATCH 6/6] test: dm: spi: Add testcase for spi_claim_bus()

Simon Glass sjg at chromium.org
Sat Dec 12 16:39:34 CET 2020


On Sun, 6 Dec 2020 at 14:23, Ovidiu Panait <ovidiu.panait at windriver.com> wrote:
>
> Add testcase for spi_claim_bus(), which checks that sandbox spi bus
> speed/mode settings are updated correctly when multiple slaves use
> the bus consecutively. The following configurations are used for the
> two spi slaves involved:
>   * different max_hz / different modes
>   * different max_hz / same modes
>   * different modes / same max_hz
>
> asm/test.h header is added in order to be able to retrieve the current
> speed/mode of the sandbox spi bus, via sandbox_spi_get_{speed, mode}.
>
> Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com>
>
> ---
>
>  test/dm/spi.c | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 82 insertions(+)
>

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


More information about the U-Boot mailing list