diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-03-27 14:13:53 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-03-27 20:20:40 +0100 |
commit | 265c3c0a64df50c0e8fe55cfe8af8851ed5feca5 (patch) | |
tree | 9ded5970664eed758885a14ab4cdd11a78889576 /arch/arm/mach-ux500/cpu-db8500.c | |
parent | 26135256d3e7d4d12c6268623edc1740888c041f (diff) | |
download | linux-265c3c0a64df50c0e8fe55cfe8af8851ed5feca5.tar.gz linux-265c3c0a64df50c0e8fe55cfe8af8851ed5feca5.tar.bz2 linux-265c3c0a64df50c0e8fe55cfe8af8851ed5feca5.zip |
ARM: ux500: Enable the clock controlling Ethernet on Snowball
This fixes a regression introduced by common clk enablement.
On some u8500 based boards, the FMSC clock which is usually used
for flash, is wired up to the SMSC911x Ethernet driver. However,
the SMSC911x doesn't have common clk support yet, rendering it
unusable. Prior to the introduction of common clk the FMSC clock
was default on; however, common clk disables all clocks by default
and insists drivers take responsibility to enable theirs.
This fix enables the FMSC clock on Snowball, subsequently turning
on the SMSC911x Ethernet chip. It will be removed when the driver
is compatible with common clk.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500/cpu-db8500.c')
-rw-r--r-- | arch/arm/mach-ux500/cpu-db8500.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index 19235cf7bbe3..f1a581844372 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c @@ -312,9 +312,10 @@ static void __init u8500_init_machine(void) /* Pinmaps must be in place before devices register */ if (of_machine_is_compatible("st-ericsson,mop500")) mop500_pinmaps_init(); - else if (of_machine_is_compatible("calaosystems,snowball-a9500")) + else if (of_machine_is_compatible("calaosystems,snowball-a9500")) { snowball_pinmaps_init(); - else if (of_machine_is_compatible("st-ericsson,hrefv60+")) + mop500_snowball_ethernet_clock_enable(); + } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) hrefv60_pinmaps_init(); else if (of_machine_is_compatible("st-ericsson,ccu9540")) {} /* TODO: Add pinmaps for ccu9540 board. */ |