From patchwork Tue Jul 5 09:38:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 944132 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p659cB2O016487 for ; Tue, 5 Jul 2011 09:38:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755064Ab1GEJiK (ORCPT ); Tue, 5 Jul 2011 05:38:10 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:60978 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755069Ab1GEJiK (ORCPT ); Tue, 5 Jul 2011 05:38:10 -0400 Received: by pvg12 with SMTP id 12so4987111pvg.19 for ; Tue, 05 Jul 2011 02:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:sender:message-id:to:cc:in-reply-to:references:user-agent :mime-version:from:subject:content-type; bh=ZR1ce5ReWZLbwRVYBfgi54dmxhoRATi6ku6m+KyDbCo=; b=mZBkezvO+RcUUzl8eBnGvdiisuVrstxIuHiJ5iW3UDfuNLJ1m/Osjh4PhsqLus4MbQ 8PFrAIKrWCY6+DEOw8eU0olB5IHL9UsPKYTV54hOf5bFI4tO8gc2eU76O7dMlvvLj1Yh yrW1xn3v2S7pqJnCqQsWeLGtAlLUGMdsGSh+8= Received: by 10.142.56.6 with SMTP id e6mr3392139wfa.86.1309858689812; Tue, 05 Jul 2011 02:38:09 -0700 (PDT) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id k2sm4707600wfe.15.2011.07.05.02.38.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jul 2011 02:38:09 -0700 (PDT) Date: Tue, 05 Jul 2011 02:38:09 -0700 (PDT) Message-ID: <87mxgtdq4h.wl%kuninori.morimoto.gx@renesas.com> To: Paul , Magnus Cc: linux-sh@vger.kernel.org, Kuninori Morimoto In-Reply-To: <87sjqldq7y.wl%kuninori.morimoto.gx@renesas.com> References: <87sjqldq7y.wl%kuninori.morimoto.gx@renesas.com> User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29q?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.8 Emacs/23.2 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") From: Kuninori Morimoto Subject: [PATCH 4/5] sh: clock-sh7343: modify I2C clock settings 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.6 (demeter2.kernel.org [140.211.167.43]); Tue, 05 Jul 2011 09:38:11 +0000 (UTC) I2C doesn't work without this patch on SH7343 Signed-off-by: Kuninori Morimoto --- arch/sh/kernel/cpu/sh4a/clock-sh7343.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c index 93c6460..a6d1348 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c @@ -195,6 +195,7 @@ static struct clk mstp_clks[MSTP_NR] = { }; #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } +#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } static struct clk_lookup lookups[] = { /* main clocks */ @@ -257,8 +258,8 @@ static struct clk_lookup lookups[] = { CLKDEV_CON_ID("sio0", &mstp_clks[MSTP003]), CLKDEV_CON_ID("siof0", &mstp_clks[MSTP002]), CLKDEV_CON_ID("siof1", &mstp_clks[MSTP001]), - CLKDEV_CON_ID("i2c0", &mstp_clks[MSTP109]), - CLKDEV_CON_ID("i2c1", &mstp_clks[MSTP108]), + CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[MSTP109]), + CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[MSTP108]), CLKDEV_CON_ID("tpu0", &mstp_clks[MSTP225]), CLKDEV_CON_ID("irda0", &mstp_clks[MSTP224]), CLKDEV_CON_ID("sdhi0", &mstp_clks[MSTP218]),