ath79: use rtl8366s and rtl8366_smi as a module
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Wed, 27 Apr 2022 17:58:33 +0000 (14:58 -0300)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 1 Jul 2022 18:22:53 +0000 (20:22 +0200)
rtl8366s is used only by dlink_dir-825-b1 and the netgear_wndr family
(wndr3700, wndr3700-v2, wndr3800ch, wndr3800.dts, wndrmac-v1,
wndrmac-v2).

Not tested in real hardware.

With rtl8366rb, rtl8366s, rtl8367 as modules, rtl8366_smi can also be a
loadable module. This change was tested with tl-wr2543-v1.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
target/linux/ath79/generic/config-default
target/linux/ath79/image/generic.mk

index 3b986f662076cfd64d37b8a204ea893d1fa8a9f9..dd59a354900eebdb09478e89e49ac6a51f901192 100644 (file)
@@ -19,7 +19,5 @@ CONFIG_PHY_AR7100_USB=y
 CONFIG_PHY_AR7200_USB=y
 CONFIG_REALTEK_PHY=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
-CONFIG_RTL8366S_PHY=y
-CONFIG_RTL8366_SMI=y
 CONFIG_VITESSE_PHY=y
 CONFIG_WATCHDOG_CORE=y
index 4cc89a4b97b10d3a36f0a908467699da738530b4..7442a0f68cbeb3108d44ca8908198681e8fb8e08 100644 (file)
@@ -998,7 +998,7 @@ define Device/dlink_dir-825-b1
   IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
        check-size | append-metadata
   DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
-       kmod-leds-reset kmod-owl-loader
+       kmod-leds-reset kmod-owl-loader kmod-switch-rtl8366s
   SUPPORTED_DEVICES += dir-825-b1
 endef
 TARGET_DEVICES += dlink_dir-825-b1
@@ -1709,7 +1709,7 @@ define Device/netgear_wndr3x00
   $(Device/netgear_generic)
   SOC := ar7161
   DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
-       kmod-leds-reset kmod-owl-loader
+       kmod-leds-reset kmod-owl-loader kmod-switch-rtl8366s
 endef
 
 define Device/netgear_wndr3700