developer | 1b7028d | 2020-01-10 16:30:33 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2018 MediaTek Inc. |
| 4 | * Author: Sam Shih <sam.shih@mediatek.com> |
| 5 | */ |
| 6 | |
developer | 1b7028d | 2020-01-10 16:30:33 +0800 | [diff] [blame] | 7 | #include <config.h> |
Simon Glass | ed38aef | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 8 | #include <env.h> |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 9 | #include <init.h> |
Simon Glass | 3ba929a | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 10 | #include <asm/global_data.h> |
developer | 1b7028d | 2020-01-10 16:30:33 +0800 | [diff] [blame] | 11 | |
| 12 | DECLARE_GLOBAL_DATA_PTR; |
| 13 | |
| 14 | int board_init(void) |
| 15 | { |
developer | 1b7028d | 2020-01-10 16:30:33 +0800 | [diff] [blame] | 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | int board_late_init(void) |
| 20 | { |
| 21 | gd->env_valid = 1; //to load environment variable from persistent store |
| 22 | env_relocate(); |
| 23 | return 0; |
| 24 | } |