From 9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 Mon Sep 17 00:00:00 2001 From: Yunhong Jiang Date: Tue, 4 Aug 2015 12:17:53 -0700 Subject: Add the rt linux 4.1.3-rt3 as base Import the rt linux 4.1.3-rt3 as OPNFV kvm base. It's from git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-4.1.y-rt and the base is: commit 0917f823c59692d751951bf5ea699a2d1e2f26a2 Author: Sebastian Andrzej Siewior Date: Sat Jul 25 12:13:34 2015 +0200 Prepare v4.1.3-rt3 Signed-off-by: Sebastian Andrzej Siewior We lose all the git history this way and it's not good. We should apply another opnfv project repo in future. Change-Id: I87543d81c9df70d99c5001fbdf646b202c19f423 Signed-off-by: Yunhong Jiang --- kernel/drivers/gpu/drm/panel/Kconfig | 46 + kernel/drivers/gpu/drm/panel/Makefile | 4 + kernel/drivers/gpu/drm/panel/panel-ld9040.c | 389 ++++++ kernel/drivers/gpu/drm/panel/panel-s6e8aa0.c | 1067 ++++++++++++++++ .../gpu/drm/panel/panel-sharp-lq101r1sx01.c | 475 +++++++ kernel/drivers/gpu/drm/panel/panel-simple.c | 1297 ++++++++++++++++++++ 6 files changed, 3278 insertions(+) create mode 100644 kernel/drivers/gpu/drm/panel/Kconfig create mode 100644 kernel/drivers/gpu/drm/panel/Makefile create mode 100644 kernel/drivers/gpu/drm/panel/panel-ld9040.c create mode 100644 kernel/drivers/gpu/drm/panel/panel-s6e8aa0.c create mode 100644 kernel/drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c create mode 100644 kernel/drivers/gpu/drm/panel/panel-simple.c (limited to 'kernel/drivers/gpu/drm/panel') diff --git a/kernel/drivers/gpu/drm/panel/Kconfig b/kernel/drivers/gpu/drm/panel/Kconfig new file mode 100644 index 000000000..6d64c7bb9 --- /dev/null +++ b/kernel/drivers/gpu/drm/panel/Kconfig @@ -0,0 +1,46 @@ +config DRM_PANEL + bool + depends on DRM + help + Panel registration and lookup framework. + +menu "Display Panels" + depends on DRM && DRM_PANEL + +config DRM_PANEL_SIMPLE + tristate "support for simple panels" + depends on OF + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + help + DRM panel driver for dumb panels that need at most a regulator and + a GPIO to be powered up. Optionally a backlight can be attached so + that it can be automatically turned off when the panel goes into a + low power state. + +config DRM_PANEL_LD9040 + tristate "LD9040 RGB/SPI panel" + depends on OF && SPI + select VIDEOMODE_HELPERS + +config DRM_PANEL_S6E8AA0 + tristate "S6E8AA0 DSI video mode panel" + depends on OF + select DRM_MIPI_DSI + select VIDEOMODE_HELPERS + +config DRM_PANEL_SHARP_LQ101R1SX01 + tristate "Sharp LQ101R1SX01 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for Sharp LQ101R1SX01 + TFT-LCD modules. The panel has a 2560x1600 resolution and uses + 24 bit RGB per pixel. It provides a dual MIPI DSI interface to + the host and has a built-in LED backlight. + + To compile this driver as a module, choose M here: the module + will be called panel-sharp-lq101r1sx01. + +endmenu diff --git a/kernel/drivers/gpu/drm/panel/Makefile b/kernel/drivers/gpu/drm/panel/Makefile new file mode 100644 index 000000000..4b2a04308 --- /dev/null +++ b/kernel/drivers/gpu/drm/panel/Makefile @@ -0,0 +1,4 @@ +obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o +obj-$(CONFIG_DRM_PANEL_LD9040) += panel-ld9040.o +obj-$(CONFIG_DRM_PANEL_S6E8AA0) += panel-s6e8aa0.o +obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o diff --git a/kernel/drivers/gpu/drm/panel/panel-ld9040.c b/kernel/drivers/gpu/drm/panel/panel-ld9040.c new file mode 100644 index 000000000..08cf2c588 --- /dev/null +++ b/kernel/drivers/gpu/drm/panel/panel-ld9040.c @@ -0,0 +1,389 @@ +/* + * ld9040 AMOLED LCD drm_panel driver. + * + * Copyright (c) 2014 Samsung Electronics Co., Ltd + * Derived from drivers/video/backlight/ld9040.c + * + * Andrzej Hajda + * + * 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