net: sun8i-emac: Determine pinmux based on SoC, not EMAC type
authorAndre Przywara <andre.przywara@arm.com>
Mon, 11 Jan 2021 20:11:49 +0000 (21:11 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 31 Jan 2021 23:55:56 +0000 (23:55 +0000)
commiteb5a2b6710750d5ae002e7bf3dbec2c6ce2a17d8
tree2c221219f2ea2a1984539830b85c7b9c79238316
parentb14e520517cc0f5bdababfb1cc2909f228437d53
net: sun8i-emac: Determine pinmux based on SoC, not EMAC type

The pinmux choice for the RMII/RGMII pins the EMAC is connected to is
not dependent on the EMAC IP, but on the SoC it is integrated in.
Deriving the pinmux from the DT compatible string (as we do at the
moment) will thus cause problems with certain EMAC IP / SoC combinations.

To avoid this exact issue with the H616, let's use our Kconfig MACH
symbols to choose the correct pinmux setup.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Jernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
drivers/net/sun8i_emac.c