From patchwork Mon Aug 23 15:57:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthilvadivu Guruswamy X-Patchwork-Id: 124681 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7NFwQVW016508 for ; Mon, 23 Aug 2010 15:59:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754237Ab0HWP6Z (ORCPT ); Mon, 23 Aug 2010 11:58:25 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:37913 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754204Ab0HWP6W (ORCPT ); Mon, 23 Aug 2010 11:58:22 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o7NFwEeC031164 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Aug 2010 10:58:16 -0500 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o7NFwA5u001706; Mon, 23 Aug 2010 21:28:10 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id o7NFwAN2011209; Mon, 23 Aug 2010 21:28:10 +0530 Received: (from a0876342@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id o7NFwA13011207; Mon, 23 Aug 2010 21:28:10 +0530 From: Guruswamy Senthilvadivu To: linux-omap@vger.kernel.org, tomi.valkeinen@nokia.com, paul@pwsan.com, khilman@ti.com Cc: Senthilvadivu Guruswamy Subject: [PATCH 04/20] Create platform_driver for each DSS HW IP Date: Mon, 23 Aug 2010 21:27:53 +0530 Message-Id: <1282579089-10487-5-git-send-email-svadivu@ti.com> X-Mailer: git-send-email 1.5.6.6 In-Reply-To: <1282579089-10487-4-git-send-email-svadivu@ti.com> References: <1282579089-10487-1-git-send-email-svadivu@ti.com> <1282579089-10487-2-git-send-email-svadivu@ti.com> <1282579089-10487-3-git-send-email-svadivu@ti.com> <1282579089-10487-4-git-send-email-svadivu@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 23 Aug 2010 15:59:08 +0000 (UTC) diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index bcbb077..3b6a309 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c @@ -707,6 +707,62 @@ static int omap_dss_resume(struct platform_device *pdev) return dss_resume_all_devices(); } +/* DSS HW IP initialisation */ +static int omap_dsshw_probe(struct platform_device *pdev) +{ + return 0; +} + +static int omap_dsshw_remove(struct platform_device *pdev) +{ + return 0; +} + +/* DISPC HW IP initialisation */ +static int omap_dispchw_probe(struct platform_device *pdev) +{ + return 0; +} + +static int omap_dispchw_remove(struct platform_device *pdev) +{ + return 0; +} + +/* DSI1 HW IP initialisation */ +static int omap_dsi1hw_probe(struct platform_device *pdev) +{ + return 0; +} + +static int omap_dsi1hw_remove(struct platform_device *pdev) +{ + return 0; +} + +/* RFBI HW IP initialisation */ +static int omap_rfbihw_probe(struct platform_device *pdev) +{ + return 0; +} + +static int omap_rfbihw_remove(struct platform_device *pdev) +{ + return 0; +} + +/* VENC HW IP initialisation */ +static int omap_venchw_probe(struct platform_device *pdev) +{ + return 0; +} + +static int omap_venchw_remove(struct platform_device *pdev) +{ + return 0; +} + + static struct platform_driver omap_dss_driver = { .probe = omap_dss_probe, .remove = omap_dss_remove, @@ -719,6 +775,66 @@ static struct platform_driver omap_dss_driver = { }, }; +static struct platform_driver omap_dsshw_driver = { + .probe = omap_dsshw_probe, + .remove = omap_dsshw_remove, + .shutdown = NULL, + .suspend = NULL, + .resume = NULL, + .driver = { + .name = "dss", + .owner = THIS_MODULE, + }, +}; + +static struct platform_driver omap_dispchw_driver = { + .probe = omap_dispchw_probe, + .remove = omap_dispchw_remove, + .shutdown = NULL, + .suspend = NULL, + .resume = NULL, + .driver = { + .name = "dss_dispc", + .owner = THIS_MODULE, + }, +}; + +static struct platform_driver omap_dsi1hw_driver = { + .probe = omap_dsi1hw_probe, + .remove = omap_dsi1hw_remove, + .shutdown = NULL, + .suspend = NULL, + .resume = NULL, + .driver = { + .name = "dss_dsi1", + .owner = THIS_MODULE, + }, +}; + +static struct platform_driver omap_rfbihw_driver = { + .probe = omap_rfbihw_probe, + .remove = omap_rfbihw_remove, + .shutdown = NULL, + .suspend = NULL, + .resume = NULL, + .driver = { + .name = "dss_rfbi", + .owner = THIS_MODULE, + }, +}; + +static struct platform_driver omap_venchw_driver = { + .probe = omap_venchw_probe, + .remove = omap_venchw_remove, + .shutdown = NULL, + .suspend = NULL, + .resume = NULL, + .driver = { + .name = "dss_venc", + .owner = THIS_MODULE, + }, +}; + /* BUS */ static int dss_bus_match(struct device *dev, struct device_driver *driver) { @@ -984,6 +1100,11 @@ static int __init omap_dss_init(void) static int __init omap_dss_init2(void) { + platform_driver_register(&omap_dsshw_driver); + platform_driver_register(&omap_dispchw_driver); + platform_driver_register(&omap_dsi1hw_driver); + platform_driver_register(&omap_rfbihw_driver); + platform_driver_register(&omap_venchw_driver); return platform_driver_register(&omap_dss_driver); }