blob: b9296bede24b38af9d50b61f037812680f960cf2 [file] [log] [blame]
Sam Shihc7fbc622020-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>
9
10DECLARE_GLOBAL_DATA_PTR;
11
12int board_init(void)
13{
14 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
15 return 0;
16}
17
18int board_late_init(void)
19{
20 gd->env_valid = 1; //to load environment variable from persistent store
21 env_relocate();
22 return 0;
23}