[][openwrt][common][eth][Add a Airoha EN8811H 2.5G PHY driver package]

[Description]
Add a Airoha EN8811H 2.5G PHY driver package.

Airoha recommends using a kernel module to load the EN8811H PHY driver.
If the user does not utilize a kernel module to load the PHY driver,
the PHY driver may have failed to download the firmware.

Without this patch, the PHY driver may not download the firmware
successfully.

[Release-log]
N/A


Change-Id: I8694aba81cd0ed6fad138bbf877568d281cb7d92
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7980789
diff --git a/target/linux/mediatek/modules.mk b/target/linux/mediatek/modules.mk
index 1b6aeb8..13f1c5c 100644
--- a/target/linux/mediatek/modules.mk
+++ b/target/linux/mediatek/modules.mk
@@ -124,3 +124,21 @@
 endef
 
 $(eval $(call KernelPackage,aquantia_aqtion))
+
+define KernelPackage/phy-air_en8811h
+  SUBMENU:=Network Devices
+  TITLE:=Airoha EN8811H PHY driver
+  DEPENDS:=@TARGET_mediatek
+  KCONFIG:= \
+	CONFIG_AIROHA_EN8811H_PHY \
+	CONFIG_AIROHA_EN8811H_PHY_DEBUGFS=y
+  FILES:= \
+	$(LINUX_DIR)/drivers/net/phy/air_en8811h.ko
+  AUTOLOAD:=$(call AutoLoad,20,air_en8811h,1)
+endef
+
+define KernelPackage/phy-air_en8811h/description
+  kernel modules for Airoha EN8811H PHY driver
+endef
+
+$(eval $(call KernelPackage,phy-air_en8811h))
diff --git a/target/linux/mediatek/mt7981/config-5.4 b/target/linux/mediatek/mt7981/config-5.4
index 1620393..ad4b48d 100644
--- a/target/linux/mediatek/mt7981/config-5.4
+++ b/target/linux/mediatek/mt7981/config-5.4
@@ -1,7 +1,7 @@
 CONFIG_64BIT=y
 CONFIG_AHCI_MTK=y
 CONFIG_AIROHA_EN8801SC_PHY=y
-CONFIG_AIROHA_EN8811H_PHY=y
+# CONFIG_AIROHA_EN8811H_PHY is not set
 CONFIG_ARCH_CLOCKSOURCE_DATA=y
 CONFIG_ARCH_DMA_ADDR_T_64BIT=y
 CONFIG_ARCH_KEEP_MEMBLOCK=y
diff --git a/target/linux/mediatek/mt7986/config-5.4 b/target/linux/mediatek/mt7986/config-5.4
index 830294f..def9f67 100644
--- a/target/linux/mediatek/mt7986/config-5.4
+++ b/target/linux/mediatek/mt7986/config-5.4
@@ -1,7 +1,7 @@
 CONFIG_64BIT=y
 CONFIG_AHCI_MTK=y
 CONFIG_AIROHA_EN8801SC_PHY=y
-CONFIG_AIROHA_EN8811H_PHY=y
+# CONFIG_AIROHA_EN8811H_PHY is not set
 CONFIG_ARCH_CLOCKSOURCE_DATA=y
 CONFIG_ARCH_DMA_ADDR_T_64BIT=y
 CONFIG_ARCH_KEEP_MEMBLOCK=y