public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Samuel Ortiz <sameo@linux.intel.com>
To: "Richard Röjfors" <richard.rojfors@pelagicore.com>,
	"Mauro Carvalho Chehab" <mchehab@redhat.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	Douglas Schilling Landgraf <dougsland@gmail.com>
Subject: Re: [PATCH 3/3 v2] mfd: Add timberdale video-in driver to timberdale
Date: Tue, 3 Aug 2010 18:05:19 +0200	[thread overview]
Message-ID: <20100803160518.GA10451@sortiz-mobl> (raw)
In-Reply-To: <1280848772.19898.165.camel@debian>

On Tue, Aug 03, 2010 at 05:19:32PM +0200, Richard Röjfors wrote:
> This patch defines platform data for the video-in driver
> and adds it to all configurations of timberdale.
> 
> Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Mauro, I suppose this series should go through your tree. If you agree, then
please add:
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

to this patch.

Cheers,
Samuel.

> ---
> diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c
> index ac59950..d4a95bd 100644
> --- a/drivers/mfd/timberdale.c
> +++ b/drivers/mfd/timberdale.c
> @@ -40,6 +40,7 @@
>  #include <linux/spi/mc33880.h>
>  
>  #include <media/timb_radio.h>
> +#include <media/timb_video.h>
>  
>  #include <linux/timb_dma.h>
>  
> @@ -238,6 +239,22 @@ static const __devinitconst struct resource timberdale_uartlite_resources[] = {
>  	},
>  };
>  
> +static __devinitdata struct i2c_board_info timberdale_adv7180_i2c_board_info = {
> +	/* Requires jumper JP9 to be off */
> +	I2C_BOARD_INFO("adv7180", 0x42 >> 1),
> +	.irq = IRQ_TIMBERDALE_ADV7180
> +};
> +
> +static __devinitdata struct timb_video_platform_data
> +	timberdale_video_platform_data = {
> +	.dma_channel = DMA_VIDEO_RX,
> +	.i2c_adapter = 0,
> +	.encoder = {
> +		.module_name = "adv7180",
> +		.info = &timberdale_adv7180_i2c_board_info
> +	}
> +};
> +
>  static const __devinitconst struct resource timberdale_radio_resources[] = {
>  	{
>  		.start	= RDSOFFSET,
> @@ -272,6 +289,18 @@ static __devinitdata struct timb_radio_platform_data
>  	}
>  };
>  
> +static const __devinitconst struct resource timberdale_video_resources[] = {
> +	{
> +		.start	= LOGIWOFFSET,
> +		.end	= LOGIWEND,
> +		.flags	= IORESOURCE_MEM,
> +	},
> +	/*
> +	note that the "frame buffer" is located in DMA area
> +	starting at 0x1200000
> +	*/
> +};
> +
>  static __devinitdata struct timb_dma_platform_data timb_dma_platform_data = {
>  	.nr_channels = 10,
>  	.channels = {
> @@ -372,6 +401,13 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = {
>  		.data_size = sizeof(timberdale_gpio_platform_data),
>  	},
>  	{
> +		.name = "timb-video",
> +		.num_resources = ARRAY_SIZE(timberdale_video_resources),
> +		.resources = timberdale_video_resources,
> +		.platform_data = &timberdale_video_platform_data,
> +		.data_size = sizeof(timberdale_video_platform_data),
> +	},
> +	{
>  		.name = "timb-radio",
>  		.num_resources = ARRAY_SIZE(timberdale_radio_resources),
>  		.resources = timberdale_radio_resources,
> @@ -430,6 +466,13 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = {
>  		.resources = timberdale_mlogicore_resources,
>  	},
>  	{
> +		.name = "timb-video",
> +		.num_resources = ARRAY_SIZE(timberdale_video_resources),
> +		.resources = timberdale_video_resources,
> +		.platform_data = &timberdale_video_platform_data,
> +		.data_size = sizeof(timberdale_video_platform_data),
> +	},
> +	{
>  		.name = "timb-radio",
>  		.num_resources = ARRAY_SIZE(timberdale_radio_resources),
>  		.resources = timberdale_radio_resources,
> @@ -478,6 +521,13 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = {
>  		.data_size = sizeof(timberdale_gpio_platform_data),
>  	},
>  	{
> +		.name = "timb-video",
> +		.num_resources = ARRAY_SIZE(timberdale_video_resources),
> +		.resources = timberdale_video_resources,
> +		.platform_data = &timberdale_video_platform_data,
> +		.data_size = sizeof(timberdale_video_platform_data),
> +	},
> +	{
>  		.name = "timb-radio",
>  		.num_resources = ARRAY_SIZE(timberdale_radio_resources),
>  		.resources = timberdale_radio_resources,
> @@ -521,6 +571,13 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = {
>  		.data_size = sizeof(timberdale_gpio_platform_data),
>  	},
>  	{
> +		.name = "timb-video",
> +		.num_resources = ARRAY_SIZE(timberdale_video_resources),
> +		.resources = timberdale_video_resources,
> +		.platform_data = &timberdale_video_platform_data,
> +		.data_size = sizeof(timberdale_video_platform_data),
> +	},
> +	{
>  		.name = "timb-radio",
>  		.num_resources = ARRAY_SIZE(timberdale_radio_resources),
>  		.resources = timberdale_radio_resources,
> diff --git a/drivers/mfd/timberdale.h b/drivers/mfd/timberdale.h
> index c11bf6e..4412acd 100644
> --- a/drivers/mfd/timberdale.h
> +++ b/drivers/mfd/timberdale.h
> @@ -23,7 +23,7 @@
>  #ifndef MFD_TIMBERDALE_H
>  #define MFD_TIMBERDALE_H
>  
> -#define DRV_VERSION		"0.2"
> +#define DRV_VERSION		"0.3"
>  
>  /* This driver only support versions >= 3.8 and < 4.0  */
>  #define TIMB_SUPPORTED_MAJOR	3
> 

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

      reply	other threads:[~2010-08-03 16:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03 15:19 [PATCH 3/3 v2] mfd: Add timberdale video-in driver to timberdale Richard Röjfors
2010-08-03 16:05 ` Samuel Ortiz [this message]

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=20100803160518.GA10451@sortiz-mobl \
    --to=sameo@linux.intel.com \
    --cc=dougsland@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    --cc=richard.rojfors@pelagicore.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