aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-spear3xx
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-03-28 05:15:30 -0400
committerArnd Bergmann <arnd@arndb.de>2012-04-22 16:41:34 -0400
commit7477bd8f7eea54e8515fca0e6460ead374571241 (patch)
treedb21a9d2df653be21cba5b08a8c4cdf38e1e4010 /arch/arm/mach-spear3xx
parentf08472f298627f110fb596d7a94e2621dba1953d (diff)
SPEAr3xx: Add clock instance of usb hosts - ehci and ohci 0 and 1
This patch adds following clocks: "usbh.0_clk" and "usbh.1_clk". They are used by ehci and ohci drivers for SPEAr3xx usb host devices. Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Diffstat (limited to 'arch/arm/mach-spear3xx')
-rw-r--r--arch/arm/mach-spear3xx/clock.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-spear3xx/clock.c b/arch/arm/mach-spear3xx/clock.c
index 6b2cd9ba4fd9..47d4535b6f59 100644
--- a/arch/arm/mach-spear3xx/clock.c
+++ b/arch/arm/mach-spear3xx/clock.c
@@ -412,6 +412,21 @@ static struct clk usbd_clk = {
412 .recalc = &follow_parent, 412 .recalc = &follow_parent,
413}; 413};
414 414
415/* clock derived from usbh clk */
416/* usbh0 clock */
417static struct clk usbh0_clk = {
418 .flags = ALWAYS_ENABLED,
419 .pclk = &usbh_clk,
420 .recalc = &follow_parent,
421};
422
423/* usbh1 clock */
424static struct clk usbh1_clk = {
425 .flags = ALWAYS_ENABLED,
426 .pclk = &usbh_clk,
427 .recalc = &follow_parent,
428};
429
415/* clock derived from ahb clk */ 430/* clock derived from ahb clk */
416/* apb masks structure */ 431/* apb masks structure */
417static struct bus_clk_masks apb_masks = { 432static struct bus_clk_masks apb_masks = {
@@ -679,6 +694,9 @@ static struct clk_lookup spear_clk_lookups[] = {
679 /* clock derived from pll3 clk */ 694 /* clock derived from pll3 clk */
680 CLKDEV_INIT("designware_udc", NULL, &usbd_clk), 695 CLKDEV_INIT("designware_udc", NULL, &usbd_clk),
681 CLKDEV_INIT(NULL, "usbh_clk", &usbh_clk), 696 CLKDEV_INIT(NULL, "usbh_clk", &usbh_clk),
697 /* clock derived from usbh clk */
698 CLKDEV_INIT(NULL, "usbh.0_clk", &usbh0_clk),
699 CLKDEV_INIT(NULL, "usbh.1_clk", &usbh1_clk),
682 /* clock derived from ahb clk */ 700 /* clock derived from ahb clk */
683 CLKDEV_INIT(NULL, "apb_clk", &apb_clk), 701 CLKDEV_INIT(NULL, "apb_clk", &apb_clk),
684 CLKDEV_INIT("i2c_designware.0", NULL, &i2c_clk), 702 CLKDEV_INIT("i2c_designware.0", NULL, &i2c_clk),