From patchwork Fri Aug 9 23:03:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2842172 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E0115BF546 for ; Fri, 9 Aug 2013 23:02:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C1BB20257 for ; Fri, 9 Aug 2013 23:02:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B6AEF20251 for ; Fri, 9 Aug 2013 23:02:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031478Ab3HIXCf (ORCPT ); Fri, 9 Aug 2013 19:02:35 -0400 Received: from perceval.ideasonboard.com ([95.142.166.194]:54863 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031473Ab3HIXCd (ORCPT ); Fri, 9 Aug 2013 19:02:33 -0400 Received: from avalon.ideasonboard.com (58.11-200-80.adsl-dyn.isp.belgacom.be [80.200.11.58]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CAD0936712; Sat, 10 Aug 2013 01:02:05 +0200 (CEST) From: Laurent Pinchart To: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH/RFC v3 19/19] drm/rcar-du: Port to the Common Display Framework Date: Sat, 10 Aug 2013 01:03:18 +0200 Message-Id: <1376089398-13322-20-git-send-email-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1376089398-13322-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1376089398-13322-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 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 Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/Kconfig | 3 +- drivers/gpu/drm/rcar-du/Makefile | 7 +- drivers/gpu/drm/rcar-du/rcar_du_connector.c | 164 ++++++++++++++++ drivers/gpu/drm/rcar-du/rcar_du_connector.h | 36 ++++ drivers/gpu/drm/rcar-du/rcar_du_crtc.h | 2 +- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 279 ++++++++++++++++++++++++---- drivers/gpu/drm/rcar-du/rcar_du_drv.h | 28 ++- drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 87 ++++----- drivers/gpu/drm/rcar-du/rcar_du_encoder.h | 22 +-- drivers/gpu/drm/rcar-du/rcar_du_kms.c | 116 ++++++++++-- drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c | 131 ------------- drivers/gpu/drm/rcar-du/rcar_du_lvdscon.h | 25 --- drivers/gpu/drm/rcar-du/rcar_du_vgacon.c | 96 ---------- drivers/gpu/drm/rcar-du/rcar_du_vgacon.h | 23 --- include/linux/platform_data/rcar-du.h | 55 +----- 15 files changed, 611 insertions(+), 463 deletions(-) create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_connector.c create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_connector.h delete mode 100644 drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c delete mode 100644 drivers/gpu/drm/rcar-du/rcar_du_lvdscon.h delete mode 100644 drivers/gpu/drm/rcar-du/rcar_du_vgacon.c delete mode 100644 drivers/gpu/drm/rcar-du/rcar_du_vgacon.h diff --git a/drivers/gpu/drm/rcar-du/Kconfig b/drivers/gpu/drm/rcar-du/Kconfig index c590cd9..a54eeba 100644 --- a/drivers/gpu/drm/rcar-du/Kconfig +++ b/drivers/gpu/drm/rcar-du/Kconfig @@ -1,9 +1,10 @@ config DRM_RCAR_DU tristate "DRM Support for R-Car Display Unit" - depends on DRM && ARM + depends on DRM && ARM && OF select DRM_KMS_HELPER select DRM_KMS_CMA_HELPER select DRM_GEM_CMA_HELPER + select VIDEOMODE_HELPERS help Choose this option if you have an R-Car chipset. If M is selected the module will be called rcar-du-drm. diff --git a/drivers/gpu/drm/rcar-du/Makefile b/drivers/gpu/drm/rcar-du/Makefile index 12b8d44..3ac8566 100644 --- a/drivers/gpu/drm/rcar-du/Makefile +++ b/drivers/gpu/drm/rcar-du/Makefile @@ -1,11 +1,10 @@ -rcar-du-drm-y := rcar_du_crtc.o \ +rcar-du-drm-y := rcar_du_connector.o \ + rcar_du_crtc.o \ rcar_du_drv.o \ rcar_du_encoder.o \ rcar_du_group.o \ rcar_du_kms.o \ - rcar_du_lvdscon.o \ - rcar_du_plane.o \ - rcar_du_vgacon.o + rcar_du_plane.o rcar-du-drm-$(CONFIG_DRM_RCAR_LVDS) += rcar_du_lvdsenc.o diff --git a/drivers/gpu/drm/rcar-du/rcar_du_connector.c b/drivers/gpu/drm/rcar-du/rcar_du_connector.c new file mode 100644 index 0000000..a09aada --- /dev/null +++ b/drivers/gpu/drm/rcar-du/rcar_du_connector.c @@ -0,0 +1,164 @@ +/* + * rcar_du_connector.c -- R-Car Display Unit Connector + * + * Copyright (C) 2013 Renesas Corporation + * + * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com) + * + * 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