diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2011-02-23 12:37:42 -0500 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2011-02-28 15:40:17 -0500 |
commit | bd32344a6baa8baac9c2b3e9c6c649cc4ed53920 (patch) | |
tree | 0b272cc0ea1e7dae1d86fd5ea43de78264000eac /arch/arm/mach-msm/devices-msm7x30.c | |
parent | 2a52220c89e02423aa23e6b9fb6dc0c706465a82 (diff) |
msm: clock: Migrate to clkdev
Migrating to clkdev has several advantages:
* Less code in mach-msm/clock.c
* A more robust clk_get() implementation
* clk_add_alias() support
* clk_get_sys() support
In general, this will help board authors setup clock aliases and
break the dependency on device pointers in the clock tables.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/devices-msm7x30.c')
-rw-r--r-- | arch/arm/mach-msm/devices-msm7x30.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-msm/devices-msm7x30.c b/arch/arm/mach-msm/devices-msm7x30.c index cd4343bcf730..09b4f1403824 100644 --- a/arch/arm/mach-msm/devices-msm7x30.c +++ b/arch/arm/mach-msm/devices-msm7x30.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | 18 | ||
19 | #include <linux/dma-mapping.h> | 19 | #include <linux/dma-mapping.h> |
20 | #include <linux/clkdev.h> | ||
20 | #include <mach/irqs.h> | 21 | #include <mach/irqs.h> |
21 | #include <mach/msm_iomap.h> | 22 | #include <mach/msm_iomap.h> |
22 | #include <mach/dma.h> | 23 | #include <mach/dma.h> |
@@ -129,7 +130,7 @@ struct platform_device msm_device_hsusb_host = { | |||
129 | }, | 130 | }, |
130 | }; | 131 | }; |
131 | 132 | ||
132 | struct clk msm_clocks_7x30[] = { | 133 | struct clk_lookup msm_clocks_7x30[] = { |
133 | CLK_PCOM("adm_clk", ADM_CLK, NULL, 0), | 134 | CLK_PCOM("adm_clk", ADM_CLK, NULL, 0), |
134 | CLK_PCOM("adsp_clk", ADSP_CLK, NULL, 0), | 135 | CLK_PCOM("adsp_clk", ADSP_CLK, NULL, 0), |
135 | CLK_PCOM("cam_m_clk", CAM_M_CLK, NULL, 0), | 136 | CLK_PCOM("cam_m_clk", CAM_M_CLK, NULL, 0), |
@@ -181,7 +182,7 @@ struct clk msm_clocks_7x30[] = { | |||
181 | CLK_7X30S("tv_src_clk", TV_CLK, TV_ENC_CLK, NULL, 0), | 182 | CLK_7X30S("tv_src_clk", TV_CLK, TV_ENC_CLK, NULL, 0), |
182 | CLK_PCOM("tv_dac_clk", TV_DAC_CLK, NULL, 0), | 183 | CLK_PCOM("tv_dac_clk", TV_DAC_CLK, NULL, 0), |
183 | CLK_PCOM("tv_enc_clk", TV_ENC_CLK, NULL, 0), | 184 | CLK_PCOM("tv_enc_clk", TV_ENC_CLK, NULL, 0), |
184 | CLK_PCOM("uart_clk", UART2_CLK, &msm_device_uart2.dev, 0), | 185 | CLK_PCOM("uart_clk", UART2_CLK, "msm_serial.1", 0), |
185 | CLK_PCOM("usb_phy_clk", USB_PHY_CLK, NULL, 0), | 186 | CLK_PCOM("usb_phy_clk", USB_PHY_CLK, NULL, 0), |
186 | CLK_PCOM("usb_hs_clk", USB_HS_CLK, NULL, OFF), | 187 | CLK_PCOM("usb_hs_clk", USB_HS_CLK, NULL, OFF), |
187 | CLK_PCOM("usb_hs_pclk", USB_HS_P_CLK, NULL, OFF), | 188 | CLK_PCOM("usb_hs_pclk", USB_HS_P_CLK, NULL, OFF), |