[PATCH v5 2/3] sandbox, test: add test for GPIO_HOG function
Simon Glass
sjg at chromium.org
Wed May 20 05:06:57 CEST 2020
Hi Heiko,
On Fri, 15 May 2020 at 08:02, Heiko Schocher <hs at denx.de> wrote:
>
> currently gpio hog function is not tested with "ut dm gpio"
> so add some basic tests for gpio hog functionality.
>
> For this enable GPIO_HOG in sandbox_defconfig, add
> in DTS some gpio hog entries, and add testcase in
> "ut dm gpio" command.
>
> Signed-off-by: Heiko Schocher <hs at denx.de>
>
> ---
>
> Changes in v5: None
> Changes in v4:
> - rebased to current master ac14bc4169
>
> Changes in v3: None
> Changes in v2:
> - add basic gpio hog test functions
>
> arch/sandbox/dts/test.dts | 20 ++++++++++++++++++++
> configs/sandbox64_defconfig | 1 +
> configs/sandbox_defconfig | 1 +
> configs/sandbox_flattree_defconfig | 1 +
> configs/sandbox_spl_defconfig | 1 +
> test/dm/gpio.c | 23 +++++++++++++++++++++++
> 6 files changed, 47 insertions(+)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
It is OK to just enable on sandbox if you like, since we don't
normally run the bulk of the tests on the others.
More information about the U-Boot
mailing list