From patchwork Fri Feb 22 17:17:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2176611 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id B91C13FD4E for ; Fri, 22 Feb 2013 17:18:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758001Ab3BVRSg (ORCPT ); Fri, 22 Feb 2013 12:18:36 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:51062 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757899Ab3BVRSc (ORCPT ); Fri, 22 Feb 2013 12:18:32 -0500 Received: from axis700.grange (dslb-178-001-229-135.pools.arcor-ip.net [178.1.229.135]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0Lt8oh-1UsCcy04WR-012ss1; Fri, 22 Feb 2013 18:18:19 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 6F26140B99; Fri, 22 Feb 2013 18:18:18 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1U8wGI-00072S-48; Fri, 22 Feb 2013 18:18:18 +0100 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Cc: Magnus Damm , Simon Horman , linux-arm-kernel@lists.infradead.org, "Rafael J. Wysocki" , cpufreq@vger.kernel.org, Guennadi Liakhovetski Subject: [PATCH 1/4] ARM: shmobile: sh73a0: fix Z and ZG clock hierarchy Date: Fri, 22 Feb 2013 18:17:51 +0100 Message-Id: <1361553474-27022-2-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1361553474-27022-1-git-send-email-g.liakhovetski@gmx.de> References: <1361553474-27022-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:goklcmwxvR25tH1SuEXEw3yt6nFwRLtu7s/1+jlS7cW gUlIhvmecZCcbXuWC/HIFSmmA1y+9orXKoiYIt/fw5R6S26r6H ulWEuaU3ydqYziLtUyeZQW9gL0FC7TEuGVY5MWukI6XLOmaLa8 XTp6F37kf2O0RnpGBmY0J5HaUlCywkit5wc8ETpA2q6oe3VnVR vOjtBnVGcywU/hX7p33zI1J4AvfTPLv3OodAPsjIAqT6WYZMPD 4xjx/Jh9CFnmo8CHwADm6vPRHMeQjmQdvHxJPApueBaHMukHEX 3oI7kA5POoQnB4d6flcYiMuW9RkgCxDqRqZLeWyfUofNkImBsG 2nAvnIFB2wexwna6+F4FfpTyfaNYqYL/spDhrnYZofxHrmmcbQ fBXEdoeN/VmWw== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Z and ZG clocks on sh73a0 have pll0 as their parent, not pll1. Signed-off-by: Guennadi Liakhovetski --- arch/arm/mach-shmobile/clock-sh73a0.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c index 5fa106b..71843dd 100644 --- a/arch/arm/mach-shmobile/clock-sh73a0.c +++ b/arch/arm/mach-shmobile/clock-sh73a0.c @@ -265,12 +265,12 @@ enum { DIV4_I, DIV4_ZG, DIV4_M3, DIV4_B, DIV4_M1, DIV4_M2, static struct clk div4_clks[DIV4_NR] = { [DIV4_I] = DIV4(FRQCRA, 20, 0xdff, CLK_ENABLE_ON_INIT), - [DIV4_ZG] = DIV4(FRQCRA, 16, 0xd7f, CLK_ENABLE_ON_INIT), + [DIV4_ZG] = SH_CLK_DIV4(&pll0_clk, FRQCRA, 16, 0xd7f, CLK_ENABLE_ON_INIT), [DIV4_M3] = DIV4(FRQCRA, 12, 0x1dff, CLK_ENABLE_ON_INIT), [DIV4_B] = DIV4(FRQCRA, 8, 0xdff, CLK_ENABLE_ON_INIT), [DIV4_M1] = DIV4(FRQCRA, 4, 0x1dff, 0), [DIV4_M2] = DIV4(FRQCRA, 0, 0x1dff, 0), - [DIV4_Z] = DIV4(FRQCRB, 24, 0x97f, 0), + [DIV4_Z] = SH_CLK_DIV4(&pll0_clk, FRQCRB, 24, 0x97f, 0), [DIV4_ZTR] = DIV4(FRQCRB, 20, 0xdff, 0), [DIV4_ZT] = DIV4(FRQCRB, 16, 0xdff, 0), [DIV4_ZX] = DIV4(FRQCRB, 12, 0xdff, 0),