[openwrt/openwrt] bcm47xx: enable adm6996 only on legacy subtarget

LEDE Commits lede-commits at lists.infradead.org
Sun Mar 26 16:50:35 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/11c28cfceb5ec3cf734a155b45e5fb389e8fd422

commit 11c28cfceb5ec3cf734a155b45e5fb389e8fd422
Author: Aleksander Jan Bajkowski <olek2 at wp.pl>
AuthorDate: Sun Dec 18 00:26:19 2022 +0100

    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 <olek2 at wp.pl>
---
 target/linux/bcm47xx/config-5.10            | 1 -
 target/linux/bcm47xx/config-5.15            | 1 -
 target/linux/bcm47xx/legacy/config-default  | 1 +
 target/linux/bcm47xx/mips74k/config-default | 1 -
 4 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/target/linux/bcm47xx/config-5.10 b/target/linux/bcm47xx/config-5.10
index 31d6d1de39..bee300d9c0 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 0714c9a57c..6f091c0e7f 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 4cd487e74c..b80b03b5cb 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 96aecf0aa6..3ba49507d4 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




More information about the lede-commits mailing list