From 9befe40f6e018e508b047eb76d189ede9b4ff03d Mon Sep 17 00:00:00 2001 From: Donghwa Lee Date: Wed, 8 Feb 2012 12:47:39 -0800 Subject: video: backlight: support s6e8ax0 panel driver based on MIPI DSI An moled panel driver based MIPI DSI interface. S6E8AX0 means it may includes many other ldi controllers, for example, S6E8AA0, S6E8AB0, and so on. This patch can be modified depending on each panel properites. For example, second parameter of panel condition register can be changed depending on ldi controller or amoled type. [akpm@linux-foundation.org: fix Kconfig syntax error] [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Donghwa Lee Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park Cc: Jingoo Han Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Florian Tobias Schandinat --- drivers/video/exynos/Kconfig | 10 +- drivers/video/exynos/Makefile | 1 + drivers/video/exynos/s6e8ax0.c | 898 +++++++++++++++++++++++++++++++++++++++++ drivers/video/exynos/s6e8ax0.h | 21 + 4 files changed, 929 insertions(+), 1 deletion(-) create mode 100644 drivers/video/exynos/s6e8ax0.c create mode 100644 drivers/video/exynos/s6e8ax0.h (limited to 'drivers/video/exynos') diff --git a/drivers/video/exynos/Kconfig b/drivers/video/exynos/Kconfig index 645b8a597199..7032ad9f3fbb 100644 --- a/drivers/video/exynos/Kconfig +++ b/drivers/video/exynos/Kconfig @@ -15,8 +15,16 @@ if EXYNOS_VIDEO config EXYNOS_MIPI_DSI bool "EXYNOS MIPI DSI driver support." - depends on (ARCH_S5PV210 || ARCH_EXYNOS) + depends on ARCH_S5PV210 || ARCH_EXYNOS help This enables support for MIPI-DSI device. +config EXYNOS_LCD_S6E8AX0 + bool "S6E8AX0 MIPI AMOLED LCD Driver" + depends on (EXYNOS_MIPI_DSI && BACKLIGHT_CLASS_DEVICE && LCD_CLASS_DEVICE) + default n + help + If you have an S6E8AX0 MIPI AMOLED LCD Panel, say Y to enable its + LCD control driver. + endif # EXYNOS_VIDEO diff --git a/drivers/video/exynos/Makefile b/drivers/video/exynos/Makefile index a1ae82abd6b8..b5b1bd228abb 100644 --- a/drivers/video/exynos/Makefile +++ b/drivers/video/exynos/Makefile @@ -4,3 +4,4 @@ obj-$(CONFIG_EXYNOS_MIPI_DSI) += exynos_mipi_dsi.o exynos_mipi_dsi_common.o \ exynos_mipi_dsi_lowlevel.o +obj-$(CONFIG_EXYNOS_LCD_S6E8AX0) += s6e8ax0.o diff --git a/drivers/video/exynos/s6e8ax0.c b/drivers/video/exynos/s6e8ax0.c new file mode 100644 index 000000000000..4aa9ac6218bf --- /dev/null +++ b/drivers/video/exynos/s6e8ax0.c @@ -0,0 +1,898 @@ +/* linux/drivers/video/exynos/s6e8ax0.c + * + * MIPI-DSI based s6e8ax0 AMOLED lcd 4.65 inch panel driver. + * + * Inki Dae, + * Donghwa Lee, + * + * 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 +#include +#include +#include +#include +#include +#include + +#include