From patchwork Fri Aug 24 14:52:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 1371561 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 509F2DF28C for ; Fri, 24 Aug 2012 14:55:34 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T4vFS-0001nM-EP; Fri, 24 Aug 2012 14:52:34 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T4vFO-0001mx-Fe for linux-arm-kernel@lists.infradead.org; Fri, 24 Aug 2012 14:52:31 +0000 Received: by pbbrq8 with SMTP id rq8so3698195pbb.36 for ; Fri, 24 Aug 2012 07:52:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=1C0495GHZ8cqoVD+Z10lFGKZfXvvXb7sbDcWIAJpLbk=; b=GEJpUFsBiYW1ne17MeeKBiRX0KZfk979DBYtj5p9jtTYkC9it5n1WZAOwSRf8ox9gH JycSVSgdw6CaUF+SsUMYXC3brwKGwOSNGi7nNMEYS6q3I27MbfpDnTGJhDM+q7yyQfBF YQI/ep0Ji9cghobv2xTnXImiACboLXsnsCvr44wLwtHDOW6xXqjfAgsa+C0NnsnJ3dDX kGyk1wC8tWzU+w9lh7RZckywtDWjklLKZoHYiwGt0fMe4AotGMwBGuN/ws9TEXGPoafj POSsI5MW3UPv80kgYSQAf5friT6e9SNs5z8Dpw93U8FNXUda3q2KyJ+WcyMRVWp7xyGE dvIw== Received: by 10.68.238.166 with SMTP id vl6mr13464120pbc.96.1345819947260; Fri, 24 Aug 2012 07:52:27 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id gv1sm8449469pbc.38.2012.08.24.07.52.25 (version=SSLv3 cipher=OTHER); Fri, 24 Aug 2012 07:52:26 -0700 (PDT) From: Chander Kashyap To: linux-samsung-soc@vger.kernel.org Subject: [PATCH] ARM: Exynos4: Turn off clocks for NAND, OneNAND and TSI controllers Date: Fri, 24 Aug 2012 20:22:16 +0530 Message-Id: <1345819936-6503-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQkFPg33XRtTXj8UFv0f7A7FEH6KM2aBWNdAev9VoY0jFoVAwdt4EkVgixFvBMJSqSaE2+26 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org, patches@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The clocks for NAND, OneNAND and Transport Stream Interface(TSI) controllers could be either enabled or disabled at boot. To ensure that these are turned off until used, add them to the list of clocks to be turned off during boot. Signed-off-by: Chander Kashyap Reviewed-by: Thomas Abraham --- arch/arm/mach-exynos/clock-exynos4.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-exynos/clock-exynos4.c b/arch/arm/mach-exynos/clock-exynos4.c index 2f51293..7cc5491 100644 --- a/arch/arm/mach-exynos/clock-exynos4.c +++ b/arch/arm/mach-exynos/clock-exynos4.c @@ -501,6 +501,10 @@ static struct clk exynos4_init_clocks_off[] = { .enable = exynos4_clk_ip_cam_ctrl, .ctrlbit = (1 << 3), }, { + .name = "tsi", + .enable = exynos4_clk_ip_fsys_ctrl, + .ctrlbit = (1 << 4), + }, { .name = "hsmmc", .devname = "exynos4-sdhci.0", .parent = &exynos4_clk_aclk_133.clk, @@ -530,6 +534,14 @@ static struct clk exynos4_init_clocks_off[] = { .enable = exynos4_clk_ip_fsys_ctrl, .ctrlbit = (1 << 9), }, { + .name = "onenand", + .enable = exynos4_clk_ip_fsys_ctrl, + .ctrlbit = (1 << 15), + }, { + .name = "nfcon", + .enable = exynos4_clk_ip_fsys_ctrl, + .ctrlbit = (1 << 16), + }, { .name = "dac", .devname = "s5p-sdo", .enable = exynos4_clk_ip_tv_ctrl,