blob: ff233e920a031b5a5950784d7fa2275ee62a45c7 [file] [log] [blame]
developer1b7028d2020-01-10 16:30:33 +08001// 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>
Simon Glassed38aef2020-05-10 11:40:03 -06009#include <env.h>
Simon Glass97589732020-05-10 11:40:02 -060010#include <init.h>
Simon Glass3ba929a2020-10-30 21:38:53 -060011#include <asm/global_data.h>
developer1b7028d2020-01-10 16:30:33 +080012
13DECLARE_GLOBAL_DATA_PTR;
14
15int board_init(void)
16{
Tom Rinibb4dd962022-11-16 13:10:37 -050017 gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
developer1b7028d2020-01-10 16:30:33 +080018 return 0;
19}
20
21int board_late_init(void)
22{
23 gd->env_valid = 1; //to load environment variable from persistent store
24 env_relocate();
25 return 0;
26}