From patchwork Sat Nov 10 06:43:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 1723221 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 7549FDF230 for ; Sat, 10 Nov 2012 06:46:59 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TX4oV-0004T0-6B; Sat, 10 Nov 2012 06:45:07 +0000 Received: from mail-da0-f49.google.com ([209.85.210.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TX4nu-0004H5-3c for linux-arm-kernel@lists.infradead.org; Sat, 10 Nov 2012 06:44:31 +0000 Received: by mail-da0-f49.google.com with SMTP id q27so1820896daj.36 for ; Fri, 09 Nov 2012 22:44:29 -0800 (PST) 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:in-reply-to:references :in-reply-to:references:x-gm-message-state; bh=dB4+fGFA7QDCBBKUV7ZtKWBq2+fyILYSAoBHHAGLmEs=; b=F5Z2IqGQ1A8fn1svzQum5P2KX9xm67jI6XKb4esBywikxscKY+PbZgT7BcDuBcavXb 4wkijflpUwvUDZdnVsabIuf2RQYJPVC76BzAhM0kRCECWJvgtTOU9+nJcxVWRJRjWht2 AWJLA/hNlNDVoBQUwQUUVAZDb3KW5WNK2O8+onbOkpe0tW6uwnKjbNrA0d3jyiAjwrcc TXfOIuOl2bnvY2NBSFcPw/aPT8yWP/0pf437hBeFWe5mdsxim2srXV8nDCYJ7fukS5fU 0P1WX8xRXOvwijr6x7Wsb6/X/KMs/DLCwHwRpYnvN1C/FDMS4I9aMvoVxwEJ2Jg13vEq o4Lw== Received: by 10.66.78.226 with SMTP id e2mr38141210pax.35.1352529869818; Fri, 09 Nov 2012 22:44:29 -0800 (PST) Received: from localhost ([122.172.201.53]) by mx.google.com with ESMTPS id v9sm532382paz.6.2012.11.09.22.44.27 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Nov 2012 22:44:29 -0800 (PST) From: Viresh Kumar To: mike.turquette@linaro.org Subject: [PATCH 5/8] CLK: SPEAr: Add missing clocks Date: Sat, 10 Nov 2012 12:13:44 +0530 Message-Id: <98db45b077ddc4697205e8755f124a7bb3c16ad4.1352529508.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnGdGA8bwuiM+J/+/FDW2VikkZGT5j/IIAuMGoBuTEeMquCVNP9HdqV+7bzTzdUPh5gZSNd X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121110_014430_322965_67453663 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. 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.210.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Vipul Kumar Samar , Viresh Kumar , spear-devel@list.st.com, linux-arm-kernel@lists.infradead.org, Deepak Sikri 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 From: Vipul Kumar Samar This patch adds missing clocks: twd and macb. Signed-off-by: Vipul Kumar Samar Signed-off-by: Deepak Sikri Signed-off-by: Viresh Kumar --- drivers/clk/spear/spear1310_clock.c | 4 ++++ drivers/clk/spear/spear1340_clock.c | 4 ++++ drivers/clk/spear/spear3xx_clock.c | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/drivers/clk/spear/spear1310_clock.c b/drivers/clk/spear/spear1310_clock.c index 2809b67..b64d511 100644 --- a/drivers/clk/spear/spear1310_clock.c +++ b/drivers/clk/spear/spear1310_clock.c @@ -491,6 +491,10 @@ void __init spear1310_clk_init(void) 2); clk_register_clkdev(clk, NULL, "ec800620.wdt"); + clk = clk_register_fixed_factor(NULL, "smp_twd_clk", "cpu_clk", 0, 1, + 2); + clk_register_clkdev(clk, NULL, "smp_twd"); + clk = clk_register_fixed_factor(NULL, "ahb_clk", "pll1_clk", 0, 1, 6); clk_register_clkdev(clk, "ahb_clk", NULL); diff --git a/drivers/clk/spear/spear1340_clock.c b/drivers/clk/spear/spear1340_clock.c index aa5ed43..8f00533 100644 --- a/drivers/clk/spear/spear1340_clock.c +++ b/drivers/clk/spear/spear1340_clock.c @@ -535,6 +535,10 @@ void __init spear1340_clk_init(void) 2); clk_register_clkdev(clk, NULL, "ec800620.wdt"); + clk = clk_register_fixed_factor(NULL, "smp_twd_clk", "cpu_clk", 0, 1, + 2); + clk_register_clkdev(clk, NULL, "smp_twd"); + clk = clk_register_mux(NULL, "ahb_clk", ahb_parents, ARRAY_SIZE(ahb_parents), 0, SPEAR1340_SYS_CLK_CTRL, SPEAR1340_HCLK_SRC_SEL_SHIFT, diff --git a/drivers/clk/spear/spear3xx_clock.c b/drivers/clk/spear/spear3xx_clock.c index de28152..1cc034b 100644 --- a/drivers/clk/spear/spear3xx_clock.c +++ b/drivers/clk/spear/spear3xx_clock.c @@ -284,6 +284,14 @@ static void __init spear320_clk_init(void) 4); clk_register_clkdev(clk, "i2s_sclk", NULL); + clk = clk_register_fixed_factor(NULL, "macb1_clk", "ras_apb_clk", 0, 1, + 1); + clk_register_clkdev(clk, "hclk", "aa000000.eth"); + + clk = clk_register_fixed_factor(NULL, "macb2_clk", "ras_apb_clk", 0, 1, + 1); + clk_register_clkdev(clk, "hclk", "ab000000.eth"); + clk = clk_register_mux(NULL, "rs485_clk", uartx_parents, ARRAY_SIZE(uartx_parents), CLK_SET_RATE_PARENT, SPEAR320_EXT_CTRL_REG, SPEAR320_RS485_PCLK_SHIFT,