From patchwork Thu Dec 27 06:03:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 13703 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BCFD223F74 for ; Thu, 27 Dec 2012 05:56:49 +0000 (UTC) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by fiordland.canonical.com (Postfix) with ESMTP id 5E9C8A18853 for ; Thu, 27 Dec 2012 05:56:49 +0000 (UTC) Received: by mail-vb0-f50.google.com with SMTP id fr13so9398064vbb.37 for ; Wed, 26 Dec 2012 21:56:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-auditid:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:dlp-filter:x-mtr:x-brightmail-tracker :x-brightmail-tracker:x-cfilter-loop:x-gm-message-state; bh=cAk4NYBiD4XZTH6scY9Y/9w0sFe1BjXNxe2/LMpjpJg=; b=I/3eqAGsXSmNSLAbC8K0PD9Dz/4em0g3N47ymoWuzG+NnDY8zfThphEeQNzzAjxG4s PrdQqze6CjtcTlgunfniC2O034IUIqB6zN5d5wPEuXmueS/QV9FagNYOaLTMr0G/Q59/ XlypbyZTvtLdGLwOU3x5FT5xjTCgZFJK5l6zQuGx3FIfLxKDSmWgI1PsZcAgc4S0uLOO WOUv4RSmTdLw17GJQ0SoHib3gqNoLSE1RXSMk5LWY3T8F9oDpm+4hJWaUGORpZBUc/VV adTIkSr+poVuan6821gvkOOlDj4+/ucqsAXlhX3kwi+rpI6uoaoS9WDUaohoz5GbxZ6x elWw== X-Received: by 10.58.196.196 with SMTP id io4mr46397411vec.22.1356587808882; Wed, 26 Dec 2012 21:56:48 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.214.195 with SMTP id oc3csp4973vec; Wed, 26 Dec 2012 21:56:48 -0800 (PST) X-Received: by 10.66.79.66 with SMTP id h2mr87309919pax.31.1356587807747; Wed, 26 Dec 2012 21:56:47 -0800 (PST) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id g1si28425045paw.216.2012.12.26.21.56.47; Wed, 26 Dec 2012 21:56:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MFO008WKDU5I5M0@mailout4.samsung.com>; Thu, 27 Dec 2012 14:56:46 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 67.41.12699.E13EBD05; Thu, 27 Dec 2012 14:56:46 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-62-50dbe31e62d0 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id B6.41.12699.E13EBD05; Thu, 27 Dec 2012 14:56:46 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MFO009UDDU79J90@mmp1.samsung.com>; Thu, 27 Dec 2012 14:56:46 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org Subject: [PATCH 06/16 V2] SMDK5250: Initialise I2C using FDT Date: Thu, 27 Dec 2012 11:33:13 +0530 Message-id: <1356588203-24838-7-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1356588203-24838-1-git-send-email-rajeshwari.s@samsung.com> References: <1356588203-24838-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsWyRsSkSlfu8e0AgyfXVSwerr/JYjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBlvOo4y1jQw1XRtX4CewPjUo4uRk4OCQETiT3dF9gg bDGJC/fWA9lcHEICSxklLnZPY4MpevBjEzOILSSwiFHi2pNciKKJTBLzNhxlBEmwCRhJbD05 DcwWEZCQ+NV/FcxmFoiReL3/B9ggYQEbiUs3foLFWQRUJe7O38kKYvMKeEic2zAZapmCxLGp X8HinAKeEhOuLGOEWOwh8WXPeTaIXgGJb5MPsXQxcgDVy0psOsAMco+EwHU2ia4fO9gh5khK HFxxg2UCo/ACRoZVjKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmbGIHhePrfM+kdjKsaLA4xCnAw KvHwKlrfDhBiTSwrrsw9xCjBwawkwjt9M1CINyWxsiq1KD++qDQntfgQow/QJROZpUST84Gx klcSb2hsYm5qbGppZGRmaopDWEmct9kjJUBIID2xJDU7NbUgtQhmHBMHp1QDo9m1fRNMG6x2 n5CKK37RmcN5UPnInJVCl2a5RDd5rKmyTK5XfTzfgG23FmfxSxZH9UwhrULhsM8VIWbKvT9c 2bgurdPg7Pn+1q5sz45NTx5U7ZrV9vJmvaG7rFnGx3zmxb3GRd++TL0ZwxO1ZNOPK+8Nft9P 2l/guimZ97Gg/Lovf8NXnAv5o8RSnJFoqMVcVJwIAG86hjh0AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsVy+t9jAV25x7cDDJrXylk8XH+TxWLK4S8s Dkwed67tYQtgjGpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLx CdB1y8wBmq2kUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxhzHjVcZaxoIer omv9BPYGxqUcXYycHBICJhIPfmxihrDFJC7cW88GYgsJLGKUuPYkt4uRC8ieyCQxb8NRRpAE m4CRxNaT08BsEQEJiV/9V8FsZoEYidf7f4A1CwvYSFy68RMsziKgKnF3/k5WEJtXwEPi3IbJ bBDLFCSOTf0KFucU8JSYcGUZI8RiD4kve86zTWDkXcDIsIpRNLUguaA4KT3XSK84Mbe4NC9d Lzk/dxMjONifSe9gXNVgcYhRgINRiYdX0fp2gBBrYllxZe4hRgkOZiUR3umbgUK8KYmVValF +fFFpTmpxYcYfYCumsgsJZqcD4zEvJJ4Q2MTc1NjU0sTCxMzSxzCSuK8zR4pAUIC6Yklqdmp qQWpRTDjmDg4pRoYJSzjHHzb7l4OWdOTevMcV+rks2sn3trezC9h6/mQ7/fGyItcszS23ORg U8yxUn+8xPd78mKGHW/mzHPc0OL+zGdvSxmPfaDkjKjqOZnt24qU3z3mjXb8Lbf8llBV3zLF aaFvTTqW8zbGnRLqNzQysytM2KD4aN8GrcjHCmrLG/s+Gkl1pxsosRRnJBpqMRcVJwIAjMKg 1qMCAAA= X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQmpTF5XJpn5SqlHWSLtdkx4NMlJ232oQo1LtiYXcDmG+j2NZwGxr1pjUKwmdGOrl9WqkjoT This patch initialises I2C using FDT. Signed-off-by: Rajeshwari Shinde Acked-by: Simon Glass Acked-by: Heiko Schocher --- Changes since V1: - None board/samsung/smdk5250/smdk5250.c | 20 +------------------- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index 268b42c..73c3ec0 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -243,24 +243,6 @@ static int board_uart_init(void) return 0; } -#ifdef CONFIG_SYS_I2C_INIT_BOARD -static int board_i2c_init(void) -{ - int i, err; - - for (i = 0; i < CONFIG_MAX_I2C_NUM; i++) { - err = exynos_pinmux_config((PERIPH_ID_I2C0 + i), - PINMUX_FLAG_NONE); - if (err) { - debug("I2C%d not configured\n", (PERIPH_ID_I2C0 + i)); - return err; - } - } - i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); - return 0; -} -#endif - #ifdef CONFIG_BOARD_EARLY_INIT_F int board_early_init_f(void) { @@ -271,7 +253,7 @@ int board_early_init_f(void) return err; } #ifdef CONFIG_SYS_I2C_INIT_BOARD - err = board_i2c_init(); + board_i2c_init(gd->fdt_blob); #endif return err; }