]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: i.MX6: call ksz9021 phy fixup for all i.MX6 boards
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 20 Jun 2013 15:34:31 +0000 (17:34 +0200)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:53:52 +0000 (09:53 +0800)
In current U-Boot the sabrelite, nitrogen6x and titanium all need
the same fixup for the ksz9021 phy. Instead of limiting the fixup
to a single board apply them for all.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/mach-imx/mach-imx6q.c

index 633cf4234ab05ebae644b0f1c58962e10968e163..67663fdb078656279953562700cf87bfae6fb335 100644 (file)
@@ -138,12 +138,12 @@ put_clk:
                clk_put(cko1);
 }
 
-static void __init imx6q_sabrelite_init(void)
+static void __init imx6q_enet_phy_init(void)
 {
-       if (IS_BUILTIN(CONFIG_PHYLIB))
+       if (IS_BUILTIN(CONFIG_PHYLIB)) {
                phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK,
                                ksz9021rn_phy_fixup);
-       imx6q_sabrelite_cko1_setup();
+       }
 }
 
 static void __init imx6q_sabresd_cko1_setup(void)
@@ -206,11 +206,13 @@ static void __init imx6q_usb_init(void)
 static void __init imx6q_init_machine(void)
 {
        if (of_machine_is_compatible("fsl,imx6q-sabrelite"))
-               imx6q_sabrelite_init();
+               imx6q_sabrelite_cko1_setup();
        else if (of_machine_is_compatible("fsl,imx6q-sabresd") ||
                        of_machine_is_compatible("fsl,imx6dl-sabresd"))
                imx6q_sabresd_init();
 
+       imx6q_enet_phy_init();
+
        of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 
        imx_anatop_init();