[U-Boot] [PATCH v9 32/49] dm: pinctrl: Add a way for a GPIO driver to obtain a pin function

Simon Glass sjg at chromium.org
Fri Jan 22 16:18:35 CET 2016


On 21 January 2016 at 19:43, Simon Glass <sjg at chromium.org> wrote:
> GPIO drivers want to be able to show if a pin is enabled for input, output,
> or is being used by another function. Some drivers can easily find this
> and the code is included in the driver. For some SoCs this is more complex.
> Conceptually this should be handled by pinctrl rather than GPIO. Most
> pinctrl drivers will have this feature anyway.
>
> Add a method by which a GPIO driver can obtain the pin mux value given a
> GPIO reference. This avoids repeating the code in two places.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v9: None
> Changes in v2: None
>
>  drivers/pinctrl/pinctrl-uclass.c | 10 ++++++++++
>  include/dm/pinctrl.h             | 32 ++++++++++++++++++++++++++++++++
>  2 files changed, 42 insertions(+)

Applied to u-boot-rockchip.


More information about the U-Boot mailing list