diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/board-omap4panda.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index b43e3ff9adec..613bdd89bcfa 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
22 | #include <linux/clk.h> | ||
22 | #include <linux/io.h> | 23 | #include <linux/io.h> |
23 | #include <linux/leds.h> | 24 | #include <linux/leds.h> |
24 | #include <linux/gpio.h> | 25 | #include <linux/gpio.h> |
@@ -95,7 +96,16 @@ static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | |||
95 | static void __init omap4_ehci_init(void) | 96 | static void __init omap4_ehci_init(void) |
96 | { | 97 | { |
97 | int ret; | 98 | int ret; |
99 | struct clk *phy_ref_clk; | ||
98 | 100 | ||
101 | /* FREF_CLK3 provides the 19.2 MHz reference clock to the PHY */ | ||
102 | phy_ref_clk = clk_get(NULL, "auxclk3_ck"); | ||
103 | if (IS_ERR(phy_ref_clk)) { | ||
104 | pr_err("Cannot request auxclk3\n"); | ||
105 | goto error1; | ||
106 | } | ||
107 | clk_set_rate(phy_ref_clk, 19200000); | ||
108 | clk_enable(phy_ref_clk); | ||
99 | 109 | ||
100 | /* disable the power to the usb hub prior to init */ | 110 | /* disable the power to the usb hub prior to init */ |
101 | ret = gpio_request(GPIO_HUB_POWER, "hub_power"); | 111 | ret = gpio_request(GPIO_HUB_POWER, "hub_power"); |