All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: ext Guruswamy Senthilvadivu <svadivu@ti.com>
Cc: khilman@deeprootsystems.com, paul@pwsan.com, hvaibhav@ti.com,
	linux-omap@vger.kernel.org
Subject: Re: [PATCH v2 05/17] OMAP2,3 DSS Driver register moved to mach_omap2
Date: Tue, 21 Dec 2010 15:49:20 +0200	[thread overview]
Message-ID: <1292939360.22441.57.camel@tubuntu> (raw)
In-Reply-To: <1291031503-21036-6-git-send-email-svadivu@ti.com>

On Mon, 2010-11-29 at 17:21 +0530, ext Guruswamy Senthilvadivu wrote:
> From: Senthilvadivu Guruswamy <svadivu@ti.com>
> 
> Move DSS driver register from board file to devices.c
> Changed device name from omapdss to omap_display as the
> driver takes care of panel information.

Here you do two separate things, adding the omap_display_init() and
changing the driver name. The latter should be in the previous patch, I
suppose.

 Tomi

> Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com>
> ---
>  arch/arm/mach-omap2/devices.c             |   32 +++++++++++++++++++++++++++++
>  arch/arm/plat-omap/include/plat/display.h |    4 +++
>  drivers/video/omap2/dss/core.c            |    2 +-
>  3 files changed, 37 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
> index 5a0c148..0f6eabe 100644
> --- a/arch/arm/mach-omap2/devices.c
> +++ b/arch/arm/mach-omap2/devices.c
> @@ -28,6 +28,7 @@
>  #include <mach/gpio.h>
>  #include <plat/mmc.h>
>  #include <plat/dma.h>
> +#include <plat/display.h>
>  #include <plat/omap_hwmod.h>
>  #include <plat/omap_device.h>
>  
> @@ -923,6 +924,37 @@ static inline void omap_hdq_init(void) {}
>  #endif
>  
>  /*---------------------------------------------------------------------------*/
> +#ifdef CONFIG_OMAP2_DSS
> +
> +static struct platform_device omap_display_device = {
> +	.name          = "omap_display",
> +	.id            = -1,
> +	.dev            = {
> +		.platform_data = NULL,
> +	},
> +};
> +
> +int __init omap_display_init(struct omap_dss_board_info
> +					*board_data)
> +{
> +	int r = 0;
> +	omap_display_device.dev.platform_data = board_data;
> +
> +	r = platform_device_register(&omap_display_device);
> +	if (r < 0)
> +		printk(KERN_ERR "Unable to register OMAP-Display device\n");
> +
> +	return r;
> +}
> +
> +#else
> +int __init omap_display_init(struct omap_dss_board_info *board_data)
> +{
> +return 0;
> +}
> +#endif
> +
> +/*---------------------------------------------------------------------------*/
>  
>  #if defined(CONFIG_VIDEO_OMAP2_VOUT) || \
>  	defined(CONFIG_VIDEO_OMAP2_VOUT_MODULE)
> diff --git a/arch/arm/plat-omap/include/plat/display.h b/arch/arm/plat-omap/include/plat/display.h
> index c915a66..871bbae 100644
> --- a/arch/arm/plat-omap/include/plat/display.h
> +++ b/arch/arm/plat-omap/include/plat/display.h
> @@ -23,6 +23,7 @@
>  #include <linux/list.h>
>  #include <linux/kobject.h>
>  #include <linux/device.h>
> +#include <linux/platform_device.h>
>  #include <asm/atomic.h>
>  
>  #define DISPC_IRQ_FRAMEDONE		(1 << 0)
> @@ -220,6 +221,9 @@ struct omap_dss_board_info {
>  	struct omap_dss_device *default_device;
>  };
>  
> +/* Init with the board info */
> +extern int omap_display_init(struct omap_dss_board_info *board_data);
> +
>  struct omap_video_timings {
>  	/* Unit: pixels */
>  	u16 x_res;
> diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c
> index 8e89f60..48d20d8 100644
> --- a/drivers/video/omap2/dss/core.c
> +++ b/drivers/video/omap2/dss/core.c
> @@ -715,7 +715,7 @@ static struct platform_driver omap_dss_driver = {
>  	.suspend	= omap_dss_suspend,
>  	.resume		= omap_dss_resume,
>  	.driver         = {
> -		.name   = "omapdss",
> +		.name   = "omap_display",
>  		.owner  = THIS_MODULE,
>  	},
>  };



  reply	other threads:[~2010-12-21 13:49 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-29 11:51 [PATCH v2 00/17] OMAP2,3: hwmod DSS Adaptation Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 01/17] OMAP2420: hwmod data: add DSS DISPC RFBI VENC Guruswamy Senthilvadivu
2010-12-06  7:44   ` Guruswamy, Senthilvadivu
2010-12-13 11:31   ` Guruswamy, Senthilvadivu
     [not found]   ` <FCCFB4CDC6E5564B9182F639FC356087035F28E41F@dbde02.ent.ti.com>
2010-12-14 14:20     ` Tomi Valkeinen
2010-11-29 11:51 ` [PATCH v2 02/17] OMAP2430: " Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 03/17] OMAP3: hwmod data: add DSS DISPC RFBI DSI VENC Guruswamy Senthilvadivu
2010-12-20 13:08   ` Tomi Valkeinen
2010-12-20 16:43     ` Taneja, Archit
2010-12-21  3:29       ` Guruswamy, Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 04/17] OMAP2420,OMAP2430,OMAP3xx: change dss driver name in clock files Guruswamy Senthilvadivu
2010-12-21 13:44   ` Tomi Valkeinen
2010-12-22 10:29     ` Guruswamy, Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 05/17] OMAP2,3 DSS Driver register moved to mach_omap2 Guruswamy Senthilvadivu
2010-12-21 13:49   ` Tomi Valkeinen [this message]
2010-12-22 11:25     ` Guruswamy, Senthilvadivu
2010-12-22 11:36       ` Tomi Valkeinen
2010-11-29 11:51 ` [PATCH v2 06/17] OMAP2,3 board files DSS Driver register moved to devices.c Guruswamy Senthilvadivu
2010-12-21 13:59   ` Tomi Valkeinen
2010-11-29 11:51 ` [PATCH v2 07/17] OMAP2,3: DSS: Build omap_device for each DSS HWIP Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 08/17] OMAP2,3: DSS: Create platform_driver for each DSS HW IP Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 09/17] OMAP2,3: DSS: Move clocks from core driver to dss driver Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 10/17] OMAP2,3: DSS: Move dss_feature_init to dss Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 11/17] OMAP2,3: DSS: DSS Move init,exit to driver Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 12/17] OMAP2,3: DSS: RFBI " Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 13/17] OMAP2,3: DSS: DISPC " Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 14/17] OMAP2,3: DSS: VENC " Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 15/17] OMAP2,3: DSS: DSI Move init, exit " Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 16/17] OMAP2,3: DSS: Use platform device to get baseaddr Guruswamy Senthilvadivu
2010-11-29 11:51 ` [PATCH v2 17/17] OMAP2,3: DSS: Get DSS IRQ from platform device Guruswamy Senthilvadivu

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=1292939360.22441.57.camel@tubuntu \
    --to=tomi.valkeinen@nokia.com \
    --cc=hvaibhav@ti.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    --cc=svadivu@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.