blob: 2cc73bc35dcae794ce15bda2f681afb90ec980ff [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>
Simon Glass09140112020-05-10 11:40:03 -06009#include <env.h>
Simon Glass691d7192020-05-10 11:40:02 -060010#include <init.h>
Simon Glass401d1c42020-10-30 21:38:53 -060011#include <asm/global_data.h>
Sam Shihc7fbc622020-01-10 16:30:33 +080012
13DECLARE_GLOBAL_DATA_PTR;
14
15int board_init(void)
16{
Sam Shihc7fbc622020-01-10 16:30:33 +080017 return 0;
18}
19
20int board_late_init(void)
21{
22 gd->env_valid = 1; //to load environment variable from persistent store
23 env_relocate();
24 return 0;
25}