diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-20 11:34:31 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-08-16 01:11:19 -0400 |
commit | 14078291d89b9a1294618b649c856f4de9ef642f (patch) | |
tree | 5cca8025e827558c18a4f6361941f5e08c2b6a44 /arch/arm/mach-imx | |
parent | 5ae90d8e467e625e447000cb4335c4db973b1095 (diff) |
ARM: i.MX6: call ksz9021 phy fixup for all i.MX6 boards
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>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6q.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 7be13f8e69a0..7f238465765f 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c | |||
@@ -139,12 +139,12 @@ put_clk: | |||
139 | clk_put(cko1); | 139 | clk_put(cko1); |
140 | } | 140 | } |
141 | 141 | ||
142 | static void __init imx6q_sabrelite_init(void) | 142 | static void __init imx6q_enet_phy_init(void) |
143 | { | 143 | { |
144 | if (IS_BUILTIN(CONFIG_PHYLIB)) | 144 | if (IS_BUILTIN(CONFIG_PHYLIB)) { |
145 | phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, | 145 | phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, |
146 | ksz9021rn_phy_fixup); | 146 | ksz9021rn_phy_fixup); |
147 | imx6q_sabrelite_cko1_setup(); | 147 | } |
148 | } | 148 | } |
149 | 149 | ||
150 | static void __init imx6q_sabresd_cko1_setup(void) | 150 | static void __init imx6q_sabresd_cko1_setup(void) |
@@ -205,11 +205,13 @@ static void __init imx6q_usb_init(void) | |||
205 | static void __init imx6q_init_machine(void) | 205 | static void __init imx6q_init_machine(void) |
206 | { | 206 | { |
207 | if (of_machine_is_compatible("fsl,imx6q-sabrelite")) | 207 | if (of_machine_is_compatible("fsl,imx6q-sabrelite")) |
208 | imx6q_sabrelite_init(); | 208 | imx6q_sabrelite_cko1_setup(); |
209 | else if (of_machine_is_compatible("fsl,imx6q-sabresd") || | 209 | else if (of_machine_is_compatible("fsl,imx6q-sabresd") || |
210 | of_machine_is_compatible("fsl,imx6dl-sabresd")) | 210 | of_machine_is_compatible("fsl,imx6dl-sabresd")) |
211 | imx6q_sabresd_init(); | 211 | imx6q_sabresd_init(); |
212 | 212 | ||
213 | imx6q_enet_phy_init(); | ||
214 | |||
213 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 215 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
214 | 216 | ||
215 | imx_anatop_init(); | 217 | imx_anatop_init(); |