From patchwork Tue Jan 2 10:09:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 10140241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F217F601A1 for ; Tue, 2 Jan 2018 10:14:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF19928AB5 for ; Tue, 2 Jan 2018 10:14:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E344728AB7; Tue, 2 Jan 2018 10:14:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7596B28AB5 for ; Tue, 2 Jan 2018 10:14:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5b3YlwEUpCNFay83xIdzOmmQYBAdd5BTbnyGSFAkkME=; b=Wmejwcxn0t2rSL C7w124VSw1zgM1ehMNAlVnxMiETqZwF81kHGYfnfsXZ43DZlViurCMof0RvCq9+3In4yuByjNBgHu UXsmNXmJ5m3agO5JNAjRP0O3y+jSWt+sL9yGDocGTauzegA9Dz9a/8Qs+Fn8JQv6SB7fjU1Xr5k6m vibC2yI/HqvrW+EFOOewzWrWLxs8Uxoo9KtH9C6BYwOUEEAUxg/eUZVtJvf/TCXKnMgh4HEu27SEp dhpfqWa5+B/fTwyhA4KTj8N3+NGz6WVvNeZ+3+oRMSXBVw3Xv5WeNwvJeBnX4ZemdCkFcc2lCLiQj 7TdnTXISUshRqiRgQESw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eWJag-0004Q1-1j; Tue, 02 Jan 2018 10:14:38 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWJYv-0003Ms-B1 for linux-arm-kernel@bombadil.infradead.org; Tue, 02 Jan 2018 10:12:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+1VQqI0U/dqM4wK/lxiYkVSZrOwtgwVyij1MjUpAo58=; b=FzYMpRCYwCEMG7jEMHDfXrnqY eZ8QqtQ3RT/BBHML7+hZsODtFi3lJyc5T+l7gyswYNnwC6Hj6TGOfBAyUdZLI5YGT0av+A3m3CY5/ m7gQPWd82TXmefCjpBaE74JrJu3EtHyViyh1miNx+LhMCRlw/CIx8vSvauOiZYTNSi3jP23RtT1G2 RjTjzMbC4OElXaQeFTh/74BSXenF6C8IZITAsPmQdz1Mmty58MHFMXzn0KPQ4nxS0+ldB4FoBArDR 9KoMqc+OcWNcbxWSO1aRECbrR7RI6r+5qRwggoMWEligYuHFd5uWMGRWblL+HH76WP+m4m9Mu+oJ2 8v+gN3ccg==; Received: from fllnx209.ext.ti.com ([198.47.19.16]) by merlin.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWJYs-0008Ha-Ia for linux-arm-kernel@lists.infradead.org; Tue, 02 Jan 2018 10:12:47 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w02AAc4q013338; Tue, 2 Jan 2018 04:10:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1514887838; bh=3r8xIvkqJX4GhgeN8eBDbjN5ojTthNCCcU22XbmsAyE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RdVMoW9DwqN7BVCP8SxrFEuX/vrQqLFVIh+izsjZMouY1ee0+GGYyW5CcS2FzWc6a 0fpFvkbqH8BDihmQm1lmp1diIDk3KMRfDXYZIWPivU4SH02o4D6rWFB20ki4Aa2usw rUSfZUU2oWiOKS0N08wY7iicAERN6UIaeb2vNaWU= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w02AAXHO025911; Tue, 2 Jan 2018 04:10:33 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 2 Jan 2018 04:10:33 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 2 Jan 2018 04:10:33 -0600 Received: from ula0393675.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w02AA31P003092; Tue, 2 Jan 2018 04:10:29 -0600 From: Keerthy To: , , , Subject: [PATCH v6 06/10] clocksource: dmtimer: Populate the timer ops to the pdata Date: Tue, 2 Jan 2018 15:39:55 +0530 Message-ID: <1514887799-24605-7-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1514887799-24605-1-git-send-email-j-keerthy@ti.com> References: <1514887799-24605-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, grygorii.strashko@ti.com, j-keerthy@ti.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, t-kristo@ti.com, ladis@linux-mips.org, sebastian.reichel@collabora.co.uk, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the timer ops to the platform data Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- drivers/clocksource/timer-dm.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/clocksource/timer-dm.c b/drivers/clocksource/timer-dm.c index afe1dc9..1cbd954 100644 --- a/drivers/clocksource/timer-dm.c +++ b/drivers/clocksource/timer-dm.c @@ -922,8 +922,33 @@ static int omap_dm_timer_remove(struct platform_device *pdev) return ret; } +static struct omap_dm_timer_ops dmtimer_ops = { + .request_by_node = omap_dm_timer_request_by_node, + .request_specific = omap_dm_timer_request_specific, + .request = omap_dm_timer_request, + .set_source = omap_dm_timer_set_source, + .get_irq = omap_dm_timer_get_irq, + .set_int_enable = omap_dm_timer_set_int_enable, + .set_int_disable = omap_dm_timer_set_int_disable, + .free = omap_dm_timer_free, + .enable = omap_dm_timer_enable, + .disable = omap_dm_timer_disable, + .get_fclk = omap_dm_timer_get_fclk, + .start = omap_dm_timer_start, + .stop = omap_dm_timer_stop, + .set_load = omap_dm_timer_set_load, + .set_match = omap_dm_timer_set_match, + .set_pwm = omap_dm_timer_set_pwm, + .set_prescaler = omap_dm_timer_set_prescaler, + .read_counter = omap_dm_timer_read_counter, + .write_counter = omap_dm_timer_write_counter, + .read_status = omap_dm_timer_read_status, + .write_status = omap_dm_timer_write_status, +}; + static const struct dmtimer_platform_data omap3plus_pdata = { .timer_errata = OMAP_TIMER_ERRATA_I103_I767, + .timer_ops = &dmtimer_ops, }; static const struct of_device_id omap_timer_match[] = {