From patchwork Wed Oct 10 11:42:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 12098 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id DF3C11A55A2 for ; Wed, 10 Oct 2012 11:43:16 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 86D91A19076 for ; Wed, 10 Oct 2012 11:43:16 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so635489iej.11 for ; Wed, 10 Oct 2012 04:43:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:x-gm-message-state; bh=Bt6puhttmIp/+OMAhECF7N4JOeVoNz4CksS3Zc4lTRw=; b=hIUEKZLxn9d9vy7nNxM6/zpPu+GOfHDx+E2RGcv/bOeyzwRtVmVCeCN7UiR/MkRfbg CV/fxaTJdIIYIeqyUwWH1U3YXqsel5dcskPlQxjFUrPPjiXim3xAJH9rmocdhTHhRle0 FOU5M9oOmeJmVeKVM0Ok5FuNLlXRLblj1/lCfYzws3xO7zfBoAll/OHPGnIBrPOwKO36 TeyMN7YAF/liCHxSYZJ11Y0kHWfftTIG5iU/QqVbX7CpKS15ASYFrl3M4VmSHAIVOf+X p2twV3cFKrIAqsTGOy/c+eAdl3p+TjSg+/sNQCBWTBEqi2CvUZ/VlzeV94Bn7ZvrzE3d shCw== Received: by 10.50.236.72 with SMTP id us8mr4808822igc.70.1349869396314; Wed, 10 Oct 2012 04:43:16 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp209133igt; Wed, 10 Oct 2012 04:43:14 -0700 (PDT) Received: by 10.14.205.3 with SMTP id i3mr14771515eeo.18.1349869394361; Wed, 10 Oct 2012 04:43:14 -0700 (PDT) Received: from eu1sys200aog111.obsmtp.com (eu1sys200aog111.obsmtp.com [207.126.144.131]) by mx.google.com with SMTP id f43si609327eem.126.2012.10.10.04.43.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Oct 2012 04:43:14 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.131 is neither permitted nor denied by best guess record for domain of ulf.hansson@stericsson.com) client-ip=207.126.144.131; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.131 is neither permitted nor denied by best guess record for domain of ulf.hansson@stericsson.com) smtp.mail=ulf.hansson@stericsson.com Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob111.postini.com ([207.126.147.11]) with SMTP ID DSNKUHVfSg5TRkHtmmqf7gpeo4QqzTUuv1kp@postini.com; Wed, 10 Oct 2012 11:43:14 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 52A5217B; Wed, 10 Oct 2012 11:42:55 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B3D6929AB; Wed, 10 Oct 2012 11:42:54 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id EF68924C07C; Wed, 10 Oct 2012 13:42:47 +0200 (CEST) Received: from steludxu1397.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Wed, 10 Oct 2012 13:42:54 +0200 From: Ulf Hansson To: , Mike Turquette , Mike Turquette , Samuel Ortiz , "Rafael J. Wysocki" Cc: , , Linus Walleij , Lee Jones , Philippe Begnic , Rickard Andersson , Jonas Aberg , Vincent Guittot , Ulf Hansson Subject: [PATCH 7/8] clk: ux500: Add armss clk and fixup smp_twd clk for u8500 Date: Wed, 10 Oct 2012 13:42:28 +0200 Message-ID: <1349869349-8070-8-git-send-email-ulf.hansson@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349869349-8070-1-git-send-email-ulf.hansson@stericsson.com> References: <1349869349-8070-1-git-send-email-ulf.hansson@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkMQHHgBlqD8PpnxOlZ9uOy8h5wUmASSVoUKtHoBdNFKvBO9Yj/HtP1Lt4T33lKFspDbXC7 From: Ulf Hansson The new armss clk is a prcmu_scalable_rate clk which represents the ARMSS clk. This then makes it possible to convert the smp_twd clk to a fixed factor clock type, using a fixed divider of 2 and with the armss clk as parent. Signed-off-by: Ulf Hansson --- drivers/clk/ux500/u8500_clk.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/clk/ux500/u8500_clk.c b/drivers/clk/ux500/u8500_clk.c index ca4a25e..b1bd1c46 100644 --- a/drivers/clk/ux500/u8500_clk.c +++ b/drivers/clk/ux500/u8500_clk.c @@ -205,16 +205,18 @@ void u8500_clk_init(void) clk_register_clkdev(clk, "dsilp2", "dsilink.2"); clk_register_clkdev(clk, "dsilp2", "mcde"); - clk = clk_reg_prcmu_rate("smp_twd", NULL, PRCMU_ARMSS, - CLK_IS_ROOT|CLK_GET_RATE_NOCACHE| - CLK_IGNORE_UNUSED); + clk = clk_reg_prcmu_scalable_rate("armss", NULL, + PRCMU_ARMSS, 0, CLK_IS_ROOT|CLK_IGNORE_UNUSED); + clk_register_clkdev(clk, "armss", NULL); + + clk = clk_register_fixed_factor(NULL, "smp_twd", "armss", + CLK_IGNORE_UNUSED, 1, 2); clk_register_clkdev(clk, NULL, "smp_twd"); /* * FIXME: Add special handled PRCMU clocks here: - * 1. clk_arm, use PRCMU_ARMCLK. - * 2. clkout0yuv, use PRCMU as parent + need regulator + pinctrl. - * 3. ab9540_clkout1yuv, see clkout0yuv + * 1. clkout0yuv, use PRCMU as parent + need regulator + pinctrl. + * 2. ab9540_clkout1yuv, see clkout0yuv */ /* PRCC P-clocks */