From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damian Date: Wed, 19 May 2010 04:43:11 +0000 Subject: Re: [PATCH 2/4] sh-mobile: add support for displays, connected over Message-Id: <4BF36C5F.4010009@igel.co.jp> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Guennadi Liakhovetski Cc: "linux-sh@vger.kernel.org" , Magnus Damm , linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org, Tomi Valkeinen (4:59), Guennadi Liakhovetski wrote: > Some SH-mobile SoCs have a MIPI DSI controller, that can be used to connect > MIPI displays to LCDC. This patch adds a platform driver for SH-mobile MIPI DSI > unit. It uses existing hooks in the sh_mobile_lcdcfb.c driver for display > activation and deactivation. > > Signed-off-by: Guennadi Liakhovetski Console framebuffer tested on sh-2.6 tree and sh/dmaengine branch with the necessary clock and intc patches applied. Boot logo and framebuffer console displayed with no problems or unusual effects. Tested-by: Damian Hobson-Garcia > --- > > Nothing OMAP-relevant here, just for completeness. > > drivers/video/Kconfig | 8 + > drivers/video/Makefile | 1 + > drivers/video/sh_mipi_dsi.c | 500 +++++++++++++++++++++++++++++++++++++++++++ > include/video/sh_mipi_dsi.h | 35 +++ > 4 files changed, 544 insertions(+), 0 deletions(-) > create mode 100644 drivers/video/sh_mipi_dsi.c > create mode 100644 include/video/sh_mipi_dsi.h > > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig > index 6e16244..773c4a6 100644 > --- a/drivers/video/Kconfig > +++ b/drivers/video/Kconfig > @@ -1879,6 +1879,13 @@ config FB_W100 > > If unsure, say N. > > +config SH_MIPI_DSI > + tristate > + depends on (SUPERH || ARCH_SHMOBILE)&& HAVE_CLK > + > +config SH_LCD_MIPI_DSI > + bool > + > config FB_SH_MOBILE_LCDC > tristate "SuperH Mobile LCDC framebuffer support" > depends on FB&& (SUPERH || ARCH_SHMOBILE)&& HAVE_CLK > @@ -1887,6 +1894,7 @@ config FB_SH_MOBILE_LCDC > select FB_SYS_IMAGEBLIT > select FB_SYS_FOPS > select FB_DEFERRED_IO > + select SH_MIPI_DSI if SH_LCD_MIPI_DSI > ---help--- > Frame buffer driver for the on-chip SH-Mobile LCD controller. > > diff --git a/drivers/video/Makefile b/drivers/video/Makefile > index ddc2af2..3c3bf86 100644 > --- a/drivers/video/Makefile > +++ b/drivers/video/Makefile > @@ -123,6 +123,7 @@ obj-$(CONFIG_FB_IBM_GXT4500) += gxt4500.o > obj-$(CONFIG_FB_PS3) += ps3fb.o > obj-$(CONFIG_FB_SM501) += sm501fb.o > obj-$(CONFIG_FB_XILINX) += xilinxfb.o > +obj-$(CONFIG_SH_MIPI_DSI) += sh_mipi_dsi.o > obj-$(CONFIG_FB_SH_MOBILE_LCDC) += sh_mobile_lcdcfb.o > obj-$(CONFIG_FB_OMAP) += omap/ > obj-y += omap2/ > diff --git a/drivers/video/sh_mipi_dsi.c b/drivers/video/sh_mipi_dsi.c > new file mode 100644 > index 0000000..af0208f > --- /dev/null > +++ b/drivers/video/sh_mipi_dsi.c > @@ -0,0 +1,500 @@ > +/* > + * Renesas SH-mobile MIPI DSI support > + * > + * Copyright (C) 2010 Guennadi Liakhovetski > + * > + * This is free software; you can redistribute it and/or modify > + * it under the terms of version 2 of the GNU General Public License as > + * published by the Free Software Foundation. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include