From patchwork Fri Nov 3 14:26:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 117911 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3533018qgn; Fri, 3 Nov 2017 07:28:13 -0700 (PDT) X-Google-Smtp-Source: ABhQp+S+MxYmieFCPid/28Z2w4kilC84gQpmHMJDQH2iuEnrm8gz72uCo9K9E+DJBUP7vJ9hejyu X-Received: by 10.84.160.226 with SMTP id v31mr7005109plg.302.1509719293437; Fri, 03 Nov 2017 07:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509719293; cv=none; d=google.com; s=arc-20160816; b=VPyi4eggtmMAVx4pYMPQ/bs5vhRb4388HzRENxfR5+1k3gixrkZTaMlo9pBTAaPIDC 5aRMmoEsVvc3AsCfZKxRg8cXxHg8muM7tffXpAD8m8hMzsRW4zhTicsAo/IZXVOzxq5s 1qQv747/nlyabsdczrzO12XJvF0G56+mUfIpniV8vsG2A+O07lDWbXtE37YlnG/bCbzR vOyFnljCAJ6ynMIjKgF5atEevaLjoC55VYVcR2axl8CwqwWy69y1q27VnPYuGofYitkU 93EdzFMPxaDVvXtz6n+Qe5RZwgk+Ew28DNzg1axP8wm7iSu4+oic3K76LGKoSB8KR/oz fTgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Jtv3LHD3daK+oGdvQFf66Kp9s0Au448vW+2JPfaVsUs=; b=lOYCeHb/lr+lc220vWlMT9KB5dZZ9/NLLBY+aEuyl+QpCFtLgNZqAYTkEpncPlfROe ts4eY2v98ksKq+AUkbgoMNnbtCwRqCCUhHzB8rdM883BidVz9IorBUN6XlurUFR135Yj 11l/LO+1VBcnlV0iLFPgirN60TpBt37sDQfBMvrFT6bewDOYfX/rvNQEcl8buOrHLw1D tHLWvkuLL4+NNF+xGZsUJ4rYcOASylyqQt6QD6aVe4/t2LlrKWI99USiCgKKlzaV8Q3f zSpoak9nTza5Zm20P/pLgnByEC2n2/aIKcnJduRxRRqN8pfpbwP9gx9eHB4cV1LcMPWr NNRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=K4XNPFPD; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si4866060plb.265.2017.11.03.07.28.13; Fri, 03 Nov 2017 07:28:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=K4XNPFPD; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752302AbdKCO2K (ORCPT + 4 others); Fri, 3 Nov 2017 10:28:10 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:34547 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbdKCO2J (ORCPT ); Fri, 3 Nov 2017 10:28:09 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id vA3ER8KW024105; Fri, 3 Nov 2017 09:27:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1509719228; bh=8/ZXHjsudj2oXefFT/ASRXPMdFqtn4DOQ2EX9EPiXQc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=K4XNPFPDorB3I9nKdYRoltaoq2rUcbT6gGScfk7aAJwxab075tQa0sUkP/KdszGNy QXE+LqS4HZly9K7M+AlQCyUjuUS8uYyHfDJ//PB/elr92Dezi5+LaXkhx2q36PZfAJ weNqp7155tO5hgTrv43BVcD96PecxUq3gMrcIrK4= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vA3ER2KT017670; Fri, 3 Nov 2017 09:27:03 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Fri, 3 Nov 2017 09:27:02 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Fri, 3 Nov 2017 09:27:02 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id vA3EQovx014982; Fri, 3 Nov 2017 09:27:01 -0500 From: Tero Kristo To: , CC: Subject: [PATCH 5/7] ARM: AM33xx: CM: add support for getting physical address for a register Date: Fri, 3 Nov 2017 16:26:39 +0200 Message-ID: <1509719201-32700-6-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1509719201-32700-1-git-send-email-t-kristo@ti.com> References: <1509719201-32700-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Needed for mapping the hwmods towards their corresponding clkctrl providers and clocks. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm33xx.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/cm33xx.c b/arch/arm/mach-omap2/cm33xx.c index a9e08d8..cf75bbe 100644 --- a/arch/arm/mach-omap2/cm33xx.c +++ b/arch/arm/mach-omap2/cm33xx.c @@ -333,6 +333,11 @@ static int am33xx_clkdm_clk_disable(struct clockdomain *clkdm) return 0; } +static u32 am33xx_cm_xlate_clkctrl(u8 part, u16 inst, u16 offset) +{ + return cm_base.pa + inst + offset; +} + struct clkdm_ops am33xx_clkdm_operations = { .clkdm_sleep = am33xx_clkdm_sleep, .clkdm_wakeup = am33xx_clkdm_wakeup, @@ -347,6 +352,7 @@ struct clkdm_ops am33xx_clkdm_operations = { .wait_module_idle = &am33xx_cm_wait_module_idle, .module_enable = &am33xx_cm_module_enable, .module_disable = &am33xx_cm_module_disable, + .xlate_clkctrl = &am33xx_cm_xlate_clkctrl, }; int __init am33xx_cm_init(const struct omap_prcm_init_data *data)