blob: fa25cefd28046db82cac3911bb4ec123a50464a7 [file] [log] [blame]
Tom Rini4549e782018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
Patrick Delaunayf8598d92018-03-12 10:46:18 +01002/*
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
Patrick Delaunayf8598d92018-03-12 10:46:18 +01004 */
5
6#include <config.h>
7#include <common.h>
Patrick Delaunayd1a4b092020-05-25 12:19:46 +02008#include <init.h>
9#include <asm/arch/sys_proto.h>
10#include "../common/stpmic1.h"
Patrick Delaunayf8598d92018-03-12 10:46:18 +010011
Patrick Delaunayd1a4b092020-05-25 12:19:46 +020012int board_early_init_f(void)
Patrick Delaunayf8598d92018-03-12 10:46:18 +010013{
Patrick Delaunayd1a4b092020-05-25 12:19:46 +020014 if (IS_ENABLED(CONFIG_PMIC_STPMIC1) && CONFIG_IS_ENABLED(POWER_SUPPORT))
15 stpmic1_init();
Patrick Delaunayf8598d92018-03-12 10:46:18 +010016
Patrick Delaunayd1a4b092020-05-25 12:19:46 +020017 return 0;
Patrick Delaunayf8598d92018-03-12 10:46:18 +010018}