aboutsummaryrefslogtreecommitdiff
path: root/include/phy_interface.h
diff options
context:
space:
mode:
authorAndre Przywara2022-06-08 14:56:56 +0100
committerAndre Przywara2023-10-22 23:40:56 +0100
commit5ad98c57b8dc465b7d1534203b75dc2b35440457 (patch)
treed5ce421da8f563ba328b47bbc597a5b78106a68e /include/phy_interface.h
parent091442993c0f3ac8f34d15099a207a078dc56d0c (diff)
sunxi: remove CONFIG_MACPWR
The CONFIG_MACPWR Kconfig symbol is used to point to a GPIO that enables the power for the Ethernet "MAC" (mostly PHY, really). In the DT this is described with the phy-supply property in the MAC DT node, pointing to a (GPIO controlled) regulator. Since we need Ethernet only in U-Boot proper, and use a DM driver there, we should use the DT instead of hardcoding this. Add code to the sun8i_emac and sunxi_emac drivers to check the DT for that regulator and enable it, at probe time. Then drop the current code from board.c, which was doing that job before. This allows us to remove the MACPWR Kconfig definition and the respective values from the defconfigs. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Sam Edwards <CFSworks@gmail.com>
Diffstat (limited to 'include/phy_interface.h')
0 files changed, 0 insertions, 0 deletions