From patchwork Mon Nov 10 00:16:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 408630 X-Patchwork-Delegate: iwamatsu@nigauri.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 70DCD14012A for ; Mon, 10 Nov 2014 11:17:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B44554B66D; Mon, 10 Nov 2014 01:17:36 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gYLcaEDNlv8S; Mon, 10 Nov 2014 01:17:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1B7864B660; Mon, 10 Nov 2014 01:17:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 41E754B660 for ; Mon, 10 Nov 2014 01:17:32 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wc-WnRrH28em for ; Mon, 10 Nov 2014 01:17:32 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by theia.denx.de (Postfix) with ESMTPS id CE0234B656 for ; Mon, 10 Nov 2014 01:17:27 +0100 (CET) Received: by mail-pa0-f50.google.com with SMTP id eu11so6973876pac.23 for ; Sun, 09 Nov 2014 16:17:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=SZKXhslSvPCIJaOqKZAYFvncXdjJqUoniGwYlQ5yDmc=; b=DLueZZYHsrBkxD0y5cTvcO2xX+OrUoei56kxpp3C7+XPdlgPX5gM2CxSy07zmVjKIU LoEsb2IYGJlE1307m7Ss0E2u24pXXrNzrgldDtFzYASc4m8yowCjoJdaugtAIP5Ok9C4 yq/5LCFuflCtz1D+aC8HwPJicw6SnRq9dRmxFKrCk7vb3zYjMe3sE00DNxSEN+y8ftJE 5wLnHLKu3A8mHAaYRoZcruH7zqS2viPbFps5VZoQUnWu/C2Sf3ZJ1C2FPzl3001cV50d mkl/gXVl/vMhsn/+ouCDCwhmdcQwKnSH0fzeg8eRPV2uJpSP3uC3Vc7WYdP5/b7CTJtv xBcA== X-Gm-Message-State: ALoCoQn4uaQAWYJkUomJI1F6WCcvl4tXiUCMnx3pWb94IXYfC7Lg2o+U2zY3SDpoSBiAr6DFQaeJ X-Received: by 10.68.224.6 with SMTP id qy6mr28260958pbc.35.1415578646150; Sun, 09 Nov 2014 16:17:26 -0800 (PST) Received: from xps-iwamatsu.renesas.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id oh5sm14706827pbc.76.2014.11.09.16.16.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Nov 2014 16:17:24 -0800 (PST) From: Nobuhiro Iwamatsu To: u-boot@lists.denx.de, Nobuhiro Iwamatsu Date: Mon, 10 Nov 2014 09:16:43 +0900 Message-Id: <1415578605-14055-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Mailer: git-send-email 2.1.1 Cc: Nobuhiro Iwamatsu Subject: [U-Boot] [PATCH 1/3] arm: rmobile: alt: Enable channel 1 of sh-i2c X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Alt board was connected Power IC to channel 1 of sh-i2c. Source code that controls this is already included, but channel 1 of sh-i2c is not enabled. This enables channel 1 of sh-i2c, and can use. Signed-off-by: Nobuhiro Iwamatsu --- board/renesas/alt/alt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/renesas/alt/alt.c b/board/renesas/alt/alt.c index cf6d64c..083e007 100644 --- a/board/renesas/alt/alt.c +++ b/board/renesas/alt/alt.c @@ -49,6 +49,10 @@ void s_init(void) #define SMSTPCR8 0xE6150990 #define ETHER_MSTP813 (1 << 13) +#define MSTPSR3 0xE6150048 +#define SMSTPCR3 0xE615013C +#define IIC1_MSTP323 (1 << 23) + #define mstp_setbits(type, addr, saddr, set) \ out_##type((saddr), in_##type(addr) | (set)) #define mstp_clrbits(type, addr, saddr, clear) \ @@ -69,6 +73,9 @@ int board_early_init_f(void) /* ETHER */ mstp_clrbits_le32(MSTPSR8, SMSTPCR8, ETHER_MSTP813); + /* IIC1 / sh-i2c ch1 */ + mstp_clrbits_le32(MSTPSR3, SMSTPCR3, IIC1_MSTP323); + return 0; }