From patchwork Tue Mar 3 16:24:40 2015
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Przemyslaw Marczak
X-Patchwork-Id: 445790
X-Patchwork-Delegate: sjg@chromium.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 45703140082
for ;
Wed, 4 Mar 2015 03:27:24 +1100 (AEDT)
Received: from localhost (localhost [127.0.0.1])
by theia.denx.de (Postfix) with ESMTP id 6FD454B622;
Tue, 3 Mar 2015 17:26:51 +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 qlrIFypSrl0Y; Tue, 3 Mar 2015 17:26:51 +0100 (CET)
Received: from theia.denx.de (localhost [127.0.0.1])
by theia.denx.de (Postfix) with ESMTP id 91B8C4B5FA;
Tue, 3 Mar 2015 17:26:26 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
by theia.denx.de (Postfix) with ESMTP id E24474B58F
for ; Tue, 3 Mar 2015 17:25:57 +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 XSO_YpUfztcl for ;
Tue, 3 Mar 2015 17:25:57 +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 mailout1.w1.samsung.com (mailout1.w1.samsung.com
[210.118.77.11]) by theia.denx.de (Postfix) with ESMTPS id 65BCA4B5D0
for ; Tue, 3 Mar 2015 17:25:57 +0100 (CET)
Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244])
by mailout1.w1.samsung.com
(Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit
(built Nov
17 2011)) with ESMTP id <0NKN00G5Y9TZM340@mailout1.w1.samsung.com>
for u-boot@lists.denx.de; Tue, 03 Mar 2015 16:30:00 +0000 (GMT)
X-AuditID: cbfec7f4-b7f126d000001e9a-46-54f5e00082e0
Received: from eusync2.samsung.com ( [203.254.199.212])
by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id B2.9B.07834.000E5F45;
Tue, 03 Mar 2015 16:23:28 +0000 (GMT)
Received: from AMDC1186.digital.local ([106.116.147.185])
by eusync2.samsung.com
(Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit
(built Aug
10 2011)) with ESMTPA id <0NKN007TI9MW8FA0@eusync2.samsung.com>; Tue,
03 Mar 2015 16:25:53 +0000 (GMT)
From: Przemyslaw Marczak
To: u-boot@lists.denx.de
Date: Tue, 03 Mar 2015 17:24:40 +0100
Message-id: <1425399883-14053-10-git-send-email-p.marczak@samsung.com>
X-Mailer: git-send-email 1.9.1
In-reply-to: <1425399883-14053-1-git-send-email-p.marczak@samsung.com>
References: <1412801335-1591-1-git-send-email-p.marczak@samsung.com>
<1425399883-14053-1-git-send-email-p.marczak@samsung.com>
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFprILMWRmVeSWpSXmKPExsVy+t/xK7oMD76GGGyYI2/x5vh0Jos3Dzcz
WnQcaWG02HH5BovFg8M72S2+bdnGaHHgaLbF5MXzmS3e7u1ktzj65RqbA5fH7IaLLB47Z91l
95g28SOzx9k7Oxg93u+7yubRt2UVo8fxG9uZAtijuGxSUnMyy1KL9O0SuDIWX3jDUrCXveL/
59VMDYyr2LoYOTkkBEwkZnf/YYKwxSQu3FsPFOfiEBJYyijx689+dginj0mi4d8cVpAqNgED
iT2XzjCD2CICEhK/+q8yghQxC5xhkviwq4ERJCEskCSxePonsLEsAqoSH+bMAmvgFXCTWHnz
MtQ6OYmTxyaDDeUEindsX8IEsa2BUWJ2w3KWCYy8CxgZVjGKppYmFxQnpeca6hUn5haX5qXr
JefnbmKEBOOXHYyLj1kdYhTgYFTi4d2h9TVEiDWxrLgy9xCjBAezkgivwC2gEG9KYmVValF+
fFFpTmrxIUYmDk6pBkbef53RSVyaD46IPl59/GTcB03vuoZajoYJvZu9RLfuW//b9vbD7atc
7zfP1ngoGL3+ic6NOWf/Nyhu31Bq+Sh56b0LWZUWm3yv33yZ2BiddMIudmXnUguLP+vMom63
aTg/0dl5JOC0Q3nThqqjHi83b7xtIxkdqefKrR2Ta6qcV+h4sN0g1lKJpTgj0VCLuag4EQAY
+yzzJAIAAA==
Cc: Masahiro Yamada ,
Przemyslaw Marczak , Tom Rini
Subject: [U-Boot] [PATCH v2 09/12] dm: board:samsung: power_init_board: add
requirement of CONFIG_DM_PMIC
X-BeenThere: u-boot@lists.denx.de
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: U-Boot discussion
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
MIME-Version: 1.0
Errors-To: u-boot-bounces@lists.denx.de
Sender: "U-Boot"
In the power_init_board function call, regulator driver init is called,
so before compile, make sure that any power framework is defined.
Signed-off-by: Przemyslaw Marczak
---
board/samsung/common/board.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index da2245f..c16e847 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -21,9 +21,9 @@
#include
#include
#include
-#include
#include
#include
+#include
#include
DECLARE_GLOBAL_DATA_PTR;
@@ -162,7 +162,7 @@ int board_early_init_f(void)
}
#endif
-#if defined(CONFIG_POWER)
+#if defined(CONFIG_POWER) || defined(CONFIG_DM_PMIC)
int power_init_board(void)
{
set_ps_hold_ctrl();