
19 Oct
2018
19 Oct
'18
5:28 a.m.
On 9 October 2018 at 07:31, Patrice Chotard patrice.chotard@st.com wrote:
pinmux command allows to :
- list all pin-controllers available on platforms
- select a pin-controller
- display the muxing of all pins of the current pin-controller or all pin-controllers depending of given options
Signed-off-by: Patrice Chotard patrice.chotard@st.com
Changes in v3:
- Update calls to pinctrl_get_pin_name() and pinctrl_get_pin_muxing due to prototype update.
Changes in v2:
- In order to make pin muxing display less SoC specific, use pinctrl_pins_count(), pinctrl_get_pin_name() and pinctrl_get_pin_muxing() methods instead of previous pinctrl_pinmux_show() method.
cmd/Kconfig | 8 ++++ cmd/Makefile | 1 + cmd/pinmux.c | 144 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 153 insertions(+) create mode 100644 cmd/pinmux.c
Reviewed-by: Simon Glass sjg@chromium.org