summaryrefslogtreecommitdiff
path: root/board/samsung
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-04-20 20:07:50 +0200
committerSimon Glass <sjg@chromium.org>2015-05-14 18:49:38 -0600
commit622e5fee3d14c06c4c68f3c89612a9e58926c900 (patch)
treeedcff7958d1534c5a7cd92391ea649eac382624b /board/samsung
parentfdea8bbbc8a3e2ea17ebad507957039ef94a4414 (diff)
downloadu-boot-imx-622e5fee3d14c06c4c68f3c89612a9e58926c900.zip
u-boot-imx-622e5fee3d14c06c4c68f3c89612a9e58926c900.tar.gz
u-boot-imx-622e5fee3d14c06c4c68f3c89612a9e58926c900.tar.bz2
dm: board:samsung: power_init_board: add requirement of CONFIG_DM_PMIC
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 <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/samsung')
-rw-r--r--board/samsung/common/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index 9be2950..20dd75c 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -21,9 +21,9 @@
#include <asm/arch/pinmux.h>
#include <asm/arch/power.h>
#include <asm/arch/system.h>
-#include <power/pmic.h>
#include <asm/arch/sromc.h>
#include <lcd.h>
+#include <i2c.h>
#include <samsung/misc.h>
#include <usb.h>
@@ -169,7 +169,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();