cmd: pinmux: Add pinmux command

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>
cmd: pinmux: Fix pinmux command

if "pinmux status" command is used without having
set dev using "pinmux dev", print pinmux usage
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Patrice Chotard
2018-10-24 14:10:17 +02:00
committed by Tom Rini
parent 37b596ac5c
commit d5a8313905
4 changed files with 158 additions and 0 deletions

View File

@@ -6,6 +6,9 @@
#ifndef __PINCTRL_H
#define __PINCTRL_H
#define PINNAME_SIZE 10
#define PINMUX_SIZE 40
/**
* struct pinconf_param - pin config parameters
*