2018-05-06 22:27:01 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
2018-03-12 09:46:18 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <common.h>
|
2020-05-25 10:19:46 +00:00
|
|
|
#include <init.h>
|
|
|
|
#include <asm/arch/sys_proto.h>
|
|
|
|
#include "../common/stpmic1.h"
|
2018-03-12 09:46:18 +00:00
|
|
|
|
2020-05-25 10:19:46 +00:00
|
|
|
int board_early_init_f(void)
|
2018-03-12 09:46:18 +00:00
|
|
|
{
|
2020-05-25 10:19:46 +00:00
|
|
|
if (IS_ENABLED(CONFIG_PMIC_STPMIC1) && CONFIG_IS_ENABLED(POWER_SUPPORT))
|
|
|
|
stpmic1_init();
|
2018-03-12 09:46:18 +00:00
|
|
|
|
2020-05-25 10:19:46 +00:00
|
|
|
return 0;
|
2018-03-12 09:46:18 +00:00
|
|
|
}
|