From 2d8b66ad5996925495eda22d7ef4f9ef4c402a6e Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 14 Dec 2014 17:45:45 +0100 Subject: video: Add MTL017 LVDS encoder support The MTL017 is found on the Efika Smartbook. Not much is known about this chip, so this driver only programs a register dump which is suitable for some panels. Signed-off-by: Sascha Hauer --- drivers/video/Kconfig | 9 ++ drivers/video/Makefile | 1 + drivers/video/mtl017.c | 280 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 290 insertions(+) create mode 100644 drivers/video/mtl017.c (limited to 'drivers/video') diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 6d540a5368..6637877798 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -108,4 +108,13 @@ config DRIVER_VIDEO_BACKLIGHT_PWM help Enable this to get support for backlight devices driven by a PWM. +comment "Video encoder chips" + +config DRIVER_VIDEO_MTL017 + bool "MTL017 LVDS encoder" + select VIDEO_VPL + help + The MTL017 is a parallel to lvds video encoder chip found on the + Efika MX Smartbook. + endif diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 3aa544adc8..1e2109e172 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -4,6 +4,7 @@ obj-$(CONFIG_OFDEVICE) += of_display_timing.o obj-$(CONFIG_DRIVER_VIDEO_BACKLIGHT) += backlight.o obj-$(CONFIG_DRIVER_VIDEO_BACKLIGHT_PWM) += backlight-pwm.o obj-$(CONFIG_VIDEO_VPL) += vpl.o +obj-$(CONFIG_DRIVER_VIDEO_MTL017) += mtl017.o obj-$(CONFIG_DRIVER_VIDEO_ATMEL) += atmel_lcdfb.o atmel_lcdfb_core.o obj-$(CONFIG_DRIVER_VIDEO_ATMEL_HLCD) += atmel_hlcdfb.o atmel_lcdfb_core.o diff --git a/drivers/video/mtl017.c b/drivers/video/mtl017.c new file mode 100644 index 0000000000..1a1f686223 --- /dev/null +++ b/drivers/video/mtl017.c @@ -0,0 +1,280 @@ +/* + * (C) Copyright 2014 Sascha Hauer, Pengutronix + * + * See file CREDITS for list of people who contributed to this + * project. + * + * 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