blob: e7f492a13bc3176a30e92847778416a6a25ada6a [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
developer1b7028d2020-01-10 16:30:33 +08007#include <config.h>
Simon Glassed38aef2020-05-10 11:40:03 -06008#include <env.h>
Simon Glass97589732020-05-10 11:40:02 -06009#include <init.h>
Simon Glass3ba929a2020-10-30 21:38:53 -060010#include <asm/global_data.h>
developer1b7028d2020-01-10 16:30:33 +080011
12DECLARE_GLOBAL_DATA_PTR;
13
14int board_init(void)
15{
developer1b7028d2020-01-10 16:30:33 +080016 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}