summaryrefslogtreecommitdiff
path: root/test/dm/Makefile
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2020-09-14 18:01:57 +0300
committerTom Rini <trini@konsulko.com>2020-10-08 18:42:36 +0300
commit7f0f1806e3a474dc15b6bad806b4afa967447774 (patch)
tree67ae12ff6c548fe4c3f13177a8a4ef9b3ea781b8 /test/dm/Makefile
parent5eee93e5b1ae9b2b31db99f774e0f635ad276068 (diff)
downloadu-boot-7f0f1806e3a474dc15b6bad806b4afa967447774.tar.xz
test: pinmux: Add test for pin muxing
This extends the pinctrl-sandbox driver to support pin muxing, and adds a test for that behaviour. The test is done in C and not python (like the existing tests for the pinctrl uclass) because it needs to call pinctrl_select_state. Another option could be to add a command that invokes pinctrl_select_state and then test everything in test/py/tests/test_pinmux.py. The pinctrl-sandbox driver now mimics the way that many pinmux devices work. There are two groups of pins which are muxed together, as well as four pins which are muxed individually. I have tried to test all normal paths. However, very few error cases are explicitly checked for. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/Makefile')
-rw-r--r--test/dm/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dm/Makefile b/test/dm/Makefile
index 70ba1b6695..e2b0798388 100644
--- a/test/dm/Makefile
+++ b/test/dm/Makefile
@@ -81,4 +81,7 @@ obj-$(CONFIG_CLK_K210_SET_RATE) += k210_pll.o
obj-$(CONFIG_SIMPLE_PM_BUS) += simple-pm-bus.o
obj-$(CONFIG_RESET_SYSCON) += syscon-reset.o
obj-$(CONFIG_SCMI_FIRMWARE) += scmi.o
+ifneq ($(CONFIG_PINMUX),)
+obj-$(CONFIG_PINCONF) += pinmux.o
+endif
endif