From patchwork Wed Jun 12 02:11:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 2707741 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9267BC1459 for ; Wed, 12 Jun 2013 02:11:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B41D2201D8 for ; Wed, 12 Jun 2013 02:11:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0528F201CC for ; Wed, 12 Jun 2013 02:11:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754579Ab3FLCLT (ORCPT ); Tue, 11 Jun 2013 22:11:19 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:43989 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754129Ab3FLCLT (ORCPT ); Tue, 11 Jun 2013 22:11:19 -0400 Received: by mail-pb0-f47.google.com with SMTP id rr13so6506137pbb.20 for ; Tue, 11 Jun 2013 19:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:sender:message-id:to:cc:in-reply-to:references:from:subject :mime-version:content-type; bh=2TtAiQMNMsWXRZ8+2j52PQB4mza8ixPljsDuNkKz6p4=; b=SYodqHLPMywNRgp0AvDr46Dg6RWlYTnI676ILcXxqKzEST+Ck24hrWCDyOB9GCHV7b osUp23Zc8UzDz6q4afdE/FBlSSdmSjANZEP6dN0uOmlE23f4tlX8PKRAWydTy4uJkX8p MlgJ02R2OXaYd1ZVcJ7V/73SPtWFu6YRRbPXvf3JtsLJKypIpQWTl3r5AT8IvCuCKpzE uQVyshtqLAdE2oXQh2ZnpYRQSFBB54C6awHuPPxh76y95j741x/y8i4WojFOtlkt24jg tctzNU4fYohCDXV6zreMUL6hdH59uQZFHi/TrMkQVp5zey/4PdC0b4lEMTrpHZrmqn04 ziSQ== X-Received: by 10.68.247.69 with SMTP id yc5mr13812641pbc.66.1371003078905; Tue, 11 Jun 2013 19:11:18 -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 ESMTPSA id qp4sm16941307pbc.41.2013.06.11.19.11.16 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 11 Jun 2013 19:11:17 -0700 (PDT) Date: Tue, 11 Jun 2013 19:11:17 -0700 (PDT) Message-ID: <87bo7c6ptp.wl%kuninori.morimoto.gx@renesas.com> To: Simon Cc: Magnus , Linux-SH , Kuninori Morimoto , (RSO) goda In-Reply-To: <87d2rs6pvv.wl%kuninori.morimoto.gx@renesas.com> References: <87li7fwgk8.wl%kuninori.morimoto.gx@renesas.com> <87d2rs6pvv.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 1/3 v4] ARM: shmobile: bockw: add I2C device support MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch enables rx8581 on I2C0 Signed-off-by: Yusuke Goda Signed-off-by: Kuninori Morimoto --- v3 -> v4 - based on renesas-next-20130611v2 arch/arm/mach-shmobile/board-bockw.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 5036d53..29cf3ed 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -66,6 +66,13 @@ static struct sh_mobile_sdhi_info sdhi0_info = { static struct rcar_phy_platform_data usb_phy_platform_data __initdata; +/* I2C */ +static struct i2c_board_info i2c0_devices[] = { + { + I2C_BOARD_INFO("rx8581", 0x51), + }, +}; + static const struct pinctrl_map bockw_pinctrl_map[] = { /* SCIF0 */ PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778", @@ -93,7 +100,10 @@ static void __init bockw_init(void) r8a7778_init_irq_extpin(1); r8a7778_add_standard_devices(); r8a7778_add_usb_phy_device(&usb_phy_platform_data); + r8a7778_add_i2c_device(0); + i2c_register_board_info(0, i2c0_devices, + ARRAY_SIZE(i2c0_devices)); pinctrl_register_mappings(bockw_pinctrl_map, ARRAY_SIZE(bockw_pinctrl_map)); r8a7778_pinmux_init();