From patchwork Thu Mar 25 07:08:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 88164 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 o2P77ibe015413 for ; Thu, 25 Mar 2010 07:08:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753191Ab0CYHIX (ORCPT ); Thu, 25 Mar 2010 03:08:23 -0400 Received: from mail-yw0-f172.google.com ([209.85.211.172]:60483 "EHLO mail-yw0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753096Ab0CYHIX (ORCPT ); Thu, 25 Mar 2010 03:08:23 -0400 Received: by ywh2 with SMTP id 2so3249448ywh.33 for ; Thu, 25 Mar 2010 00:08:22 -0700 (PDT) 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 :in-reply-to:references:subject; bh=z9aY2sMG4Mve3BH1sLoDXks6jTGUXZKz4hwdnT2w7yY=; b=Q0J1sfObAH46WGmK3pU2Cyd0d++IRD4yszCKnU57msGsX/jHka3Ukl4KOozp16LK77 O8vLbmbWaw/pEx3B/4+KN68G3UOVPFv25SN6PfRqqkyRaybmLyOXuJKcHj40S3kK8P6I VmQ5RqT2PvAj5CpLKA+iUKVsXaswJ9mEzmMZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=TdOPESxASyeze8kZ8Fz4UekZFyN3DV7DSFF9wZcKcVZYWpybo2FNghhkimxA3jErO8 NOgvhStsfmgHH48DaiWyxJuwL2/F47rd0U9DudPdGBV5tpVNnTvTwlRR9Nkbdx+9xo8c osD/Vxl8CEE7K8Vc3vqGjELOq4uuuzwTh6g8Q= Received: by 10.90.14.16 with SMTP id 16mr797589agn.47.1269500902424; Thu, 25 Mar 2010 00:08:22 -0700 (PDT) Received: from [127.0.0.1] (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 15sm550436gxk.2.2010.03.25.00.08.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Mar 2010 00:08:22 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 25 Mar 2010 16:08:24 +0900 Message-Id: <20100325070824.24148.19947.sendpatchset@t400s> In-Reply-To: <20100325070742.24148.57892.sendpatchset@t400s> References: <20100325070742.24148.57892.sendpatchset@t400s> Subject: [PATCH 05/06] ARM: mach-shmobile: SH-Mobile ARM specific clock code 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]); Thu, 25 Mar 2010 07:08:24 +0000 (UTC) --- 0001/arch/arm/mach-shmobile/Kconfig +++ work/arch/arm/mach-shmobile/Kconfig 2010-03-25 13:41:18.000000000 +0900 @@ -81,4 +81,7 @@ config SH_TIMER_CMT endmenu +config SH_CLK_CPG + def_bool n + endif --- 0003/arch/arm/mach-shmobile/Makefile +++ work/arch/arm/mach-shmobile/Makefile 2010-03-25 13:42:09.000000000 +0900 @@ -11,6 +11,11 @@ obj-$(CONFIG_ARCH_SH7377) += setup-sh737 obj-$(CONFIG_ARCH_SH7372) += setup-sh7372.o intc-sh7372.o # Clock framework +clk-$(CONFIG_ARCH_SH7367) += +clk-$(CONFIG_ARCH_SH7377) += +clk-$(CONFIG_ARCH_SH7372) += +obj-$(CONFIG_SH_CLK_CPG) += $(clk-y) clock.o + obj-$(CONFIG_COMMON_CLKDEV) += clock-sh7367.o # Pinmux setup --- /dev/null +++ work/arch/arm/mach-shmobile/clock.c 2010-03-25 13:43:39.000000000 +0900 @@ -0,0 +1,33 @@ +/* + * SH-Mobile Clock Framework + * + * Copyright (C) 2010 Magnus Damm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ +#include +#include +#include + +int __init clk_init(void) +{ + /* Kick the child clocks.. */ + recalculate_root_clocks(); + + /* Enable the necessary init clocks */ + clk_enable_init_clocks(); + + return 0; +}