blob: 912b99324065ba091f14e585bbe5af92e654f0af [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 Glass97589732020-05-10 11:40:02 -06009#include <init.h>
developer1b7028d2020-01-10 16:30:33 +080010
11DECLARE_GLOBAL_DATA_PTR;
12
13int board_init(void)
14{
15 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
16 return 0;
17}
18
19int board_late_init(void)
20{
21 gd->env_valid = 1; //to load environment variable from persistent store
22 env_relocate();
23 return 0;
24}