1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (C) 2018 MediaTek Inc.
4  * Author: Sam Shih <sam.shih@mediatek.com>
5  */
6 
7 #include <common.h>
8 #include <config.h>
9 #include <env.h>
10 #include <init.h>
11 #include <asm/global_data.h>
12 
13 DECLARE_GLOBAL_DATA_PTR;
14 
board_init(void)15 int board_init(void)
16 {
17 	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
18 	return 0;
19 }
20 
board_late_init(void)21 int board_late_init(void)
22 {
23 	gd->env_valid = 1; //to load environment variable from persistent store
24 	env_relocate();
25 	return 0;
26 }
27