From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Date: Wed, 11 Dec 2013 23:10:18 +0000 Subject: Re: [PATCH 05/26] ARM: OMAP2+: add omapdss_init_of() Message-Id: <2199639.FbGhznOLP9@avalon> List-Id: References: <1386160133-24026-1-git-send-email-tomi.valkeinen@ti.com> <1386160133-24026-6-git-send-email-tomi.valkeinen@ti.com> In-Reply-To: <1386160133-24026-6-git-send-email-tomi.valkeinen@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Tomi Valkeinen Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, Archit Taneja , Darren Etheridge , Tony Lindgren Hi Tomi, On Wednesday 04 December 2013 14:28:32 Tomi Valkeinen wrote: > omapdss driver uses a omapdss platform device to pass platform specific > function pointers and DSS hardware version from the arch code to the > driver. This device is needed also when booting with DT. > > This patch adds omapdss_init_of() function, called from board-generic at > init time, which creates the omapdss device. Is this a temporary solution that you plan to later replace with DT-only device instantiation ? > Signed-off-by: Tomi Valkeinen > --- > arch/arm/mach-omap2/board-generic.c | 2 ++ > arch/arm/mach-omap2/common.h | 2 ++ > arch/arm/mach-omap2/display.c | 62 ++++++++++++++++++++++++++++++++++ > 3 files changed, 66 insertions(+) > > diff --git a/arch/arm/mach-omap2/board-generic.c > b/arch/arm/mach-omap2/board-generic.c index 19f1652e94cf..0e06771d7bee > 100644 > --- a/arch/arm/mach-omap2/board-generic.c > +++ b/arch/arm/mach-omap2/board-generic.c > @@ -36,6 +36,8 @@ static struct of_device_id omap_dt_match_table[] > __initdata = { static void __init omap_generic_init(void) > { > pdata_quirks_init(omap_dt_match_table); > + > + omapdss_init_of(); > } > > #ifdef CONFIG_SOC_OMAP2420 > diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h > index f7644febee81..48e9cd34cae0 100644 > --- a/arch/arm/mach-omap2/common.h > +++ b/arch/arm/mach-omap2/common.h > @@ -308,5 +308,7 @@ extern int omap_dss_reset(struct omap_hwmod *); > /* SoC specific clock initializer */ > extern int (*omap_clk_init)(void); > > +int __init omapdss_init_of(void); > + > #endif /* __ASSEMBLER__ */ > #endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */ > diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c > index a4e536b11ec9..3279afc5f0b5 100644 > --- a/arch/arm/mach-omap2/display.c > +++ b/arch/arm/mach-omap2/display.c > @@ -23,6 +23,8 @@ > #include > #include > #include > +#include > +#include > > #include