From patchwork Wed Jan 30 15:39:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2068531 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 78A8ADF264 for ; Wed, 30 Jan 2013 15:45:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6775BE5F66 for ; Wed, 30 Jan 2013 07:45:15 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id 1493CE5D30 for ; Wed, 30 Jan 2013 07:39:40 -0800 (PST) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MHG00I5Z3I3S1O0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 31 Jan 2013 00:39:39 +0900 (KST) X-AuditID: cbfee61a-b7f7d6d000000f4e-ef-51093ebb8c01 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 23.67.03918.BBE39015; Thu, 31 Jan 2013 00:39:39 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MHG009Z23H7XH70@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 31 Jan 2013 00:39:39 +0900 (KST) From: Tomasz Figa To: dri-devel@lists.freedesktop.org Subject: [RFC PATCH 3/4] video: display: Add exynos-dsi video source driver Date: Wed, 30 Jan 2013 16:39:02 +0100 Message-id: <1359560343-31636-4-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1359560343-31636-1-git-send-email-t.figa@samsung.com> References: <1359560343-31636-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCJMWRmVeSWpSXmKPExsVy+t9jAd3ddpyBBlNfCFpc+fqezYHR4373 caYAxigum5TUnMyy1CJ9uwSujIOH77AVvF/CVHGlfzJrA+PSd4xdjJwcEgImEo0th9ghbDGJ C/fWs3UxcnEICSxilPh4pJUNJCEksI5J4nRjJYjNJqAm8bnhEVhcREBZ4u/EVYwgDcwCz5gl 9p09zgqSEBbwlphw4QVzFyMHB4uAqsTsdx4gYV4BJ4kF349BLZOXeHq/D2wOp4CzxL/N99kh djlJXNi9n2UCI+8CRoZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmbGMF+fya1g3Flg8UhRgEO RiUe3gUv2AOFWBPLiitzDzFKcDArifAeMuEMFOJNSaysSi3Kjy8qzUktPsQozcGiJM7LeOpJ gJBAemJJanZqakFqEUyWiYNTqoEx0c/w2DmRYrG0aYGeJoePvg/7NT/mjLtpusUlx8BNYYEX UsMzmCzrjhwwrFKcc/pFmHTUl+PVDh8nqYsHaJz56Kf+2y585eEjCaVcM/dZtq1P/RFg/mtx /YSMyYFXTnB+3xc8Wbwne4va77KT8m7z45fnr38oVelgffrbs1sfnc5ESXmu4NdQYinOSDTU Yi4qTgQApvnKEvcBAAA= Cc: linux-fbdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, ville.syrjala@intel.com, s.nawrocki@samsung.com, dh09.lee@samsung.com, tomasz.figa@gmail.com, kyungmin.park@samsung.com, tomi.valkeinen@ti.com, Laurent Pinchart , rob@ti.com, Vikas Sajjan , m.szyprowski@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org This patch adds new driver for DSI master block available in Samsung Exynos SoCs. The driver is designed and written specifically for Common Display Framework. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- drivers/video/display/Kconfig | 3 + drivers/video/display/Makefile | 1 + drivers/video/display/source-exynos_dsi.c | 1313 +++++++++++++++++++++++++++++ include/video/exynos_dsi.h | 41 + 4 files changed, 1358 insertions(+) create mode 100644 drivers/video/display/source-exynos_dsi.c create mode 100644 include/video/exynos_dsi.h diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig index 477192d..b14527a 100644 --- a/drivers/video/display/Kconfig +++ b/drivers/video/display/Kconfig @@ -6,5 +6,8 @@ menuconfig DISPLAY_CORE if DISPLAY_CORE +config DISPLAY_SOURCE_EXYNOS_DSI + tristate "Samsung SoC MIPI DSI Master" + endif # DISPLAY_CORE diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile index bd93496..40a283a 100644 --- a/drivers/video/display/Makefile +++ b/drivers/video/display/Makefile @@ -1 +1,2 @@ obj-$(CONFIG_DISPLAY_CORE) += display-core.o +obj-$(CONFIG_DISPLAY_SOURCE_EXYNOS_DSI) += source-exynos_dsi.o diff --git a/drivers/video/display/source-exynos_dsi.c b/drivers/video/display/source-exynos_dsi.c new file mode 100644 index 0000000..30b15bf --- /dev/null +++ b/drivers/video/display/source-exynos_dsi.c @@ -0,0 +1,1313 @@ +/* + * Samsung SoC MIPI DSI Master driver. + * + * Copyright (c) 2012 Samsung Electronics Co., Ltd + * + * Contacts: Tomasz Figa + * + * 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