From patchwork Tue Sep 24 14:23:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 2934011 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3D7769F289 for ; Tue, 24 Sep 2013 14:23:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B98FE20374 for ; Tue, 24 Sep 2013 14:23:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08E9520318 for ; Tue, 24 Sep 2013 14:23:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754033Ab3IXOXt (ORCPT ); Tue, 24 Sep 2013 10:23:49 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:59180 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753991Ab3IXOXr (ORCPT ); Tue, 24 Sep 2013 10:23:47 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MTM00IT9VZIZZ40@mailout3.w1.samsung.com>; Tue, 24 Sep 2013 15:23:42 +0100 (BST) X-AuditID: cbfec7f4-b7f0a6d000007b1b-dc-5241a06eea0b Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 14.7B.31515.E60A1425; Tue, 24 Sep 2013 15:23:42 +0100 (BST) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MTM005Q2VYZIY30@eusync2.samsung.com>; Tue, 24 Sep 2013 15:23:42 +0100 (BST) From: Andrzej Hajda To: Laurent Pinchart Cc: Andrzej Hajda , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, Kyungmin Park , Tomasz Figa , Donghwa Lee , Sylwester Nawrocki Subject: [RFC PATCH 2/4] mipi-dsi-exynos: add driver Date: Tue, 24 Sep 2013 16:23:14 +0200 Message-id: <1380032596-18612-3-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.1.2 In-reply-to: <1380032596-18612-1-git-send-email-a.hajda@samsung.com> References: <1380032596-18612-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNJMWRmVeSWpSXmKPExsVy+t/xK7p5CxyDDCY2yFncWneO1eL6eTuL K1/fs1mcbXrDbjGx6Q6LxYm+D6wWPRu2slocftPOarF+xmsWB06P2R0zWT3udx9n8ujbsorR 4/MmuQCWKC6blNSczLLUIn27BK6MRa+msRf8XspUsf/LDZYGxg/vGLsYOTkkBEwk2h7NY4aw xSQu3FvP1sXIxSEksJRRYvKCaYwQTh+TxLu9nUwgVWwCmhJ/N98EquLgEBFwkHi31gGkhllg GZNEw/13bCA1wkBT7zy6DFbDIqAqMXmNJkiYV8BZ4trp9UwQyxQkfl4+AVbOKeAiMfnqD7C4 EFDNgbUbGCcw8i5gZFjFKJpamlxQnJSea6hXnJhbXJqXrpecn7uJERJgX3YwLj5mdYhRgINR iYf3YoJDkBBrYllxZe4hRgkOZiURXs1axyAh3pTEyqrUovz4otKc1OJDjEwcnFINjFv1lsX6 POOUdGgs+3MluWLOQVOPWU2X7+e0/X/y+HXMnfsvdq2Z3vY16aTEk11upxsvn/W9HXt/TcfZ G87t66YozL9VmB/DdfdGSxPzZe93lst/tEiv33O7vbSjIW8r9/Wa/QY6j77c2xjKM9WHrebM 299cyRdtTmm8Dbk6tTL5kUj33RU3dyxTYinOSDTUYi4qTgQAYYIyKw4CAAA= Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds mipi-dsi-bus master driver for Exynos chipset family. Signed-off-by: Tomasz Figa Signed-off-by: Donghwa Lee Signed-off-by: Sylwester Nawrocki Signed-off-by: Andrzej Hajda Signed-off-by: Kyungmin Park --- drivers/video/display/Kconfig | 4 + drivers/video/display/Makefile | 1 + drivers/video/display/mipi-dsi-exynos.c | 1310 +++++++++++++++++++++++++++++++ include/video/mipi-dsi-exynos.h | 41 + 4 files changed, 1356 insertions(+) create mode 100644 drivers/video/display/mipi-dsi-exynos.c create mode 100644 include/video/mipi-dsi-exynos.h diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig index 619b05d..0a1e90b 100644 --- a/drivers/video/display/Kconfig +++ b/drivers/video/display/Kconfig @@ -24,6 +24,10 @@ config DISPLAY_MIPI_DSI tristate default n +config DISPLAY_MIPI_DSI_EXYNOS + select DISPLAY_MIPI_DSI + tristate "Samsung SoC MIPI DSI Master" + config DISPLAY_PANEL_DPI tristate "DPI (Parallel) Display Panels" ---help--- diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile index b323fd4..2fd84f5 100644 --- a/drivers/video/display/Makefile +++ b/drivers/video/display/Makefile @@ -4,6 +4,7 @@ obj-$(CONFIG_DISPLAY_CORE) += display.o obj-$(CONFIG_DISPLAY_CONNECTOR_VGA) += con-vga.o obj-$(CONFIG_DISPLAY_MIPI_DBI) += mipi-dbi-bus.o obj-$(CONFIG_DISPLAY_MIPI_DSI) += mipi-dsi-bus.o +obj-$(CONFIG_DISPLAY_MIPI_DSI_EXYNOS) += mipi-dsi-exynos.o obj-$(CONFIG_DISPLAY_PANEL_DPI) += panel-dpi.o obj-$(CONFIG_DISPLAY_PANEL_R61505) += panel-r61505.o obj-$(CONFIG_DISPLAY_PANEL_R61517) += panel-r61517.o diff --git a/drivers/video/display/mipi-dsi-exynos.c b/drivers/video/display/mipi-dsi-exynos.c new file mode 100644 index 0000000..e094744 --- /dev/null +++ b/drivers/video/display/mipi-dsi-exynos.c @@ -0,0 +1,1310 @@ +/* + * 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