Skip to content

Commit

Permalink
net: phy: add airoha en8811 driver for r3mini
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-w committed Feb 11, 2024
1 parent 03e21c9 commit de92c5e
Show file tree
Hide file tree
Showing 7 changed files with 10,200 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/eth-phy-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static int eth_phy_of_to_plat(struct udevice *dev)
return 0;
}

static void eth_phy_reset(struct udevice *dev, int value)
void eth_phy_reset(struct udevice *dev, int value)
{
struct eth_phy_device_priv *uc_priv = dev_get_uclass_priv(dev);
u32 delay;
Expand Down
28 changes: 28 additions & 0 deletions drivers/net/phy/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,34 @@ config PHY_ADIN
help
Add support for configuring RGMII on Analog Devices ADIN PHYs.

menuconfig PHY_AIROHA
bool "Airoha Ethernet PHYs support"

config PHY_AIROHA_EN8811H
bool "Airoha Ethernet EN8811H support"
depends on PHY_AIROHA
help
AIROHA EN8811H supported.

choice
prompt "Location of the Airoha PHY firmware"
default PHY_AIROHA_FW_IN_UBI
depends on PHY_AIROHA_EN8811H

config PHY_AIROHA_FW_IN_MMC
bool "Airoha firmware in MMC boot1 partition"

config PHY_AIROHA_FW_IN_UBI
bool "Airoha firmware in UBI volume en8811h-fw on NAND flash"

config PHY_AIROHA_FW_IN_MTD
bool "Airoha firmware in MTD partition on raw flash"

config PHY_AIROHA_FW_BUILTIN
bool "Airoha firmware builtin in uboot binary"

endchoice

menuconfig PHY_AQUANTIA
bool "Aquantia Ethernet PHYs support"
select PHY_GIGE
Expand Down
1 change: 1 addition & 0 deletions drivers/net/phy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ obj-$(CONFIG_MV88E6352_SWITCH) += mv88e6352.o
obj-$(CONFIG_PHYLIB) += phy.o
obj-$(CONFIG_PHYLIB_10G) += generic_10g.o
obj-$(CONFIG_PHY_ADIN) += adin.o
obj-$(CONFIG_PHY_AIROHA_EN8811H) += air_en8811h.o
obj-$(CONFIG_PHY_AQUANTIA) += aquantia.o
obj-$(CONFIG_PHY_ATHEROS) += atheros.o
obj-$(CONFIG_PHY_BROADCOM) += broadcom.o
Expand Down
Loading

0 comments on commit de92c5e

Please sign in to comment.