From patchwork Tue Aug 6 08:34:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2839272 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 92373BF535 for ; Tue, 6 Aug 2013 08:54:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5018B201BB for ; Tue, 6 Aug 2013 08:54:44 +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 15705201B9 for ; Tue, 6 Aug 2013 08:54:43 +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 1V6ckF-0007H7-KP; Tue, 06 Aug 2013 08:35:55 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V6cjx-0005tJ-8Q; Tue, 06 Aug 2013 08:35:37 +0000 Received: from mail-pd0-f181.google.com ([209.85.192.181]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V6cjn-0005pU-KC for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2013 08:35:31 +0000 Received: by mail-pd0-f181.google.com with SMTP id g10so91046pdj.40 for ; Tue, 06 Aug 2013 01:35:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=k9BgpPz0HfKMYzhDb6vxkcq9FNVSps+cJky/Uf8iv1s=; b=G77/Y2mhvLrJ5Ckn8E1WYpsfc9lDQjTNCzxTBENQJrbEQrN71jh1t+mLZF5baG78zG iYbsP3baWyphiif6zuRvQZa9+iojxxwCusLLGdNToHoGPZQIA4eoe6I0vKgKB21epqWq HRlL3Cvj+JJ3Y79yHVkbAHL616TWaFJvT8W9M/cEqwgEssMgKtCmiIQADNaY6tE9nxMu l0vgf638rmgeFjvbC/6O+ULzOwZXHqLUPDEbgDPKLbF3NlI/wX6k1gVkUrHMDMNHjnUv o8R8DYg7Eg1bJHitnDqGijcM8P5+MxSa8xUHRZBhtzmjGswfeSTiVf4GlfJtenx9R8Go QudQ== X-Gm-Message-State: ALoCoQkwwXh1MwwQus693qAmxXcJ1mYAdIILpM9VO11tvA5IZrVHKK6moh5tsW0lArLEfWtSugPT X-Received: by 10.68.253.138 with SMTP id aa10mr314904pbd.24.1375778105443; Tue, 06 Aug 2013 01:35:05 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id wr9sm621435pbc.7.2013.08.06.01.35.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Aug 2013 01:35:04 -0700 (PDT) From: Chander Kashyap To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 3/3] clk: Exynos5250: Add alternate parent name for mout_cpu Date: Tue, 6 Aug 2013 14:04:25 +0530 Message-Id: <1375778065-21808-4-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1375778065-21808-1-git-send-email-chander.kashyap@linaro.org> References: <1375778065-21808-1-git-send-email-chander.kashyap@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130806_043527_843009_DFD385D5 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. 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=-4.2 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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index 6f767c5..bfd96ba 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c @@ -209,10 +209,14 @@ struct samsung_fixed_factor_clock exynos5250_fixed_factor_clks[] __initdata = { }; 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_apll", mout_apll_p, SRC_CPU, 0, 1, + CLK_SET_RATE_PARENT, 0, "mout_apll", NULL), + MUX_FA(none, "mout_cpu", mout_cpu_p, SRC_CPU, 16, 1, + CLK_SET_RATE_PARENT | CLK_SET_RATE_ALTERNATE, + 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_FA(none, "sclk_mpll", mout_mpll_p, SRC_CORE1, 8, 1, + CLK_SET_RATE_PARENT, 0, "mout_mpll", NULL), MUX(none, "mout_bpll_fout", mout_bpll_fout_p, PLL_DIV2_SEL, 0, 1), MUX(none, "sclk_bpll", mout_bpll_p, SRC_CDREX, 0, 1), MUX(none, "mout_vpllsrc", mout_vpllsrc_p, SRC_TOP2, 0, 1),