From patchwork Fri Feb 19 09:33:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 80565 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1J9YEXg020906 for ; Fri, 19 Feb 2010 09:34:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752425Ab0BSJeL (ORCPT ); Fri, 19 Feb 2010 04:34:11 -0500 Received: from mail-yx0-f200.google.com ([209.85.210.200]:55866 "EHLO mail-yx0-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752115Ab0BSJeJ (ORCPT ); Fri, 19 Feb 2010 04:34:09 -0500 Received: by yxe38 with SMTP id 38so7270695yxe.4 for ; Fri, 19 Feb 2010 01:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=FbqbXqkvQ017crelM/fdAeqzPI0easDiOcwntHQQ7Mw=; b=SV1l5ukcU5xhfTjWWvRosuQEQYy7yHxoGGkDaEkf/+HBCLwFt9ZdvOdHHh85CT8Sx2 2t7pmEqKgKIPnu6UjeTM/Pvn9lvHYWPI1VWzY9iOmPiNiRqVxtKdt/HhUGduXmLVeKOS X3tsN63uObCv7xJc2ImUC7URwpbkmkvYlZRiw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=UqGCbbpQ3Dmid+gLyYzjEXCaNVpX17eKSnasxpQ36Fl+TNRQtt5OOC6bKqhGfjmnW5 7AW5Qp9P6/vS3nusmnRyEUComiFviHROZL108Z0juyR2tr0JLIpAabO21XVI0bDFkTXY B8WmDQHVkFVGbT0WDmIYAYnWczO7F7XfMtD28= Received: by 10.101.138.30 with SMTP id q30mr741645ann.57.1266572048111; Fri, 19 Feb 2010 01:34:08 -0800 (PST) Received: from ?127.0.0.1? (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 8sm4058095yxg.6.2010.02.19.01.34.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Feb 2010 01:34:07 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Fri, 19 Feb 2010 18:33:47 +0900 Message-Id: <20100219093347.646.98356.sendpatchset@t400s> Subject: [PATCH] sh: always enable sh7724 vpu_clk and set to 166MHz on Ecovec 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 (demeter.kernel.org [140.211.167.41]); Fri, 19 Feb 2010 09:34:15 +0000 (UTC) --- 0001/arch/sh/boards/mach-ecovec24/setup.c +++ work/arch/sh/boards/mach-ecovec24/setup.c 2010-02-19 17:57:00.000000000 +0900 @@ -1121,6 +1121,11 @@ static int __init arch_setup(void) gpio_request(GPIO_FN_INTC_IRQ1, NULL); gpio_direction_input(GPIO_FN_INTC_IRQ1); + /* set VPU clock to 166 MHz */ + clk = clk_get(NULL, "vpu_clk"); + clk_set_rate(clk, clk_round_rate(clk, 166000000)); + clk_put(clk); + /* enable I2C device */ i2c_register_board_info(0, i2c0_devices, ARRAY_SIZE(i2c0_devices)); --- 0004/arch/sh/kernel/cpu/sh4a/clock-sh7724.c +++ work/arch/sh/kernel/cpu/sh4a/clock-sh7724.c 2010-02-19 18:04:26.000000000 +0900 @@ -159,7 +159,7 @@ struct clk div4_clks[DIV4_NR] = { [DIV4_SH] = DIV4("shyway_clk", FRQCRA, 12, 0x2f7c, CLK_ENABLE_ON_INIT), [DIV4_B] = DIV4("bus_clk", FRQCRA, 8, 0x2f7c, CLK_ENABLE_ON_INIT), [DIV4_P] = DIV4("peripheral_clk", FRQCRA, 0, 0x2f7c, 0), - [DIV4_M1] = DIV4("vpu_clk", FRQCRB, 4, 0x2f7c, 0), + [DIV4_M1] = DIV4("vpu_clk", FRQCRB, 4, 0x2f7c, CLK_ENABLE_ON_INIT), }; struct clk div6_clks[] = {