From 6e39e8ea4ecb80185ec9f5fd5033e0aeb75cddb8 Mon Sep 17 00:00:00 2001 From: Inki Dae Date: Tue, 22 Jul 2014 17:27:46 +0900 Subject: [PATCH] drm/panel: add S6E63J0x03 MIPI-DSI command mode panel This patch adds s6e63j0x03 MIPI-DSI command mode panel driver which is used for Gear 2 wearable device. Change-Id: If3c8046af224afe5e947819eeff545a5b9dc04fc Signed-off-by: Inki Dae --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-s6e63j0x03.c | 525 +++++++++++++++++++++++++++++++ 3 files changed, 535 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-s6e63j0x03.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index a54d89b..46e1e5ae 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -32,4 +32,13 @@ config DRM_PANEL_S6E8AA0 select BACKLIGHT_LCD_SUPPORT select BACKLIGHT_CLASS_DEVICE +config DRM_PANEL_S6E63J0x03 + tristate "S6E63J0x03 DSI command mode panel" + depends on DRM && DRM_PANEL + depends on OF + select DRM_MIPI_DSI + select VIDEOMODE_HELPERS + select BACKLIGHT_LCD_SUPPORT + select BACKLIGHT_CLASS_DEVICE + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 8b92921..74b9c97 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -1,3 +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_S6E63J0x03) += panel-s6e63j0x03.o \ No newline at end of file diff --git a/drivers/gpu/drm/panel/panel-s6e63j0x03.c b/drivers/gpu/drm/panel/panel-s6e63j0x03.c new file mode 100644 index 0000000..9f16075 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-s6e63j0x03.c @@ -0,0 +1,525 @@ +/* + * MIPI-DSI based S6E63J0X03 AMOLED lcd 1.63 inch panel driver. + * + * Copyright (c) 2014 Samsung Electronics Co., Ltd + * + * Inki Dae, + * + * 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