From 46e30c9ac0670f428228ced57b819005f71c89a3 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Wed, 24 Aug 2016 12:40:19 +0200 Subject: [PATCH] video: tc358767: add eDP video encoder driver This patch adds support for the Toshiba TC358767 eDP bridge, connected via DPI. Signed-off-by: Andrey Gusakov Signed-off-by: Philipp Zabel Signed-off-by: Sascha Hauer --- 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 7ff67e525..2457bb9e4 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 a64fc5f24..1bf2e1f3c 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 000000000..72f55f4a4 --- /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