Received: by 10.223.164.202 with SMTP id h10csp2464571wrb; Mon, 27 Nov 2017 18:00:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ4QtVxJIpRBA10+6PqFzdhJ2SRV4yv+9Nuc2/bItzo7+t/CP36Lj8tnXH8ZHTQBgBz9pdh X-Received: by 10.101.66.197 with SMTP id l5mr39145019pgp.240.1511834431357; Mon, 27 Nov 2017 18:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511834431; cv=none; d=google.com; s=arc-20160816; b=X7LnU9EUb0n4sygpZHYee3pyisPcw3PDQ6momfL/4ebAsUl/b1nGj7/oS6erXGLKqm e0E3l6k2so8XAmNC4hK2YylIWHjI0Zbm3C6o0S83hjgk8Rh5Uo4l+5W+2OY721ppWEhj 1tN5iZ5Q+AwXj2yxju/vPb8Y4Y6vqK+xg3xm4yytY8uA5Qh9rb+E0VGAZvIHR74IYwC+ 1klirFInhKBPOiJymkcUisGfTEJ5yCCoK2IjjEyDF1tmjaYYmj0+PAo2DYduRDTvn7j6 YHs0yd4T6rer7SYXqwmTYWeI65NhBf+MPHBDn9GjbUr10rPPGMuk5UtW0TZ1LU0Wfs1P FF7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=PjO7Kz60WAC4rigIhnzt/0czN+e+Ah+gtK6nqXZw/N8=; b=ThaZstJ7Y+GXXXRK9W1HcXOAOU/5DkvHUK3VUyMMVI3j3qJuFkJQ14xJtCoOqQG+/B Bznp6nMN33n6NocU6S9igVcRo+b1hTTfaHjqD0CjkTqdrWZkiF9P/mydVqawI2vH+VbU dPZMjiW1F5KMpv2v2PY/MCDUA4w4eDJubp3/FmVRyHzJkvIOWW6heZKGS6V8jHRf0b7h +gAQGXNUCBAAnPUZualH3XUjRZxTq5WWX6NmgiMDIrk1cOx9Hi2C33GKp3VKi8CWYpJS CTq6HQ5WvPYIhifthPnWLKgQA9FJSrr9VSqtkMuPbqslV+kFBaIKwQpMJERz30n33X4l WtTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si22140972pll.79.2017.11.27.18.00.18; Mon, 27 Nov 2017 18:00:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753475AbdK1B7c (ORCPT + 78 others); Mon, 27 Nov 2017 20:59:32 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:39549 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752889AbdK1B7a (ORCPT ); Mon, 27 Nov 2017 20:59:30 -0500 Received: by mail-pl0-f67.google.com with SMTP id l16so9674008pli.6 for ; Mon, 27 Nov 2017 17:59:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PjO7Kz60WAC4rigIhnzt/0czN+e+Ah+gtK6nqXZw/N8=; b=ldEWVpPJsLEtTuShHl1/OrbhKkJYnfWZEqn+KUGj4xqVhLRmnMQdyk34KZPc7Eargj HgWeN3gjrv/0D/9OGNqiGTggYE3mt4TcU9S/D/0vRdtM5p9EcsnmXURrckBC1fnHTcv9 sggLioR7Es0fXet3xpiDvRlrT8/NhSY0y8TvQ7uDoWcf/2wdiGxnG5A+uasI3MdOhWBB 3bpgz2anS+A4olNNM6ug6sShDxIKW01QM7MmN1O6Esl98t6lbad6HYqMTbwCJ2PGdUbH Xa2M4Ho5bdQRdjKThmOSh74NOk85r8t57ZTUza0tBtR1LnvUw6oNhzZPm8DahAeqaFHi 03CQ== X-Gm-Message-State: AJaThX5Oti3U0BcvX3dVWeTEqkhn1x1ix6URWv+Eq3xpmhEYu0xQeP7d CbuwW3cz415HbTpyPnixw18= X-Received: by 10.159.214.140 with SMTP id n12mr39598097plp.4.1511834369066; Mon, 27 Nov 2017 17:59:29 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id s66sm57209154pfd.74.2017.11.27.17.59.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Nov 2017 17:59:28 -0800 (PST) From: Nickey Yang To: mark.yao@rock-chips.com, robh+dt@kernel.org, heiko@sntech.de, mark.rutland@arm.com, airlied@linux.ie Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, seanpaul@chromium.org, briannorris@chromium.org, mka@chromium.org, hoegsberg@gmail.com, architt@codeaurora.org, philippe.cornu@st.com, yannick.fertre@st.com, hl@rock-chips.com, zyw@rock-chips.com, xbl@rock-chips.com, nickey.yang@rock-chips.com Subject: [PATCH v2 2/3] drm/rockchip: Add ROCKCHIP DW MIPI DSI controller driver Date: Tue, 28 Nov 2017 09:55:24 +0800 Message-Id: <1511834125-7756-3-git-send-email-nickey.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1511834125-7756-1-git-send-email-nickey.yang@rock-chips.com> References: <1511834125-7756-1-git-send-email-nickey.yang@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the ROCKCHIP DSI controller driver that uses the Synopsys DesignWare MIPI DSI host controller bridge. Signed-off-by: Nickey Yang --- drivers/gpu/drm/rockchip/Kconfig | 2 +- drivers/gpu/drm/rockchip/Makefile | 2 +- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 1349 ----------------------- drivers/gpu/drm/rockchip/dw-mipi-dsi_rockchip.c | 756 +++++++++++++ drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 2 +- 6 files changed, 760 insertions(+), 1353 deletions(-) delete mode 100644 drivers/gpu/drm/rockchip/dw-mipi-dsi.c create mode 100644 drivers/gpu/drm/rockchip/dw-mipi-dsi_rockchip.c diff --git a/drivers/gpu/drm/rockchip/Kconfig b/drivers/gpu/drm/rockchip/Kconfig index 0ccc762..9eb4795 100644 --- a/drivers/gpu/drm/rockchip/Kconfig +++ b/drivers/gpu/drm/rockchip/Kconfig @@ -7,7 +7,7 @@ config DRM_ROCKCHIP select VIDEOMODE_HELPERS select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP select DRM_DW_HDMI if ROCKCHIP_DW_HDMI - select DRM_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI + select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC help Choose this option if you have a Rockchip soc chipset. diff --git a/drivers/gpu/drm/rockchip/Makefile b/drivers/gpu/drm/rockchip/Makefile index a314e21..c05fe47 100644 --- a/drivers/gpu/drm/rockchip/Makefile +++ b/drivers/gpu/drm/rockchip/Makefile @@ -11,7 +11,7 @@ rockchipdrm-$(CONFIG_DRM_FBDEV_EMULATION) += rockchip_drm_fbdev.o rockchipdrm-$(CONFIG_ROCKCHIP_ANALOGIX_DP) += analogix_dp-rockchip.o rockchipdrm-$(CONFIG_ROCKCHIP_CDN_DP) += cdn-dp-core.o cdn-dp-reg.o rockchipdrm-$(CONFIG_ROCKCHIP_DW_HDMI) += dw_hdmi-rockchip.o -rockchipdrm-$(CONFIG_ROCKCHIP_DW_MIPI_DSI) += dw-mipi-dsi.o +rockchipdrm-$(CONFIG_ROCKCHIP_DW_MIPI_DSI) += dw-mipi-dsi_rockchip.o rockchipdrm-$(CONFIG_ROCKCHIP_INNO_HDMI) += inno_hdmi.o rockchipdrm-$(CONFIG_ROCKCHIP_LVDS) += rockchip_lvds.o diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c deleted file mode 100644 index b15755b..0000000 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c +++ /dev/null @@ -1,1349 +0,0 @@ -/* - * Copyright (c) 2016, Fuzhou Rockchip Electronics Co., Ltd - * - * 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 -#include -#include -#include -#include -#include -#include -#include -#include