From patchwork Tue Sep 3 11:34:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2853193 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AEE2FC0AB5 for ; Tue, 3 Sep 2013 11:36:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F7002035E for ; Tue, 3 Sep 2013 11:36:26 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 587E720353 for ; Tue, 3 Sep 2013 11:36:25 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VGota-0007Ez-Jt; Tue, 03 Sep 2013 11:35:43 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VGotN-0004hM-2d; Tue, 03 Sep 2013 11:35:29 +0000 Received: from mail-pd0-f176.google.com ([209.85.192.176]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VGotF-0004eO-Ea for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2013 11:35:22 +0000 Received: by mail-pd0-f176.google.com with SMTP id q10so5830992pdj.7 for ; Tue, 03 Sep 2013 04:34:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V0EysRTzA6h9wQbXoyHyGTzhr+t/wZTQKvbpWqz15vU=; b=cpbAufLyX7B+pU1llqLfIY43rr4JBBV3uyi1dCkt+ZJH4nMr7iqhBxOET+EUjGifng dLrikuhtejfO4EAQ7ghXADWpE0M2BpmmUeRcVFl43iGnVHomYUpxvCsN/aO4mrAJ6OUj 87qaMv8lbMBPs8w2/V+pTp5IyBFU4dQ3gKw1v5LlKrc/TLkT0GNMZZPiM3U1VFmW2DVY OHNd2ePxdO3uFxDvDPHHgHat5O3pfjl8lwQQBb9Lah/Y9ie/UsvvGxkax/YbRPwIQEhc PtWoHzedsnmtGYDR+nFZNGjtVq1oO/Plnf7/hSKw2EGrKtaUI449fl2M3j6rPnTC5KTv Pa+w== X-Gm-Message-State: ALoCoQmfdGZwNs6AuxdFRyhE+JumYSwO6d2/EynS+t2OxzOlPPhwFDvyvMm3DGQjsjHzwKhb+w/G X-Received: by 10.68.180.35 with SMTP id dl3mr1334723pbc.197.1378208095984; Tue, 03 Sep 2013 04:34:55 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id ts6sm21918962pbc.12.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 04:34:55 -0700 (PDT) From: Chander Kashyap To: linux-arm-kernel@lists.infradead.org Subject: [RFC Patch v2 3/3] clk: samsung: Exynos5250: Add alternate parent name for mout_cpu Date: Tue, 3 Sep 2013 17:04:31 +0530 Message-Id: <1378208072-10173-4-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378208072-10173-1-git-send-email-chander.kashyap@linaro.org> References: <1378208072-10173-1-git-send-email-chander.kashyap@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130903_073521_606898_D8BDCCE2 X-CRM114-Status: GOOD ( 10.05 ) X-Spam-Score: -1.9 (-) Cc: thomas.abraham@linaro.org, linux-samsung-soc@vger.kernel.org, mturquette@linaro.org, Chander Kashyap X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Temporary parent migration is required during cpu frequency scaling. Hence this patch adds support to supply alternate parent name for cpu clock i.e. "mout_cpu". Signed-off-by: Chander Kashyap --- drivers/clk/samsung/clk-exynos5250.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index d90e593..aec2e09 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c @@ -239,7 +239,9 @@ static struct samsung_mux_clock exynos5250_pll_pmux_clks[] __initdata = { static struct samsung_mux_clock exynos5250_mux_clks[] __initdata = { MUX_A(none, "mout_apll", mout_apll_p, SRC_CPU, 0, 1, "mout_apll"), - MUX_A(none, "mout_cpu", mout_cpu_p, SRC_CPU, 16, 1, "mout_cpu"), + MUX_FA(none, "mout_cpu", mout_cpu_p, SRC_CPU, 16, 1, + CLK_SET_RATE_PARENT | CLK_SET_RATE_TEMP_PARENT, + 0, "mout_cpu", "sclk_mpll"), MUX(none, "mout_mpll_fout", mout_mpll_fout_p, PLL_DIV2_SEL, 4, 1), MUX_A(none, "sclk_mpll", mout_mpll_p, SRC_CORE1, 8, 1, "mout_mpll"), MUX(none, "mout_bpll_fout", mout_bpll_fout_p, PLL_DIV2_SEL, 0, 1),