From: inki.dae@samsung.com Subject: [RFC PATCH 2/3] drm/exynos: add super device support Date: Tue, 4 Mar 2014 00:13:40 +0900 Message-ID: <1393859620-3764-1-git-send-email-inki.dae@samsung.com> References: <1393853413-22641-3-git-send-email-inki.dae@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com [209.85.160.45]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F72AFB348 for ; Mon, 3 Mar 2014 07:13:48 -0800 (PST) Received: by mail-pb0-f45.google.com with SMTP id uo5so3140862pbc.18 for ; Mon, 03 Mar 2014 07:13:48 -0800 (PST) In-Reply-To: <1393853413-22641-3-git-send-email-inki.dae@samsung.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: t.stanislaws@samsung.com, a.hajda@samsung.com, Kyungmin Park List-Id: dri-devel@lists.freedesktop.org From: Inki Dae 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 { compatible = "samsung,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