]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: qcom: pass pin number to get_function_mux callback
authorVolodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Mon, 11 Mar 2024 21:33:46 +0000 (21:33 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Thu, 4 Apr 2024 15:46:45 +0000 (17:46 +0200)
commit493f069062b90e7aba3612651a064f2f313cfc68
tree11cac16b9edb0880312382ce3da6390183fc74e8
parentb563e766fe619ddfe9fb85ec05cfb9312f8fdb63
pinctrl: qcom: pass pin number to get_function_mux callback

This patch is the preparation for SM8150 support. This new SoC
depending on the particular pin can have different numbers for the
same function. For example "rgmii" function for GPIO4 has id=2 while
for GPIO59 it has id=1. So, to support this type of SoCs,
get_function_mux() callback needs to know for which pin the function
is requested.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/pinctrl/qcom/pinctrl-apq8016.c
drivers/pinctrl/qcom/pinctrl-apq8096.c
drivers/pinctrl/qcom/pinctrl-ipq4019.c
drivers/pinctrl/qcom/pinctrl-qcom.c
drivers/pinctrl/qcom/pinctrl-qcom.h
drivers/pinctrl/qcom/pinctrl-qcs404.c
drivers/pinctrl/qcom/pinctrl-sdm845.c