From patchwork Wed Nov 7 14:44:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: archit taneja X-Patchwork-Id: 1710891 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 5CAC23FC8F for ; Wed, 7 Nov 2012 14:45:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753820Ab2KGOp3 (ORCPT ); Wed, 7 Nov 2012 09:45:29 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:50644 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753978Ab2KGOp1 (ORCPT ); Wed, 7 Nov 2012 09:45:27 -0500 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id qA7EjRr8003639; Wed, 7 Nov 2012 08:45:27 -0600 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id qA7EjQ5V011057; Wed, 7 Nov 2012 08:45:26 -0600 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Wed, 7 Nov 2012 08:45:26 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id qA7EjQQ0016252; Wed, 7 Nov 2012 08:45:26 -0600 Received: from localhost (a0393947pc.apr.dhcp.ti.com [172.24.136.151]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id qA7EjKw12933; Wed, 7 Nov 2012 08:45:25 -0600 (CST) From: Archit Taneja To: CC: , , Archit Taneja Subject: [RFC 10/11] ARCH: ARM: OMAP: Create a platform device for writeback Date: Wed, 7 Nov 2012 20:14:28 +0530 Message-ID: <1352299469-17609-11-git-send-email-archit@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352299469-17609-1-git-send-email-archit@ti.com> References: <1352299469-17609-1-git-send-email-archit@ti.com> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org writeback is a like DPI in the sense that it's completelty a part of DISPC. Hence it doesn't have it's own resource, or a hwmod entity tied to it. Create a simple platfrom device for writeback in omap_display_init. Set the parent to the omapdss_dss platform device like done for other DSS submodules. Signed-off-by: Archit Taneja --- arch/arm/mach-omap2/display.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index 282c814e..2e01b61 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c @@ -414,6 +414,15 @@ int __init omap_display_init(struct omap_dss_board_info *board_data) } } + if (cpu_is_omap44xx()) { + pdev = create_simple_dss_pdev("omapdss_writeback", -1, + NULL, 0, dss_pdev); + if (IS_ERR(pdev)) { + pr_err("Could not build platform_device for omapdss_writeback\n"); + return PTR_ERR(pdev); + } + } + return 0; }