blob: 3ffe15d42b803f407c70608d86874be1dfb71abd [file] [log] [blame]
Konstantin Porotchkin1d6ff1f2021-03-16 17:20:57 +01001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2016 Stefan Roese <sr@denx.de>
4 * Copyright (C) 2020 Marvell International Ltd.
5 */
6
7#include <dm.h>
8#include <power/regulator.h>
9
10DECLARE_GLOBAL_DATA_PTR;
11
12__weak int soc_early_init_f(void)
13{
14 return 0;
15}
16
17int board_early_init_f(void)
18{
19 soc_early_init_f();
20
21 return 0;
22}
23
24int board_early_init_r(void)
25{
Konstantin Porotchkin1d6ff1f2021-03-16 17:20:57 +010026 return 0;
27}
28
29int board_init(void)
30{
31 /* address of boot parameters */
Tom Rinibb4dd962022-11-16 13:10:37 -050032 gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
Konstantin Porotchkin1d6ff1f2021-03-16 17:20:57 +010033
34 return 0;
35}
36
37int board_late_init(void)
38{
39 return 0;
40}