From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from perceval.ideasonboard.com ([95.142.166.194]:46743 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756916Ab2HQAti (ORCPT ); Thu, 16 Aug 2012 20:49:38 -0400 From: Laurent Pinchart 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 Subject: [RFC 5/5] video: panel: Add R61517 panel support Date: Fri, 17 Aug 2012 02:49:43 +0200 Message-Id: <1345164583-18924-6-git-send-email-laurent.pinchart@ideasonboard.com> In-Reply-To: <1345164583-18924-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1345164583-18924-1-git-send-email-laurent.pinchart@ideasonboard.com> Sender: linux-media-owner@vger.kernel.org List-ID: The R61517 is a MIPI DBI panel controller from Renesas. Signed-off-by: Laurent Pinchart --- drivers/video/panel/Kconfig | 9 + drivers/video/panel/Makefile | 1 + drivers/video/panel/panel-r61517.c | 408 ++++++++++++++++++++++++++++++++++++ include/video/panel-r61517.h | 28 +++ 4 files changed, 446 insertions(+), 0 deletions(-) create mode 100644 drivers/video/panel/panel-r61517.c create mode 100644 include/video/panel-r61517.h diff --git a/drivers/video/panel/Kconfig b/drivers/video/panel/Kconfig index 12d7712..bd643be 100644 --- a/drivers/video/panel/Kconfig +++ b/drivers/video/panel/Kconfig @@ -25,4 +25,13 @@ config DISPLAY_PANEL_R61505 If you are in doubt, say N. +config DISPLAY_PANEL_R61517 + tristate "Renesas R61517-based Display Panel" + select DISPLAY_PANEL_DBI + ---help--- + Support panels based on the Renesas R61517 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 e4fb9fe..3c11d26 100644 --- a/drivers/video/panel/Makefile +++ b/drivers/video/panel/Makefile @@ -2,3 +2,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 +obj-$(CONFIG_DISPLAY_PANEL_R61517) += panel-r61517.o diff --git a/drivers/video/panel/panel-r61517.c b/drivers/video/panel/panel-r61517.c new file mode 100644 index 0000000..6e8d933 --- /dev/null +++ b/drivers/video/panel/panel-r61517.c @@ -0,0 +1,408 @@ +/* + * Renesas R61517-based Display Panels + * + * Copyright (C) 2012 Renesas Solutions Corp. + * Based on KFR2R09 LCD panel support + * Copyright (C) 2009 Magnus Damm + * Register settings based on the out-of-tree t33fb.c driver + * Copyright (C) 2008 Lineo Solutions, Inc. + * + * 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 + +#include