[LEDE-DEV] [PATCH] kernel: b53: enable port 5 on BCM53125
Jonas Gorski
jonas.gorski at gmail.com
Wed Aug 17 03:28:47 PDT 2016
Hi,
On 16 August 2016 at 16:47, Rafał Miłecki <zajec5 at gmail.com> wrote:
> From: Rafał Miłecki <rafal at milecki.pl>
>
> On all devices suppored so far BCM53125 got port 8 connected to the SoC
> interface and ports 0-4 to physical ports. On BCM53573 there is slightly
> more comlex setup. We have 2 SoC interfaces: one (eth0) connected to
> port 8 and another (eth1) connected to port 5. This change allows using
> port 5 to fully support such case. It also enables port 8 by default
> which would be added during init anyway.
>
> Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
> ---
> target/linux/generic/files/drivers/net/phy/b53/b53_common.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
> index d96d8b8..1a1be82 100644
> --- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
> +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
> @@ -1206,7 +1206,7 @@ static const struct b53_chip_data b53_switch_chips[] = {
> .dev_name = "BCM53125",
> .alias = "bcm53125",
> .vlans = 4096,
> - .enabled_ports = 0x1f,
> + .enabled_ports = 0x13f,
is there maybe some way of autodetecting this? maybe check if the
appropriate port override registers are set or so? Maybe we can use
the strap bus register for that?
> .cpu_port = B53_CPU_PORT,
> .vta_regs = B53_VTA_REGS,
> .duplex_reg = B53_DUPLEX_STAT_GE,
> --
Jonas
More information about the Lede-dev
mailing list