[U-Boot] [Uboot-stm32] [PATCH v2 1/5] dm: gpio: Add get_alternate_function ops
Patrice CHOTARD
patrice.chotard at st.com
Thu Aug 9 08:02:58 UTC 2018
Hi Simon
On 08/08/2018 11:55 AM, Simon Glass wrote:
> Hi Patrice,
>
> +Stephen and Masahiro for comment on this vs. pinctrl.
>
> On 3 August 2018 at 09:01, Patrice Chotard <patrice.chotard at st.com> wrote:
>> From: Patrick Delaunay <patrick.delaunay at st.com>
>>
>> When a pin is not configured as a GPIO, it could
>> have several alternate function.
>>
>> To be able to identify the alternate function,
>> add ops get_alternate_function() to request the pin
>> alternate function index from the driver when pin is
>> not used as gpio.
>>
>> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
>> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
>> ---
>>
>> Changes in v2:
>> - Rename get_function_number to get_alternate_function
>> in include/asm-generic/gpio.h
>>
>> drivers/gpio/gpio-uclass.c | 6 ++++++
>> include/asm-generic/gpio.h | 13 +++++++++++++
>> 2 files changed, 19 insertions(+)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> But please replace 'alternative' with 'alt' as it is shorter.
ok
Thanks
Patrice
>
> Regards,
> Simon
> _______________________________________________
> Uboot-stm32 mailing list
> Uboot-stm32 at st-md-mailman.stormreply.com
> https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32
>
More information about the U-Boot
mailing list