From mboxrd@z Thu Jan 1 00:00:00 1970 From: Donghwa Lee Date: Tue, 20 Dec 2011 08:00:22 +0000 Subject: [PATCH] video: backlight: support MIPI DSI based s6e8ax0 amoled panel Message-Id: <4EF04096.30903@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org This patch is amoled panel driver based MIPI DSI interface. S6E8AX0 means it may includes many other ldi controllers, for example, S6E8AA0, S6E8AB0, and so on. It can be modified depending on each panel properites. This patch is based on Samsung Soc MIPI DSI Driver. Please refer to the "[PATCH v3] video: support MIPI-DSI controller driver". http://marc.info/?l=linux-fbdev&m2435297125837&w=2 Signed-off-by: Donghwa Lee Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/video/backlight/Kconfig | 7 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/s6e8ax0.c | 801 +++++++++++++++++++++++++++++++ drivers/video/backlight/s6e8ax0.h | 26 + drivers/video/backlight/s6e8ax0_gamma.h | 217 +++++++++ 5 files changed, 1052 insertions(+), 0 deletions(-) create mode 100644 drivers/video/backlight/s6e8ax0.c create mode 100644 drivers/video/backlight/s6e8ax0.h create mode 100644 drivers/video/backlight/s6e8ax0_gamma.h diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig index 278aeaa..478fc4a 100644 --- a/drivers/video/backlight/Kconfig +++ b/drivers/video/backlight/Kconfig @@ -125,6 +125,13 @@ config LCD_AMS369FG06 If you have an AMS369FG06 AMOLED Panel, say Y to enable its LCD control driver. +config LCD_S6E8AX0 + tristate "S6E8AX0 MIPI AMOLED LCD Driver" + depends on S5P_MIPI_DSI && BACKLIGHT_CLASS_DEVICE + default n + help + If you have an S6E8AX0 MIPI AMOLED LCD Panel, say Y to enable its + LCD control driver. endif # LCD_CLASS_DEVICE # diff --git a/drivers/video/backlight/Makefile b/drivers/video/backlight/Makefile index fdd1fc4..6adba58 100644 --- a/drivers/video/backlight/Makefile +++ b/drivers/video/backlight/Makefile @@ -14,6 +14,7 @@ obj-$(CONFIG_LCD_TOSA) += tosa_lcd.o obj-$(CONFIG_LCD_S6E63M0) += s6e63m0.o obj-$(CONFIG_LCD_LD9040) += ld9040.o obj-$(CONFIG_LCD_AMS369FG06) += ams369fg06.o +obj-$(CONFIG_LCD_S6E8AX0) += s6e8ax0.o obj-$(CONFIG_BACKLIGHT_CLASS_DEVICE) += backlight.o obj-$(CONFIG_BACKLIGHT_ATMEL_PWM) += atmel-pwm-bl.o diff --git a/drivers/video/backlight/s6e8ax0.c b/drivers/video/backlight/s6e8ax0.c new file mode 100644 index 0000000..2fb303e --- /dev/null +++ b/drivers/video/backlight/s6e8ax0.c @@ -0,0 +1,801 @@ +/* linux/drivers/video/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 + +#include