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>
This commit is contained in:
parent
fdea8bbbc8
commit
622e5fee3d
|
|
@ -21,9 +21,9 @@
|
||||||
#include <asm/arch/pinmux.h>
|
#include <asm/arch/pinmux.h>
|
||||||
#include <asm/arch/power.h>
|
#include <asm/arch/power.h>
|
||||||
#include <asm/arch/system.h>
|
#include <asm/arch/system.h>
|
||||||
#include <power/pmic.h>
|
|
||||||
#include <asm/arch/sromc.h>
|
#include <asm/arch/sromc.h>
|
||||||
#include <lcd.h>
|
#include <lcd.h>
|
||||||
|
#include <i2c.h>
|
||||||
#include <samsung/misc.h>
|
#include <samsung/misc.h>
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
|
|
||||||
|
|
@ -169,7 +169,7 @@ int board_early_init_f(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_POWER)
|
#if defined(CONFIG_POWER) || defined(CONFIG_DM_PMIC)
|
||||||
int power_init_board(void)
|
int power_init_board(void)
|
||||||
{
|
{
|
||||||
set_ps_hold_ctrl();
|
set_ps_hold_ctrl();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue