From: Aleksander Jan Bajkowski Date: Sat, 17 Dec 2022 23:26:19 +0000 (+0100) Subject: bcm47xx: enable adm6996 only on legacy subtarget X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=11c28cfceb5ec3cf734a155b45e5fb389e8fd422;p=openwrt%2Fstaging%2Fblogic.git bcm47xx: enable adm6996 only on legacy subtarget The generic subtarget supports only a few devices. None of these devices are equipped with a ADM6996 switch. On the mips74k subtarget, the driver for the adm6996 switch is disabled. So it seems that the ADM6996 driver should be enabled only on the legacy subtarget. Support for ADM6996 switches was enabled in commit 68081fc1c8c7814b1c064431eb2e364f9226801a. At the time when this driver was enabled the bcm47xx target had only one subtarget. Switches used by individual devices suported by the generic subtarget are listed below. Device Switch Edimax PS-1208MFG int. SoC Linksys WRT300N v1.1 Broadcom BCM5325 Linksys WRT310N v1 Broadcom BCM5397 Linksys WRT350N v1 Broadcom BCM5397 Linksys WRT610N v1 Broadcom BCM53115 Linksys WRT610N v2 Broadcom BCM53115 Linksys E3000 v1 Broadcom BCM53115 Reduce uncompressed kernel size by 8320 Bytes. Signed-off-by: Aleksander Jan Bajkowski --- diff --git a/target/linux/bcm47xx/config-5.10 b/target/linux/bcm47xx/config-5.10 index 31d6d1de3900..bee300d9c021 100644 --- a/target/linux/bcm47xx/config-5.10 +++ b/target/linux/bcm47xx/config-5.10 @@ -1,4 +1,3 @@ -CONFIG_ADM6996_PHY=y CONFIG_ARCH_BINFMT_ELF_STATE=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_ARCH_DISCARD_MEMBLOCK=y diff --git a/target/linux/bcm47xx/config-5.15 b/target/linux/bcm47xx/config-5.15 index 0714c9a57c62..6f091c0e7fe0 100644 --- a/target/linux/bcm47xx/config-5.15 +++ b/target/linux/bcm47xx/config-5.15 @@ -1,4 +1,3 @@ -CONFIG_ADM6996_PHY=y CONFIG_ARCH_32BIT_OFF_T=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_KEEP_MEMBLOCK=y diff --git a/target/linux/bcm47xx/legacy/config-default b/target/linux/bcm47xx/legacy/config-default index 4cd487e74cee..b80b03b5cb70 100644 --- a/target/linux/bcm47xx/legacy/config-default +++ b/target/linux/bcm47xx/legacy/config-default @@ -1,3 +1,4 @@ +CONFIG_ADM6996_PHY=y CONFIG_B44=y CONFIG_B44_PCI=y CONFIG_B44_PCICORE_AUTOSELECT=y diff --git a/target/linux/bcm47xx/mips74k/config-default b/target/linux/bcm47xx/mips74k/config-default index 96aecf0aa66e..3ba49507d422 100644 --- a/target/linux/bcm47xx/mips74k/config-default +++ b/target/linux/bcm47xx/mips74k/config-default @@ -1,4 +1,3 @@ -# CONFIG_ADM6996_PHY is not set # CONFIG_BCM47XX_SSB is not set CONFIG_BGMAC=y CONFIG_BGMAC_BCMA=y