aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisael Lopez Cruz <misael.lopez@ti.com>2011-12-12 20:48:47 +0800
committerAndy Green <andy.green@linaro.org>2011-12-26 22:31:49 +0800
commit376d690292125b07e3549ae5b27b1bb450c67ad3 (patch)
tree68aa719737c88c93edd941dad0c2fcad63a7e651
parent907b4b5751b2777b0d846bb1746e76de607ac227 (diff)
OMAP4: McBSP: Change fclk source names per OMAP version
OMAP4 McBSP FCLK uses clock sources with different names than OMAP3. The names for the clock sources are now associated with the OMAP version. Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r--arch/arm/mach-omap2/mcbsp.c8
-rw-r--r--arch/arm/plat-omap/include/plat/mcbsp.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c
index fb4bcf81a18..3a419faad32 100644
--- a/arch/arm/mach-omap2/mcbsp.c
+++ b/arch/arm/mach-omap2/mcbsp.c
@@ -80,6 +80,8 @@ static int omap2_mcbsp_set_clk_src(struct device *dev, struct clk *clk,
else
return -EINVAL;
+/*mcbsp->pdata->clks_pad_src; ...prcm_src*/
+
fck_src = clk_get(dev, fck_src_name);
if (IS_ERR_OR_NULL(fck_src)) {
pr_err("omap-mcbsp: %s: could not clk_get() %s\n", "clks",
@@ -150,6 +152,9 @@ static int omap_init_mcbsp(struct omap_hwmod *oh, void *unused)
pdata->mux_signal = omap2_mcbsp1_mux_rx_clk;
if (oh->class->rev == MCBSP_CONFIG_TYPE3) {
+ strcpy(pdata->clks_pad_src, "pad_clks_ck");
+ strcpy(pdata->clks_prcm_src, "mcbsp2_sync_mux_ck");
+
if (id == 2)
/* The FIFO has 1024 + 256 locations */
pdata->buffer_size = 0x500;
@@ -157,6 +162,9 @@ static int omap_init_mcbsp(struct omap_hwmod *oh, void *unused)
/* The FIFO has 128 locations */
pdata->buffer_size = 0x80;
} else if (oh->class->rev == MCBSP_CONFIG_TYPE4) {
+ strcpy(pdata->clks_pad_src, "pad_clks_ck");
+ strcpy(pdata->clks_prcm_src, "mcbsp2_sync_mux_ck");
+
/* The FIFO has 128 locations for all instances */
pdata->buffer_size = 0x80;
}
diff --git a/arch/arm/plat-omap/include/plat/mcbsp.h b/arch/arm/plat-omap/include/plat/mcbsp.h
index 7cfd3d48d95..00c24cee4d2 100644
--- a/arch/arm/plat-omap/include/plat/mcbsp.h
+++ b/arch/arm/plat-omap/include/plat/mcbsp.h
@@ -304,6 +304,9 @@ struct omap_mcbsp_platform_data {
u8 reg_size;
u8 reg_step;
+ char clks_pad_src[30];
+ char clks_prcm_src[30];
+
/* McBSP platform and instance specific features */
bool has_wakeup; /* Wakeup capability */
bool has_ccr; /* Transceiver has configuration control registers */