From patchwork Tue Jul 5 09:37:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 944122 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 p659b8HQ013864 for ; Tue, 5 Jul 2011 09:37:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755027Ab1GEJh4 (ORCPT ); Tue, 5 Jul 2011 05:37:56 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:33930 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754764Ab1GEJh4 (ORCPT ); Tue, 5 Jul 2011 05:37:56 -0400 Received: by pzk9 with SMTP id 9so2299548pzk.19 for ; Tue, 05 Jul 2011 02:37:55 -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=9ncsKYSBoEJT3TGzL8ZVSLDc+wslZHZCtzor1wQEQlI=; b=o+IRwh8OgLhL/0BIUybVw45R9WN11wK1qY8lwBxVrIMdtGMAF/qWzgoPudQQ+OTxif ctxIrjfDPtCUBcY0prchdhlwHrVIcCjJeEN7FaXxEOSF3vKSKGFUGi+ypNeQTC0a8Fr+ u6Etb/tfVFHzObrNKV4Q0ThAOFtUGrLUVljFw= Received: by 10.68.65.75 with SMTP id v11mr8829005pbs.56.1309858675540; Tue, 05 Jul 2011 02:37:55 -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 m7sm4345876pbk.86.2011.07.05.02.37.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jul 2011 02:37:55 -0700 (PDT) Date: Tue, 05 Jul 2011 02:37:55 -0700 (PDT) Message-ID: <87oc19dq4v.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 3/5] sh: clock-sh7723: 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:37:57 +0000 (UTC) I2C doesn't work without this patch on SH7723 Signed-off-by: Kuninori Morimoto --- arch/sh/kernel/cpu/sh4a/clock-sh7723.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7723.c b/arch/sh/kernel/cpu/sh4a/clock-sh7723.c index 55493cd..7f70899 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7723.c @@ -201,6 +201,7 @@ static struct clk mstp_clks[] = { }; #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 */ @@ -305,7 +306,7 @@ static struct clk_lookup lookups[] = { CLKDEV_CON_ID("msiof0", &mstp_clks[HWBLK_MSIOF0]), CLKDEV_CON_ID("msiof1", &mstp_clks[HWBLK_MSIOF1]), CLKDEV_CON_ID("meram0", &mstp_clks[HWBLK_MERAM]), - CLKDEV_CON_ID("i2c0", &mstp_clks[HWBLK_IIC]), + CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[HWBLK_IIC]), CLKDEV_CON_ID("rtc0", &mstp_clks[HWBLK_RTC]), CLKDEV_CON_ID("atapi0", &mstp_clks[HWBLK_ATAPI]), CLKDEV_CON_ID("adc0", &mstp_clks[HWBLK_ADC]),