All of lore.kernel.org
 help / color / mirror / Atom feed
From: nsekhar@ti.com (Sekhar Nori)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 1/2] ARM: davinci: dm355: add support for v4l2 video display
Date: Mon, 18 Mar 2013 14:11:10 +0530	[thread overview]
Message-ID: <5146D326.4080905@ti.com> (raw)
In-Reply-To: <1363429052-1081-2-git-send-email-prabhakar.csengg@gmail.com>

On 3/16/2013 3:47 PM, Prabhakar lad wrote:
> From: Lad, Prabhakar <prabhakar.csengg@gmail.com>
> 
> Create platform devices for various video modules like venc,osd,
> vpbe and v4l2 driver for dm355.
> 
> Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>

Comments on the DM365 series apply to this one too. In addition:

> +static int dm355_vpbe_setup_pinmux(enum v4l2_mbus_pixelcode if_type,
> +			    int field)
>  {
> -	vpfe_capture_dev.dev.platform_data = cfg;
> +	switch (if_type) {
> +	case V4L2_MBUS_FMT_SGRBG8_1X8:
> +		davinci_cfg_reg(DM355_VOUT_FIELD_G70);
> +		break;
> +
> +	case V4L2_MBUS_FMT_YUYV10_1X20:
> +		/*
> +		 * This was VPBE_DIGITAL_IF_YCC16. Replace the enum

"was VPBE_DIGITAL_IF_YCC16" when? This is the first time this code is
getting in.

> +		 * accordingly when the right one gets into open source

What is the "right one"? And "open source" == kernel? Then may be just
call it that.

> +		 */
> +		if (field)
> +			davinci_cfg_reg(DM355_VOUT_FIELD);
> +		else
> +			davinci_cfg_reg(DM355_VOUT_FIELD_G70);
> +		break;
> +
> +	default:
> +		return -EINVAL;
> +	}
> +
> +	davinci_cfg_reg(DM355_VOUT_COUTL_EN);
> +	davinci_cfg_reg(DM355_VOUT_COUTH_EN);
> +
> +	return 0;
>  }
>  
> +static inline u32 dm355_reg_modify(void *reg, u32 val, u32 mask)
> +{
> +	u32 new_val = (readl(reg) & ~mask) | (val & mask);
> +
> +	writel(new_val, reg);
> +
> +	return new_val;
> +}

This function needs to be removed.

Thanks,
Sekhar

WARNING: multiple messages have this Message-ID (diff)
From: Sekhar Nori <nsekhar@ti.com>
To: Prabhakar lad <prabhakar.csengg@gmail.com>
Cc: LAK <linux-arm-kernel@lists.infradead.org>,
	DLOS <davinci-linux-open-source@linux.davincidsp.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5 1/2] ARM: davinci: dm355: add support for v4l2 video display
Date: Mon, 18 Mar 2013 14:11:10 +0530	[thread overview]
Message-ID: <5146D326.4080905@ti.com> (raw)
In-Reply-To: <1363429052-1081-2-git-send-email-prabhakar.csengg@gmail.com>

On 3/16/2013 3:47 PM, Prabhakar lad wrote:
> From: Lad, Prabhakar <prabhakar.csengg@gmail.com>
> 
> Create platform devices for various video modules like venc,osd,
> vpbe and v4l2 driver for dm355.
> 
> Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>

Comments on the DM365 series apply to this one too. In addition:

> +static int dm355_vpbe_setup_pinmux(enum v4l2_mbus_pixelcode if_type,
> +			    int field)
>  {
> -	vpfe_capture_dev.dev.platform_data = cfg;
> +	switch (if_type) {
> +	case V4L2_MBUS_FMT_SGRBG8_1X8:
> +		davinci_cfg_reg(DM355_VOUT_FIELD_G70);
> +		break;
> +
> +	case V4L2_MBUS_FMT_YUYV10_1X20:
> +		/*
> +		 * This was VPBE_DIGITAL_IF_YCC16. Replace the enum

"was VPBE_DIGITAL_IF_YCC16" when? This is the first time this code is
getting in.

> +		 * accordingly when the right one gets into open source

What is the "right one"? And "open source" == kernel? Then may be just
call it that.

> +		 */
> +		if (field)
> +			davinci_cfg_reg(DM355_VOUT_FIELD);
> +		else
> +			davinci_cfg_reg(DM355_VOUT_FIELD_G70);
> +		break;
> +
> +	default:
> +		return -EINVAL;
> +	}
> +
> +	davinci_cfg_reg(DM355_VOUT_COUTL_EN);
> +	davinci_cfg_reg(DM355_VOUT_COUTH_EN);
> +
> +	return 0;
>  }
>  
> +static inline u32 dm355_reg_modify(void *reg, u32 val, u32 mask)
> +{
> +	u32 new_val = (readl(reg) & ~mask) | (val & mask);
> +
> +	writel(new_val, reg);
> +
> +	return new_val;
> +}

This function needs to be removed.

Thanks,
Sekhar

  reply	other threads:[~2013-03-18  8:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-16 10:17 [PATCH v5 0/2] ARM: davinci: dm355: add support for vpbe display Prabhakar lad
2013-03-16 10:17 ` Prabhakar lad
2013-03-16 10:17 ` [PATCH v5 1/2] ARM: davinci: dm355: add support for v4l2 video display Prabhakar lad
2013-03-16 10:17   ` Prabhakar lad
2013-03-18  8:41   ` Sekhar Nori [this message]
2013-03-18  8:41     ` Sekhar Nori
2013-03-18  9:09     ` Prabhakar Lad
2013-03-18  9:09       ` Prabhakar Lad
2013-03-16 10:17 ` [PATCH v5 2/2] ARM: davinci: dm355 EVM: add support for VPBE display Prabhakar lad
2013-03-16 10:17   ` Prabhakar lad

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=5146D326.4080905@ti.com \
    --to=nsekhar@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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.