diff options
author | Richard Zhao <richard.zhao@freescale.com> | 2012-04-27 03:02:59 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-05-11 03:17:55 -0400 |
commit | 071dea508f72e879041bd68b56aad41befb2dd45 (patch) | |
tree | ffc8de7b7e3dca843cdd6f89dde63a699e782a11 /arch/arm/mach-imx/mach-imx6q.c | |
parent | f07439c43252c3c2e669a5ee3762f4559179828d (diff) |
ARM: imx6q: move imx6q_sabrelite specific code to a dedicated function
It'll be easier to add other board specific code.
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6q.c')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6q.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 512c18da6b9c..706e45c2a839 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c | |||
@@ -75,11 +75,16 @@ static int ksz9021rn_phy_fixup(struct phy_device *phydev) | |||
75 | return 0; | 75 | return 0; |
76 | } | 76 | } |
77 | 77 | ||
78 | static void __init imx6q_sabrelite_init(void) | ||
79 | { | ||
80 | phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, | ||
81 | ksz9021rn_phy_fixup); | ||
82 | } | ||
83 | |||
78 | static void __init imx6q_init_machine(void) | 84 | static void __init imx6q_init_machine(void) |
79 | { | 85 | { |
80 | if (of_machine_is_compatible("fsl,imx6q-sabrelite")) | 86 | if (of_machine_is_compatible("fsl,imx6q-sabrelite")) |
81 | phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, | 87 | imx6q_sabrelite_init(); |
82 | ksz9021rn_phy_fixup); | ||
83 | 88 | ||
84 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 89 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
85 | 90 | ||