From patchwork Tue Nov 16 07:34:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 327142 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAG7YgFV024002 for ; Tue, 16 Nov 2010 07:34:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759388Ab0KPHem (ORCPT ); Tue, 16 Nov 2010 02:34:42 -0500 Received: from mail.renesas.com ([202.234.163.13]:36107 "EHLO mail06.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756802Ab0KPHem (ORCPT ); Tue, 16 Nov 2010 02:34:42 -0500 X-AuditID: ac14038a-0000000a000001f2-59-4ce2340e417a Received: from guardian04.idc.renesas.com ([172.20.8.206]) by mail06.idc.renesas.com (sendmail) with ESMTP id oAG7YXvs024966; Tue, 16 Nov 2010 16:34:38 +0900 (JST) Received: (from root@localhost) by guardian04.idc.renesas.com with id oAG7YYlX006318; Tue, 16 Nov 2010 16:34:34 +0900 (JST) Received: from mta07.idc.renesas.com (localhost [127.0.0.1]) by mta07.idc.renesas.com with ESMTP id oAG7YX92023898; Tue, 16 Nov 2010 16:34:33 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0LBY00IAIVPMTJ@ims05.idc.renesas.com>; Tue, 16 Nov 2010 16:34:34 +0900 (JST) Date: Tue, 16 Nov 2010 16:34:34 +0900 (JST) Date-warning: Date header was inserted by ims05.idc.renesas.com From: Kuninori Morimoto Subject: [PATCH v2] ARM: mach-shmobile: ap4evb: add fsib 44100Hz rate fixup To: Paul Mundt Cc: Magnus , Linux-SH Message-id: MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-2022-JP-2?B?U2Fuag==?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.6 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 16 Nov 2010 07:34:43 +0000 (UTC) diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index b63010f..09a9481 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c @@ -569,6 +569,7 @@ static int fsi_set_rate(int is_porta, int rate) { struct clk *fsib_clk; struct clk *fdiv_clk = &sh7372_fsidivb_clk; + unsigned long new_rate; int ret; /* set_rate is not needed if port A */ @@ -581,7 +582,9 @@ static int fsi_set_rate(int is_porta, int rate) switch (rate) { case 44100: - clk_set_rate(fsib_clk, clk_round_rate(fsib_clk, 11283000)); + new_rate = clk_round_rate(fsib_clk, 11283000); + clk_set_rate(fsib_clk, new_rate); + clk_set_rate(fdiv_clk, new_rate); ret = SH_FSI_ACKMD_256 | SH_FSI_BPFMD_64; break; case 48000: