[U-Boot] [PATCH v4 05/11] cmd: pinmux: Add pinmux command

Simon Glass sjg at chromium.org
Sat Nov 3 06:07:35 UTC 2018


On 24 October 2018 at 06:10, Patrice Chotard <patrice.chotard at 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 at st.com>
> cmd: pinmux: Fix pinmux command
>
> if "pinmux status" command is used without having
> set dev using "pinmux dev", print pinmux usage
>
> ---
>
> Changes in v4:
>  - Update test return value of pinctrl_get_pin_muxing() due to ops get_pin_muxing()
>    prototype update
>  - Move defines PINNAME_SIZE and PINMUX_SIZE into include/dm/pinctrl.h in
>    order to be used by pinctrl driver
>  - Hardened test on argc value to avoid core dump during sandbox testing
>
> 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         | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/dm/pinctrl.h |   3 ++
>  4 files changed, 158 insertions(+)
>  create mode 100644 cmd/pinmux.c

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list