f8e84013a5
Add a new instance for rockchip pinctrl to do selftest, and the userland
can set or get the iomux to one pin directly.
Build the iomux by gcc:
xx-gcc tools/testing/selftests/rkpinctrl/iomux.c -o iomux
Tested on rk3588-evb1:
[root@RK3588:/]# iomux 1 15 1
[root@RK3588:/]# iomux 1 15
mux get (GPIO1-15) = 1
[root@RK3588:/]# iomux 1 15 2
[root@RK3588:/]# iomux 1 15
mux get (GPIO1-15) = 2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ic5271b25e55e1023caa5580346ffb82fe7a4cb65
7 lines
124 B
Makefile
7 lines
124 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
CFLAGS += -static -O3 -Wl,-no-as-needed -Wall
|
|
|
|
TEST_GEN_PROGS = iomux
|
|
|
|
include ../lib.mk
|