From patchwork Wed May 23 08:57:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 8900 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 51C6323E49 for ; Wed, 23 May 2012 08:54:05 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 20C22A1871B for ; Wed, 23 May 2012 08:54:05 +0000 (UTC) Received: by ghbz12 with SMTP id z12so1466142ghb.11 for ; Wed, 23 May 2012 01:54:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-tm-as-mml:x-gm-message-state; bh=LPhvSvmiIXlA2rrMfYYEhRh8Y34H5dmCeX0iVs/SOaI=; b=gX0oVfpmyqfnHa8hZTCs+kuB7r+SzclMs7xO+1WpzZZ/LdKTgud1F+1gSqq6B4oT9w 1ESY+kUf4WLDFmP0BsJOZYwEmcCJRIdmiskOVjss1sRM9008MQGdMWD2ugXyqaDnozqX OCRA11WanRSplqpr+XKFNwXlXrFdZ4TG6CpIUXCcrkLDGb31DODUUtCScSlzywJnBrFr KFvRKumctUoED/Yz1tqdHrLcp9gMlvU7Dpp3niwRnppGZChv3xOFiFBhxvK7wvfcdgpn vVezz/3LP2ZVlYTLGcQQx71Xvz8T95LoRZMJveNlhSlwjC1/6F71uUgzgYpqgI3fSVMB ANZg== Received: by 10.50.154.169 with SMTP id vp9mr11947011igb.53.1337763244276; Wed, 23 May 2012 01:54:04 -0700 (PDT) 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.231.35.72 with SMTP id o8csp427382ibd; Wed, 23 May 2012 01:54:03 -0700 (PDT) Received: by 10.68.228.132 with SMTP id si4mr7489219pbc.86.1337763243500; Wed, 23 May 2012 01:54:03 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id qa10si1324172pbb.234.2012.05.23.01.54.02; Wed, 23 May 2012 01:54:03 -0700 (PDT) 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 (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M4G0051GWPLY3G0@mailout4.samsung.com>; Wed, 23 May 2012 17:54:02 +0900 (KST) X-AuditID: cbfee61b-b7faf6d000001f49-22-4fbca5a963cd Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 45.F2.08009.9A5ACBF4; Wed, 23 May 2012 17:54:02 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M4G0076RWPPS9L1@mmp2.samsung.com>; Wed, 23 May 2012 17:54:01 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, clchiou@chromium.org, waihong@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, dianders@chromium.org Subject: [PATCH 2/2 V2] PMIC: SMDK5250: Enable MAX77686 pmic chip Date: Wed, 23 May 2012 14:27:31 +0530 Message-id: <1337763451-20228-2-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1337763451-20228-1-git-send-email-rajeshwari.s@samsung.com> References: <1337763451-20228-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOJMWRmVeSWpSXmKPExsVy+t9jQd1VS/f4G2xdxGbxcP1NFosph7+w ODB53Lm2hy2AMYrLJiU1J7MstUjfLoEro3llA3vBXO6K+5PnsDQwbuLsYuTkkBAwkXi7aw8b hC0mceHeeiCbi0NIYDqjxO/le6CciUwSsy+cYAKpYhMwkth6chojiC0iICHxq/8qI0gRs8BC Rokzk86zdDFycAgLOEocWZYHYrIIqEqs2BsMUs4r4CGx6OkDVohlChLHpn4FszkFPCW2vHgD doQQUM2RU3NZJzDyLmBkWMUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kR7P1n0jsYVzVYHGIU 4GBU4uGNmL3HX4g1say4MvcQowQHs5IIL18LUIg3JbGyKrUoP76oNCe1+BCjNAeLkjjvkyU7 /IUE0hNLUrNTUwtSi2CyTBycUg2MLG3r9+Zf4uTU2apzpkNtYV/I+h0e5eLMfm453x/WMzmx GVhN+Wex/PyL6+u+fTB93GbixPxmU5DnsdCow4YbFjuGFDZ2O8tNlW6LmMkj1nMmNsaSi9fP vHQts6T1lCdnvGP8P0s4O/o/m/E5nyc6mLnj5wJxxUtM399tj1zpunrOrVfFX3WVWIozEg21 mIuKEwErhtv1+gEAAA== X-TM-AS-MML: No X-Gm-Message-State: ALoCoQks6ONQbvpOPquf6FgPHbRME5+mieSN4YcunC000GHV8SN09vfxpJDsL/3cVOqj6SdZE+Ft This patch enables MAX77686 pmic chip for SMDK5250. Signed-off-by: Rajeshwari Shinde Acked-by: Lukasz Majewski Acked-by: Simon Glass --- This patch is based on: "EXYNOS: SMDK5250: Enable the pinmux setup" and "CONFIG: SMDK5250: I2C: Enable I2C" board/samsung/smdk5250/smdk5250.c | 4 ++++ include/configs/smdk5250.h | 6 ++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index b7d7a79..58763fd 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -28,6 +28,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -59,6 +60,9 @@ static void smc9115_pre_init(void) int board_init(void) { gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL); +#if defined(CONFIG_PMIC) + pmic_init(); +#endif return 0; } diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h index 1fca652..05729e6 100644 --- a/include/configs/smdk5250.h +++ b/include/configs/smdk5250.h @@ -198,6 +198,12 @@ #define CONFIG_I2C_MULTI_BUS #define CONFIG_MAX_I2C_NUM 8 +/* PMIC */ +#define CONFIG_SYS_I2C_SLAVE 0x0 +#define CONFIG_PMIC +#define CONFIG_PMIC_I2C +#define CONFIG_PMIC_MAX77686 + /* Ethernet Controllor Driver */ #ifdef CONFIG_CMD_NET #define CONFIG_SMC911X