All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@sirena.org.uk>
To: Naresh Medisetty <naresh@ti.com>
Cc: davinci-linux-open-source@linux.davincidsp.com,
	alsa-devel@alsa-project.org
Subject: Re: [PATCH 1/9] ARM: DaVinci: ASoC: Adds ASoC driver	support for TI DM646X EVM platform
Date: Mon, 16 Mar 2009 14:57:00 +0000	[thread overview]
Message-ID: <20090316145659.GC16539@sirena.org.uk> (raw)
In-Reply-To: <1237204945-30039-1-git-send-email-naresh@ti.com>

On Mon, Mar 16, 2009 at 08:02:25AM -0400, Naresh Medisetty wrote:
> Adds ASoC driver support for TI DM646X EVM platform

Your changelog needs to be a bit more verbose here...

> +#include "../codecs/codec_stubs.h"

Interesting...

> +static struct resource dm6467_evm_snd_resources[] = {
> +	{
> +		.start = DAVINCI_DM646X_MCASP0_REG_BASE,
> +		.end = DAVINCI_DM646X_MCASP0_REG_BASE + (SZ_1K << 1) - 1,
> +		.flags = IORESOURCE_MEM,
> +	},

Take a look at how the s3c24xx_uda134x driver handles getting platform
data for the device.

> +static struct evm_snd_platform_data dm6467_evm_snd_data[] = {
> +	{
> +		.clk_name       = "McASPCLK0",
> +		.tx_dma_ch      = DAVINCI_DM646X_DMA_MCASP0_AXEVT0,
> +		.rx_dma_ch      = DAVINCI_DM646X_DMA_MCASP0_AREVT0,
> +		.tx_dma_offset  = 0x400,
> +		.rx_dma_offset  = 0x400,
> +		.op_mode        = DAVINCI_MCASP_IIS_MODE,
> +		.num_serializer = 4,
> +		.tdm_slots      = 2,
> +		.serial_dir     = dm6467_iis_serializer_direction,
> +		.eventq_no      = EVENTQ_0,
> +		.codec_fmt      = SND_SOC_DAIFMT_CBM_CFM | SND_SOC_DAIFMT_IB_NF,
> +	},

Lots of this stuff looks like it ought to be part of the driver for the
DAI rather than part of the machine driver.

>  
> -	if (machine_is_davinci_evm()) {
> +	if (cpu_is_davinci_dm644x()) {
>  		davinci_cfg_reg(DM644X_MCBSP);

This really should be checking for the machine - presumably it needs to
check for both the EVM and the particular CPU variant that's fitted on
it.

  reply	other threads:[~2009-03-16 14:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 12:02 [PATCH 1/9] ARM: DaVinci: ASoC: Adds ASoC driver support for TI DM646X EVM platform Naresh Medisetty
2009-03-16 14:57 ` Mark Brown [this message]
2009-03-18 11:37   ` Medisetty, Naresh
2009-03-16 17:38 ` David Brownell
2009-03-19 17:33   ` Kevin Hilman
2009-03-19 19:19     ` Mark Brown

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=20090316145659.GC16539@sirena.org.uk \
    --to=broonie@sirena.org.uk \
    --cc=alsa-devel@alsa-project.org \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=naresh@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.