net: dsa: felix: attempt to initialize internal hsio plls
authorColin Foster <colin.foster@in-advantage.com>
Fri, 17 Mar 2023 18:54:12 +0000 (11:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Mar 2023 09:08:48 +0000 (09:08 +0000)
The VSC7512 and VSC7514 have internal PLLs that can be used to control
different peripherals. Initialize these high speed I/O (HSIO) PLLs when
they exist, so that dependent peripherals like QSGMII can function.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c

index d4cc9e60f369f31e8048b7773e8acc986705006b..21dcb9cadc12cfb09db9f55453545c3e8af53452 100644 (file)
@@ -1555,6 +1555,9 @@ static int felix_setup(struct dsa_switch *ds)
        if (err)
                return err;
 
+       if (ocelot->targets[HSIO])
+               ocelot_pll5_init(ocelot);
+
        err = ocelot_init(ocelot);
        if (err)
                goto out_mdiobus_free;