]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: remove CONFIG_MACPWR
authorAndre Przywara <andre.przywara@arm.com>
Wed, 8 Jun 2022 13:56:56 +0000 (14:56 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 22 Oct 2023 22:40:56 +0000 (23:40 +0100)
commit5ad98c57b8dc465b7d1534203b75dc2b35440457
treed5ce421da8f563ba328b47bbc597a5b78106a68e
parent091442993c0f3ac8f34d15099a207a078dc56d0c
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>
26 files changed:
arch/arm/mach-sunxi/Kconfig
board/sunxi/board.c
configs/Bananapi_M2_Ultra_defconfig
configs/Bananapi_defconfig
configs/Bananapro_defconfig
configs/Lamobo_R1_defconfig
configs/Mele_A1000_defconfig
configs/Orangepi_defconfig
configs/Orangepi_mini_defconfig
configs/bananapi_m1_plus_defconfig
configs/bananapi_m2_plus_h3_defconfig
configs/bananapi_m2_plus_h5_defconfig
configs/i12-tvbox_defconfig
configs/jesurun_q5_defconfig
configs/mixtile_loftq_defconfig
configs/nanopi_m1_plus_defconfig
configs/nanopi_neo_plus2_defconfig
configs/nanopi_r1s_h5_defconfig
configs/orangepi_pc2_defconfig
configs/orangepi_plus2e_defconfig
configs/orangepi_plus_defconfig
configs/orangepi_win_defconfig
configs/pine_h64_defconfig
configs/zeropi_defconfig
drivers/net/sun8i_emac.c
drivers/net/sunxi_emac.c