From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bcVby-0004W5-A4 for barebox@lists.infradead.org; Wed, 24 Aug 2016 10:40:52 +0000 From: Philipp Zabel Date: Wed, 24 Aug 2016 12:40:19 +0200 Message-Id: <1472035219-23917-3-git-send-email-p.zabel@pengutronix.de> In-Reply-To: <1472035219-23917-1-git-send-email-p.zabel@pengutronix.de> References: <1472035219-23917-1-git-send-email-p.zabel@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/3] video: tc358767: add eDP video encoder driver To: barebox@lists.infradead.org Cc: Andrey Gusakov From: Andrey Gusakov This patch adds support for the Toshiba TC358767 eDP bridge, connected via DPI. Signed-off-by: Andrey Gusakov Signed-off-by: Philipp Zabel --- drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 + drivers/video/tc358767.c | 1313 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1322 insertions(+) create mode 100644 drivers/video/tc358767.c diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 7ff67e5..2457bb9 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -127,6 +127,14 @@ config DRIVER_VIDEO_MTL017 The MTL017 is a parallel to lvds video encoder chip found on the Efika MX Smartbook. +config DRIVER_VIDEO_TC358767 + bool "TC358767A Display Port encoder" + select VIDEO_VPL + depends on I2C + depends on OFTREE + help + The TC358767A is a DSI/DPI to eDP video encoder chip + config DRIVER_VIDEO_SIMPLE_PANEL bool "Simple panel support" select VIDEO_VPL diff --git a/drivers/video/Makefile b/drivers/video/Makefile index a64fc5f..1bf2e1f 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -6,6 +6,7 @@ obj-$(CONFIG_DRIVER_VIDEO_BACKLIGHT_PWM) += backlight-pwm.o obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbconsole.o obj-$(CONFIG_VIDEO_VPL) += vpl.o obj-$(CONFIG_DRIVER_VIDEO_MTL017) += mtl017.o +obj-$(CONFIG_DRIVER_VIDEO_TC358767) += tc358767.o obj-$(CONFIG_DRIVER_VIDEO_SIMPLE_PANEL) += simple-panel.o obj-$(CONFIG_DRIVER_VIDEO_ATMEL) += atmel_lcdfb.o atmel_lcdfb_core.o diff --git a/drivers/video/tc358767.c b/drivers/video/tc358767.c new file mode 100644 index 0000000..f2ea198 --- /dev/null +++ b/drivers/video/tc358767.c @@ -0,0 +1,1313 @@ +/* + * tc358767 eDP encoder driver + * + * Copyright (C) 2016 CogentEmbedded Inc + * Author: Andrey Gusakov + * + * Copyright (C) 2016 Pengutronix, Philipp Zabel + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include