From 855e358f506445228fac37a370034b099642d582 Mon Sep 17 00:00:00 2001 From: Donghwa Lee Date: Wed, 8 Feb 2012 12:47:39 -0800 Subject: [PATCH] --- yaml --- r: 294198 b: refs/heads/master c: 7258cc14f310b912b6fea5421aedb9beb69d8581 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/video/Kconfig | 2 +- trunk/drivers/video/Makefile | 2 + trunk/drivers/video/exynos/Kconfig | 22 + trunk/drivers/video/exynos/Makefile | 6 + trunk/drivers/video/exynos/exynos_mipi_dsi.c | 600 ++++++++++++ .../video/exynos/exynos_mipi_dsi_common.c | 896 ++++++++++++++++++ .../video/exynos/exynos_mipi_dsi_common.h | 46 + .../video/exynos/exynos_mipi_dsi_lowlevel.c | 618 ++++++++++++ .../video/exynos/exynos_mipi_dsi_lowlevel.h | 112 +++ .../video/exynos/exynos_mipi_dsi_regs.h | 149 +++ trunk/include/video/exynos_mipi_dsim.h | 359 +++++++ 12 files changed, 2812 insertions(+), 2 deletions(-) create mode 100644 trunk/drivers/video/exynos/Kconfig create mode 100644 trunk/drivers/video/exynos/Makefile create mode 100644 trunk/drivers/video/exynos/exynos_mipi_dsi.c create mode 100644 trunk/drivers/video/exynos/exynos_mipi_dsi_common.c create mode 100644 trunk/drivers/video/exynos/exynos_mipi_dsi_common.h create mode 100644 trunk/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c create mode 100644 trunk/drivers/video/exynos/exynos_mipi_dsi_lowlevel.h create mode 100644 trunk/drivers/video/exynos/exynos_mipi_dsi_regs.h create mode 100644 trunk/include/video/exynos_mipi_dsim.h diff --git a/[refs] b/[refs] index 2b9626dba5f3..d9e361b1db04 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 12fa8350244d73b6111ec9bc6c2fd5d49fa601b5 +refs/heads/master: 7258cc14f310b912b6fea5421aedb9beb69d8581 diff --git a/trunk/drivers/video/Kconfig b/trunk/drivers/video/Kconfig index 6ca0c407c144..e61d7ce35595 100644 --- a/trunk/drivers/video/Kconfig +++ b/trunk/drivers/video/Kconfig @@ -2411,7 +2411,7 @@ config FB_PUV3_UNIGFX source "drivers/video/omap/Kconfig" source "drivers/video/omap2/Kconfig" - +source "drivers/video/exynos/Kconfig" source "drivers/video/backlight/Kconfig" if VT diff --git a/trunk/drivers/video/Makefile b/trunk/drivers/video/Makefile index 142606814d98..274b04ebedec 100644 --- a/trunk/drivers/video/Makefile +++ b/trunk/drivers/video/Makefile @@ -15,6 +15,8 @@ obj-$(CONFIG_VT) += console/ obj-$(CONFIG_LOGO) += logo/ obj-y += backlight/ +obj-$(CONFIG_EXYNOS_VIDEO) += exynos/ + obj-$(CONFIG_FB_CFB_FILLRECT) += cfbfillrect.o obj-$(CONFIG_FB_CFB_COPYAREA) += cfbcopyarea.o obj-$(CONFIG_FB_CFB_IMAGEBLIT) += cfbimgblt.o diff --git a/trunk/drivers/video/exynos/Kconfig b/trunk/drivers/video/exynos/Kconfig new file mode 100644 index 000000000000..645b8a597199 --- /dev/null +++ b/trunk/drivers/video/exynos/Kconfig @@ -0,0 +1,22 @@ +# +# 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. + +endif # EXYNOS_VIDEO diff --git a/trunk/drivers/video/exynos/Makefile b/trunk/drivers/video/exynos/Makefile new file mode 100644 index 000000000000..a1ae82abd6b8 --- /dev/null +++ b/trunk/drivers/video/exynos/Makefile @@ -0,0 +1,6 @@ +# +# 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 diff --git a/trunk/drivers/video/exynos/exynos_mipi_dsi.c b/trunk/drivers/video/exynos/exynos_mipi_dsi.c new file mode 100644 index 000000000000..557091dc0e97 --- /dev/null +++ b/trunk/drivers/video/exynos/exynos_mipi_dsi.c @@ -0,0 +1,600 @@ +/* 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