From f7018c21350204c4cf628462f229d44d03545254 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 13 Feb 2014 15:31:38 +0200 Subject: video: move fbdev to drivers/video/fbdev The drivers/video directory is a mess. It contains generic video related files, directories for backlight, console, linux logo, lots of fbdev device drivers, fbdev framework files. Make some order into the chaos by creating drivers/video/fbdev directory, and move all fbdev related files there. No functionality is changed, although I guess it is possible that some subtle Makefile build order related issue could be created by this patch. Signed-off-by: Tomi Valkeinen Acked-by: Laurent Pinchart Acked-by: Geert Uytterhoeven Acked-by: Rob Clark Acked-by: Jingoo Han Acked-by: Daniel Vetter --- drivers/video/fbdev/exynos/Kconfig | 32 + drivers/video/fbdev/exynos/Makefile | 7 + drivers/video/fbdev/exynos/exynos_mipi_dsi.c | 574 +++++++++++++ .../video/fbdev/exynos/exynos_mipi_dsi_common.c | 880 ++++++++++++++++++++ .../video/fbdev/exynos/exynos_mipi_dsi_common.h | 46 ++ .../video/fbdev/exynos/exynos_mipi_dsi_lowlevel.c | 618 ++++++++++++++ .../video/fbdev/exynos/exynos_mipi_dsi_lowlevel.h | 112 +++ drivers/video/fbdev/exynos/exynos_mipi_dsi_regs.h | 149 ++++ drivers/video/fbdev/exynos/s6e8ax0.c | 898 +++++++++++++++++++++ 9 files changed, 3316 insertions(+) create mode 100644 drivers/video/fbdev/exynos/Kconfig create mode 100644 drivers/video/fbdev/exynos/Makefile create mode 100644 drivers/video/fbdev/exynos/exynos_mipi_dsi.c create mode 100644 drivers/video/fbdev/exynos/exynos_mipi_dsi_common.c create mode 100644 drivers/video/fbdev/exynos/exynos_mipi_dsi_common.h create mode 100644 drivers/video/fbdev/exynos/exynos_mipi_dsi_lowlevel.c create mode 100644 drivers/video/fbdev/exynos/exynos_mipi_dsi_lowlevel.h create mode 100644 drivers/video/fbdev/exynos/exynos_mipi_dsi_regs.h create mode 100644 drivers/video/fbdev/exynos/s6e8ax0.c (limited to 'drivers/video/fbdev/exynos') diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig new file mode 100644 index 000000000000..fcf2d48ac6d1 --- /dev/null +++ b/drivers/video/fbdev/exynos/Kconfig @@ -0,0 +1,32 @@ +# +# 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 + select GENERIC_PHY + 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 + depends on (LCD_CLASS_DEVICE = y) + 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/fbdev/exynos/Makefile b/drivers/video/fbdev/exynos/Makefile new file mode 100644 index 000000000000..b5b1bd228abb --- /dev/null +++ b/drivers/video/fbdev/exynos/Makefile @@ -0,0 +1,7 @@ +# +# 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 diff --git a/drivers/video/fbdev/exynos/exynos_mipi_dsi.c b/drivers/video/fbdev/exynos/exynos_mipi_dsi.c new file mode 100644 index 000000000000..cee9602f9a7b --- /dev/null +++ b/drivers/video/fbdev/exynos/exynos_mipi_dsi.c @@ -0,0 +1,574 @@ +/* linux/drivers/video/exynos/exynos_mipi_dsi.c + * + * Samsung SoC MIPI-DSIM driver. + * + * Copyright (c) 2012 Samsung Electronics Co., Ltd + * + * 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 +#include +#include +#include +#include +#include +#include + +#include