From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Date: Fri, 17 Aug 2012 00:49:42 +0000 Subject: [RFC 4/5] video: panel: Add R61505 panel support Message-Id: <1345164583-18924-5-git-send-email-laurent.pinchart@ideasonboard.com> List-Id: References: <1345164583-18924-1-git-send-email-laurent.pinchart@ideasonboard.com> In-Reply-To: <1345164583-18924-1-git-send-email-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org Cc: linux-media@vger.kernel.org, Bryan Wu , Richard Purdie , Tomi Valkeinen , Marcus Lorentzon , Sumit Semwal , Archit Taneja , Sebastien Guiriec , Inki Dae , Kyungmin Park The R61505 is a SYS-80 bus panel controller from Renesas. Signed-off-by: Laurent Pinchart --- drivers/video/panel/Kconfig | 9 + drivers/video/panel/Makefile | 1 + drivers/video/panel/panel-r61505.c | 520 ++++++++++++++++++++++++++++++++++++ include/video/panel-r61505.h | 27 ++ 4 files changed, 557 insertions(+), 0 deletions(-) create mode 100644 drivers/video/panel/panel-r61505.c create mode 100644 include/video/panel-r61505.h diff --git a/drivers/video/panel/Kconfig b/drivers/video/panel/Kconfig index fd0b3cf..12d7712 100644 --- a/drivers/video/panel/Kconfig +++ b/drivers/video/panel/Kconfig @@ -16,4 +16,13 @@ config DISPLAY_PANEL_DBI tristate default n +config DISPLAY_PANEL_R61505 + tristate "Renesas R61505-based Display Panel" + select DISPLAY_PANEL_DBI + ---help--- + Support panels based on the Renesas R61505 panel controller. + Those panels are controlled through a MIPI DBI interface. + + If you are in doubt, say N. + endif # DISPLAY_PANEL diff --git a/drivers/video/panel/Makefile b/drivers/video/panel/Makefile index 2ab0520..e4fb9fe 100644 --- a/drivers/video/panel/Makefile +++ b/drivers/video/panel/Makefile @@ -1,3 +1,4 @@ obj-$(CONFIG_DISPLAY_PANEL) += panel.o obj-$(CONFIG_DISPLAY_PANEL_DUMMY) += panel-dummy.o obj-$(CONFIG_DISPLAY_PANEL_DBI) += panel-dbi.o +obj-$(CONFIG_DISPLAY_PANEL_R61505) += panel-r61505.o diff --git a/drivers/video/panel/panel-r61505.c b/drivers/video/panel/panel-r61505.c new file mode 100644 index 0000000..e09455e --- /dev/null +++ b/drivers/video/panel/panel-r61505.c @@ -0,0 +1,520 @@ +/* + * Renesas R61505-based Display Panels + * + * Copyright (C) 2012 Renesas Solutions Corp. + * Based on SuperH MigoR Quarter VGA LCD Panel + * Copyright (C) 2008 Magnus Damm + * Based on lcd_powertip.c from Kenati Technologies Pvt Ltd. + * Copyright (c) 2007 Ujjwal Pande + * + * Contacts: Laurent Pinchart + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include +#include +#include +#include +#include +#include + +#include