From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- drivers/video/exynos/Kconfig | 37 + drivers/video/exynos/Makefile | 8 + drivers/video/exynos/exynos_dp_core.c | 1214 ++++++++++++++++++++++ drivers/video/exynos/exynos_dp_core.h | 210 ++++ drivers/video/exynos/exynos_dp_reg.c | 1245 +++++++++++++++++++++++ drivers/video/exynos/exynos_dp_reg.h | 366 +++++++ drivers/video/exynos/exynos_mipi_dsi.c | 574 +++++++++++ drivers/video/exynos/exynos_mipi_dsi_common.c | 879 ++++++++++++++++ drivers/video/exynos/exynos_mipi_dsi_common.h | 46 + drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 617 +++++++++++ drivers/video/exynos/exynos_mipi_dsi_lowlevel.h | 112 ++ drivers/video/exynos/exynos_mipi_dsi_regs.h | 149 +++ drivers/video/exynos/s6e8ax0.c | 903 ++++++++++++++++ 13 files changed, 6360 insertions(+) create mode 100644 drivers/video/exynos/Kconfig create mode 100644 drivers/video/exynos/Makefile create mode 100644 drivers/video/exynos/exynos_dp_core.c create mode 100644 drivers/video/exynos/exynos_dp_core.h create mode 100644 drivers/video/exynos/exynos_dp_reg.c create mode 100644 drivers/video/exynos/exynos_dp_reg.h create mode 100644 drivers/video/exynos/exynos_mipi_dsi.c create mode 100644 drivers/video/exynos/exynos_mipi_dsi_common.c create mode 100644 drivers/video/exynos/exynos_mipi_dsi_common.h create mode 100644 drivers/video/exynos/exynos_mipi_dsi_lowlevel.c create mode 100644 drivers/video/exynos/exynos_mipi_dsi_lowlevel.h create mode 100644 drivers/video/exynos/exynos_mipi_dsi_regs.h create mode 100644 drivers/video/exynos/s6e8ax0.c (limited to 'drivers/video/exynos') diff --git a/drivers/video/exynos/Kconfig b/drivers/video/exynos/Kconfig new file mode 100644 index 00000000..1b035b2e --- /dev/null +++ b/drivers/video/exynos/Kconfig @@ -0,0 +1,37 @@ +# +# Exynos Video configuration +# + +menuconfig EXYNOS_VIDEO + bool "Exynos Video driver support" + help + This enables support for EXYNOS Video device. + +if EXYNOS_VIDEO + +# +# MIPI DSI driver +# + +config EXYNOS_MIPI_DSI + bool "EXYNOS MIPI DSI driver support." + 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. + +config EXYNOS_DP + bool "EXYNOS DP driver support" + depends on ARCH_EXYNOS + default n + help + This enables support for DP device. + +endif # EXYNOS_VIDEO diff --git a/drivers/video/exynos/Makefile b/drivers/video/exynos/Makefile new file mode 100644 index 00000000..ec7772e4 --- /dev/null +++ b/drivers/video/exynos/Makefile @@ -0,0 +1,8 @@ +# +# Makefile for the exynos video drivers. +# + +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 +obj-$(CONFIG_EXYNOS_DP) += exynos_dp_core.o exynos_dp_reg.o diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c new file mode 100644 index 00000000..12bbede3 --- /dev/null +++ b/drivers/video/exynos/exynos_dp_core.c @@ -0,0 +1,1214 @@ +/* + * Samsung SoC DP (Display Port) interface driver. + * + * Copyright (C) 2012 Samsung Electronics Co., Ltd. + * Author: Jingoo Han + * + * 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. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include