From patchwork Mon Mar 3 13:30:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 3754151 Return-Path: X-Original-To: patchwork-dri-devel@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 1A0499F38E for ; Mon, 3 Mar 2014 13:30:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1035201F0 for ; Mon, 3 Mar 2014 13:30:34 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7EEB8203B6 for ; Mon, 3 Mar 2014 13:30:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E8AF6FB247; Mon, 3 Mar 2014 05:30:23 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BDB0FB243 for ; Mon, 3 Mar 2014 05:30:18 -0800 (PST) Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1V00HZG46GLQD0@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 03 Mar 2014 22:30:16 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.113]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id EF.91.14803.7E384135; Mon, 03 Mar 2014 22:30:15 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-88-531483e75e80 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 1A.A7.29263.7E384135; Mon, 03 Mar 2014 22:30:15 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.252.75.62]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N1V002RJ46EWY80@mmp1.samsung.com>; Mon, 03 Mar 2014 22:30:15 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [RFC PATCH 2/3] drm/exynos: add super device support Date: Mon, 03 Mar 2014 22:30:12 +0900 Message-id: <1393853413-22641-3-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1393853413-22641-1-git-send-email-inki.dae@samsung.com> References: <1393853413-22641-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrILMWRmVeSWpSXmKPExsWyRsSkUPdFs0iwwX5ei1vrzrFa9J47yWRx 5et7NotJ9yewWJxtesNucXfDWUaLee0vWR3YPWY3XGTx2P7tAavH/e7jTB59W1YxBrBEcdmk pOZklqUW6dslcGUsvrOdsWDmKaaKw4tXMTUwTprE1MXIySEhYCJx6PkOZghbTOLCvfVsXYxc HEICSxkl3r6YDlTEAVbUO1MHIr6IUaL7zWIWkAYhgW4miY4vBiA2m4CqxMQV99lAbBEBU4mO SUtZQBqYBaYxSkxu62QESQgL2EosmH4FzGYBaljX9hLsCl4BF4l35yczQixTkJgzyQYkzCng KrHh0Bt2kLAQUMmJfXIgIyUEFrFLnPk+mQ1ijIDEt8mHWCBaZSU2HYD6RVLi4IobLBMYhRcw MqxiFE0tSC4oTkovMtUrTswtLs1L10vOz93ECAzu0/+eTdzBeP+A9SHGZKBxE5mlRJPzgdGR VxJvaGxmZGFqYmpsZG5pRpqwkjhv+qOkICGB9MSS1OzU1ILUovii0pzU4kOMTBycUg2MS90v XeRyu+D6QMll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MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: t.stanislaws@samsung.com, a.hajda@samsung.com, Kyungmin Park 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@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 super device support to bind sub drivers using device tree. For this, we should add a super device node to each machine dt files like below example, exynos-drm { crtcs = <&fimd>; connectors = <&dsi>; }; crtcs propery can declare crtc device nodes, fimd and mixer. And connectors propery can declare connector device nodes, MIPI-DSI, eDP, and HDMI. With this patch, we can resolve the probing order issue without some lists. So this patch also removes unnecessary lists and stuff related to these lists. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_dp_core.c | 45 ++++--- drivers/gpu/drm/exynos/exynos_drm_core.c | 204 +---------------------------- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 17 +++ drivers/gpu/drm/exynos/exynos_drm_crtc.h | 4 + drivers/gpu/drm/exynos/exynos_drm_drv.c | 209 ++++++++++++++++-------------- drivers/gpu/drm/exynos/exynos_drm_drv.h | 57 +++----- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 48 ++++--- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 48 +++++-- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 61 +++++++-- drivers/gpu/drm/exynos/exynos_hdmi.c | 46 ++++--- drivers/gpu/drm/exynos/exynos_mixer.c | 54 ++++++-- 11 files changed, 374 insertions(+), 419 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c index a59bca9..cb9aa58 100644 --- a/drivers/gpu/drm/exynos/exynos_dp_core.c +++ b/drivers/gpu/drm/exynos/exynos_dp_core.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include