diff options
| author | Samuel Holland <[email protected]> | 2021-08-28 13:22:41 -0500 |
|---|---|---|
| committer | Andre Przywara <[email protected]> | 2022-04-04 23:24:16 +0100 |
| commit | 12bd00aafc5a0848d21dbc096b6481d62bba976c (patch) | |
| tree | 837719e9a570e27e01b170a0e690d27ac2f63752 /drivers/net | |
| parent | fcdbbd68d389e9696e707706917b72c21f9f946b (diff) | |
net: sunxi_emac: Remove non-DM pin setup
This is now handled automatically by the pinctrl driver.
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/sunxi_emac.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index 17ad88e732e..d15b0add7c9 100644 --- a/drivers/net/sunxi_emac.c +++ b/drivers/net/sunxi_emac.c @@ -17,7 +17,6 @@ #include <net.h> #include <asm/io.h> #include <asm/arch/clock.h> -#include <asm/arch/gpio.h> /* EMAC register */ struct emac_regs { @@ -511,15 +510,11 @@ static int sunxi_emac_board_setup(struct udevice *dev, struct sunxi_sramc_regs *sram = (struct sunxi_sramc_regs *)SUNXI_SRAMC_BASE; struct emac_regs *regs = priv->regs; - int pin, ret; + int ret; /* Map SRAM to EMAC */ setbits_le32(&sram->ctrl1, 0x5 << 2); - /* Configure pin mux settings for MII Ethernet */ - for (pin = SUNXI_GPA(0); pin <= SUNXI_GPA(17); pin++) - sunxi_gpio_set_cfgpin(pin, SUNXI_GPA_EMAC); - /* Set up clock gating */ ret = clk_enable(&priv->clk); if (ret) { |
