aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAnji jonnala <anjir@codeaurora.org>2011-05-04 00:49:46 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-06 21:27:48 -0400
commit0f73cac8e41723d600c91a0f5b481dc3202f4f82 (patch)
tree23d6bbcbe623c6bc5863149935724614ef1f248c /include
parent3db7739c80990ef53621f76f6095a91e70d88546 (diff)
USB: OTG: msm: vote for dayatona fabric clock
HSUSB core clock is derived from daytona fabric clock and for HSUSB operational require minimum core clock at 55MHz. Since, HSUSB cannot tolerate daytona fabric clock change in the middle of HSUSB operational, vote for maximum Daytona fabric clock while usb is operational Signed-off-by: Anji jonnala <anjir@codeaurora.org> Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/msm_hsusb.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/usb/msm_hsusb.h b/include/linux/usb/msm_hsusb.h
index 3657403eac18..31ef1853f93c 100644
--- a/include/linux/usb/msm_hsusb.h
+++ b/include/linux/usb/msm_hsusb.h
@@ -64,7 +64,8 @@ enum otg_control_type {
64 * @otg_control: OTG switch controlled by user/Id pin 64 * @otg_control: OTG switch controlled by user/Id pin
65 * @default_mode: Default operational mode. Applicable only if 65 * @default_mode: Default operational mode. Applicable only if
66 * OTG switch is controller by user. 66 * OTG switch is controller by user.
67 * 67 * @pclk_src_name: pclk is derived from ebi1_usb_clk in case of 7x27 and 8k
68 * dfab_usb_hs_clk in case of 8660 and 8960.
68 */ 69 */
69struct msm_otg_platform_data { 70struct msm_otg_platform_data {
70 int *phy_init_seq; 71 int *phy_init_seq;
@@ -74,6 +75,7 @@ struct msm_otg_platform_data {
74 enum otg_control_type otg_control; 75 enum otg_control_type otg_control;
75 enum usb_mode_type default_mode; 76 enum usb_mode_type default_mode;
76 void (*setup_gpio)(enum usb_otg_state state); 77 void (*setup_gpio)(enum usb_otg_state state);
78 char *pclk_src_name;
77}; 79};
78 80
79/** 81/**
@@ -83,6 +85,7 @@ struct msm_otg_platform_data {
83 * @irq: IRQ number assigned for HSUSB controller. 85 * @irq: IRQ number assigned for HSUSB controller.
84 * @clk: clock struct of usb_hs_clk. 86 * @clk: clock struct of usb_hs_clk.
85 * @pclk: clock struct of usb_hs_pclk. 87 * @pclk: clock struct of usb_hs_pclk.
88 * @pclk_src: pclk source for voting.
86 * @phy_reset_clk: clock struct of usb_phy_clk. 89 * @phy_reset_clk: clock struct of usb_phy_clk.
87 * @core_clk: clock struct of usb_hs_core_clk. 90 * @core_clk: clock struct of usb_hs_core_clk.
88 * @regs: ioremapped register base address. 91 * @regs: ioremapped register base address.
@@ -90,7 +93,6 @@ struct msm_otg_platform_data {
90 * @sm_work: OTG state machine work. 93 * @sm_work: OTG state machine work.
91 * @in_lpm: indicates low power mode (LPM) state. 94 * @in_lpm: indicates low power mode (LPM) state.
92 * @async_int: Async interrupt arrived. 95 * @async_int: Async interrupt arrived.
93 *
94 */ 96 */
95struct msm_otg { 97struct msm_otg {
96 struct otg_transceiver otg; 98 struct otg_transceiver otg;
@@ -98,6 +100,7 @@ struct msm_otg {
98 int irq; 100 int irq;
99 struct clk *clk; 101 struct clk *clk;
100 struct clk *pclk; 102 struct clk *pclk;
103 struct clk *pclk_src;
101 struct clk *phy_reset_clk; 104 struct clk *phy_reset_clk;
102 struct clk *core_clk; 105 struct clk *core_clk;
103 void __iomem *regs; 106 void __iomem *regs;