[U-Boot] [PATCH v1 1/5] dm: pinctrl: Add pinmux_show() ops
Patrice CHOTARD
patrice.chotard at st.com
Thu Sep 27 16:19:33 UTC 2018
Hi Simon
On 09/26/2018 07:42 AM, Simon Glass wrote:
> Hi Patrice,
>
> On 20 September 2018 at 07:37, Patrice Chotard <patrice.chotard at st.com> wrote:
>> pinmux_show() allows to display the muxing of all pins
>> belonging to a pin-controller
>>
>> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
>> ---
>>
>> drivers/pinctrl/pinctrl-uclass.c | 10 ++++++++++
>> include/dm/pinctrl.h | 29 +++++++++++++++++++++++++++++
>> 2 files changed, 39 insertions(+)
>>
>
> If you look at this pinctrl method:
>
> const char *(*get_pin_name)(struct udevice *dev, unsigned selector);
>
> you can see that we can specify particular pins. Can we have the
> command discover what pins are available and iterate over them? Then
> we can have a function which returns the status of a particular pin as
> a string, and the command can output it. Perhaps like cpu_get_desc()?
Understand, i will rework this series following this way of doing.
Thanks
Patrice
>
> Regards,
> Simon
>
More information about the U-Boot
mailing list