From: Jarkko Nikula <jarkko.nikula@nokia.com>
To: "ext Hunter, Jon" <jon-hunter@ti.com>
Cc: ext Tony Lindgren <tony@atomide.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] OMAP5912: Fix omap5912 osk alsa driver [1/2]
Date: Fri, 15 Aug 2008 11:12:16 +0300 [thread overview]
Message-ID: <20080815111216.5dcf2a0d.jarkko.nikula@nokia.com> (raw)
In-Reply-To: <7B4574D56E4ADF438756313E9A172A870D6651CF@dlee01.ent.ti.com>
On Thu, 14 Aug 2008 10:09:52 -0500
"ext Hunter, Jon" <jon-hunter@ti.com> wrote:
> Hi Tony, Jarkko,
>
> > > Let's rather get rid of the direct mcbsp register tinkering from
> > > drivers and use following instead:
> > >
> > Workaround for omap_mcbsp3_aic23_clock_init not adding new McBSP API
> > would be to put those registers into "struct omap_mcbsp_reg_cfg" and
> > call omap_mcbsp_config.
>
>
> You know I am curious which omap board this function was added for? Going back and reviewing the OMAP5912 OSK schematics the 12MHz clock for the aic23 is provided from the OMAP5912 MCLK and not the McBSP3. So my feeling is that short term this should definitely be moved from the aic23 driver to a board specific file because I am not sure that this is even necessary for OMAP5912.
>
I have a fear that the Nokia 770 is the reason here... :-)
Can you try patch below is it working on OSK?
Jarkko
---
>From a6d17c3d7cbc16fb0cf5df6617cff64c9f764345 Mon Sep 17 00:00:00 2001
From: Jarkko Nikula <jarkko.nikula@nokia.com>
Date: Fri, 15 Aug 2008 08:55:38 +0300
Subject: [PATCH] i2c: Remove McBSP3 clock initialization from tlv320aic23.c
McBSP3 clock initialization doesn't below here and even doesn't compile
anymore. Remove code since OMAP5912 OSK doesn't need it. However AIC23
in Nokia 770 uses master clock from McBSP3 but it's better to handle this in
board-nokia770.c or develope ALSA SoC support for it.
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
---
drivers/i2c/chips/tlv320aic23.c | 34 ----------------------------------
1 files changed, 0 insertions(+), 34 deletions(-)
diff --git a/drivers/i2c/chips/tlv320aic23.c b/drivers/i2c/chips/tlv320aic23.c
index 10671e8..ffa0ed2 100644
--- a/drivers/i2c/chips/tlv320aic23.c
+++ b/drivers/i2c/chips/tlv320aic23.c
@@ -96,38 +96,6 @@ int aic23_write_value(u8 reg, u16 value)
return 0;
}
-/*
- * Configures the McBSP3 which is used to send clock to the AIC23 codec.
- * The input clock rate from DSP is 12MHz.
- * The DSP clock must be on before this is called.
- */
-static int omap_mcbsp3_aic23_clock_init(void)
-{
- u16 w;
-
- /* enable 12MHz clock to mcbsp 1 & 3 */
- __raw_writew(__raw_readw(DSP_IDLECT2) | (1<<1), DSP_IDLECT2);
- __raw_writew(__raw_readw(DSP_RSTCT2) | 1 | 1<<1, DSP_RSTCT2);
-
- /* disable sample rate generator */
- OMAP_MCBSP_WRITE(OMAP1610_MCBSP3_BASE, SPCR1, 0x0000);
- OMAP_MCBSP_WRITE(OMAP1610_MCBSP3_BASE, SPCR2, 0x0000);
-
- /* pin control register */
- OMAP_MCBSP_WRITE(OMAP1610_MCBSP3_BASE, PCR0,(CLKXM | CLKXP | CLKRP));
-
- /* configure srg to send 12MHz pulse from dsp peripheral clock */
- OMAP_MCBSP_WRITE(OMAP1610_MCBSP3_BASE, SRGR1, 0x0000);
- OMAP_MCBSP_WRITE(OMAP1610_MCBSP3_BASE, SRGR2, CLKSM);
-
- /* enable sample rate generator */
- w = OMAP_MCBSP_READ(OMAP1610_MCBSP3_BASE, SPCR2);
- OMAP_MCBSP_WRITE(OMAP1610_MCBSP3_BASE, SPCR2, (w | FREE | GRST));
- printk("Clock enabled to MCBSP1 & 3 \n");
-
- return 0;
-}
-
static int aic23_detect_client(struct i2c_adapter *adapter, int address,
int kind)
{
@@ -167,8 +135,6 @@ static int aic23_detect_client(struct i2c_adapter *adapter, int address,
selftest = -ENODEV;
return selftest;
}
- /* FIXME: Do in board-specific file */
- omap_mcbsp3_aic23_clock_init();
if (!aic23_info_l.power_down)
aic23_power_up();
--
1.5.6.3
next prev parent reply other threads:[~2008-08-15 8:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 3:07 [PATCH] OMAP5912: Fix omap5912 osk alsa driver [1/2] Hunter, Jon
2008-08-13 13:57 ` Tony Lindgren
2008-08-14 6:13 ` Jarkko Nikula
2008-08-14 15:09 ` Hunter, Jon
2008-08-15 8:12 ` Jarkko Nikula [this message]
2008-08-18 15:14 ` Hunter, Jon
2008-08-19 21:11 ` Yuri Jaeger Monti
2008-09-01 14:41 ` Yuri Jaeger Monti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080815111216.5dcf2a0d.jarkko.nikula@nokia.com \
--to=jarkko.nikula@nokia.com \
--cc=jon-hunter@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox