]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pinctrl: sunxi: Add sun4i EMAC pinmuxes
authorSamuel Holland <samuel@sholland.org>
Sat, 28 Aug 2021 18:21:36 +0000 (13:21 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 4 Apr 2022 22:24:16 +0000 (23:24 +0100)
Pin lists and mux values were taken from the Linux drivers.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/pinctrl/sunxi/pinctrl-sunxi.c

index 4c638f1ec81ff84a8c5d5adee4d36f381c9aaaaa..ce7119931daac874ee25d5163be0e04fcf3930af 100644 (file)
@@ -250,6 +250,7 @@ static const struct sunxi_pinctrl_desc __maybe_unused suniv_f1c100s_pinctrl_desc
 };
 
 static const struct sunxi_pinctrl_function sun4i_a10_pinctrl_functions[] = {
+       { "emac",       2 },    /* PA0-PA17 */
        { "gpio_in",    0 },
        { "gpio_out",   1 },
 #if IS_ENABLED(CONFIG_UART0_PORT_F)
@@ -267,6 +268,7 @@ static const struct sunxi_pinctrl_desc __maybe_unused sun4i_a10_pinctrl_desc = {
 };
 
 static const struct sunxi_pinctrl_function sun5i_a13_pinctrl_functions[] = {
+       { "emac",       2 },    /* PA0-PA17 */
        { "gpio_in",    0 },
        { "gpio_out",   1 },
 #if IS_ENABLED(CONFIG_UART0_PORT_F)
@@ -315,6 +317,7 @@ static const struct sunxi_pinctrl_desc __maybe_unused sun6i_a31_r_pinctrl_desc =
 };
 
 static const struct sunxi_pinctrl_function sun7i_a20_pinctrl_functions[] = {
+       { "emac",       2 },    /* PA0-PA17 */
        { "gpio_in",    0 },
        { "gpio_out",   1 },
 #if IS_ENABLED(CONFIG_UART0_PORT_F)