From patchwork Tue Oct 4 05:45:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Majewski?= X-Patchwork-Id: 117563 X-Patchwork-Delegate: sbabic@denx.de 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 B1867B6F75 for ; Tue, 4 Oct 2011 16:46:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 00BDF28461; Tue, 4 Oct 2011 07:46:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 SfQIiInylg19; Tue, 4 Oct 2011 07:46:20 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A194F28456; Tue, 4 Oct 2011 07:46:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 03D9828450 for ; Tue, 4 Oct 2011 07:46:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 zZbVTUi9r+4l for ; Tue, 4 Oct 2011 07:46:12 +0200 (CEST) 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 mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by theia.denx.de (Postfix) with ESMTP id 0F6792837F for ; Tue, 4 Oct 2011 07:46:10 +0200 (CEST) Received: from euspt2 (mailout2.w1.samsung.com [210.118.77.12]) by mailout2.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0LSJ00MM41CVO0@mailout2.w1.samsung.com> for u-boot@lists.denx.de; Tue, 04 Oct 2011 06:46:07 +0100 (BST) Received: from linux.samsung.com ([106.116.38.10]) by spt2.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LSJ007QZ1CVL5@spt2.w1.samsung.com> for u-boot@lists.denx.de; Tue, 04 Oct 2011 06:46:07 +0100 (BST) Received: from mcdsrvbld02.digital.local (unknown [106.116.37.23]) by linux.samsung.com (Postfix) with ESMTP id 0865A27004E; Tue, 04 Oct 2011 07:49:00 +0200 (CEST) Date: Tue, 04 Oct 2011 07:45:51 +0200 From: Lukasz Majewski In-reply-to: <1317707151-21803-1-git-send-email-l.majewski@samsung.com> To: u-boot@lists.denx.de Message-id: <1317707151-21803-4-git-send-email-l.majewski@samsung.com> MIME-version: 1.0 X-Mailer: git-send-email 1.7.5.4 References: <1314868412-2949-1-git-send-email-l.majewski@samsung.com> <1317707151-21803-1-git-send-email-l.majewski@samsung.com> Cc: Kyungmin Park , m.szyprowski@samsung.com Subject: [U-Boot] [PATCH v2 3/3] misc:pmic:samsung Enable PMIC driver at GONI target X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Enable support for new PMIC driver at GONI reference target. Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Cc: Stefano Babic Acked-by: Stefano Babic --- Changes for v2: - pmic_init() function call removed from arch/arm/lib/board.c and moved to s5p_goni board_init() function. - prepare separate patch for enabling new PMIC driver at GONI --- board/samsung/goni/goni.c | 4 ++++ include/configs/s5p_goni.h | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index e24cd29..e191bfb 100644 --- a/board/samsung/goni/goni.c +++ b/board/samsung/goni/goni.c @@ -25,6 +25,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -38,6 +39,9 @@ int board_init(void) gd->bd->bi_arch_number = MACH_TYPE_GONI; gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; +#if defined(CONFIG_PMIC) + pmic_init(); +#endif return 0; } diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h index 886c8be..aa51114 100644 --- a/include/configs/s5p_goni.h +++ b/include/configs/s5p_goni.h @@ -223,6 +223,10 @@ #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - 0x1000000) +#define CONFIG_PMIC +#define CONFIG_PMIC_I2C +#define CONFIG_PMIC_MAX8998 + #include /* * I2C Settings