test: Add tests for the multiplexer framework
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Fri, 16 Oct 2020 10:46:34 +0000 (16:16 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 28 Oct 2020 15:49:31 +0000 (11:49 -0400)
commit739592ccbbf6d2067e5aced1750b43a6d11fcdcf
treee7cb0b5388860556712b1d83fbecfa2208ee9b25
parent4145fc189c8a2cc279933ef57888dcf3d7aa463f
test: Add tests for the multiplexer framework

Provide tests to check the behavior of the multiplexer framework.

Two sets of tests are added. One is using an emulated multiplexer driver
that can be used to test basic functionality like select, deselect, etc.
The other is using the mmio mux which adds tests specific to it.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
configs/sandbox_defconfig
test/dm/Makefile
test/dm/mux-emul.c [new file with mode: 0644]
test/dm/mux-mmio.c [new file with mode: 0644]