Sam Shih | c7fbc62 | 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 | |
| 7 | #include <common.h> |
| 8 | #include <config.h> |
Simon Glass | 0914011 | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 9 | #include <env.h> |
Simon Glass | 691d719 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 10 | #include <init.h> |
Simon Glass | 401d1c4 | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 11 | #include <asm/global_data.h> |
Sam Shih | c7fbc62 | 2020-01-10 16:30:33 +0800 | [diff] [blame] | 12 | |
| 13 | DECLARE_GLOBAL_DATA_PTR; |
| 14 | |
| 15 | int board_init(void) |
| 16 | { |
Sam Shih | c7fbc62 | 2020-01-10 16:30:33 +0800 | [diff] [blame] | 17 | return 0; |
| 18 | } |
| 19 | |
| 20 | int board_late_init(void) |
| 21 | { |
| 22 | gd->env_valid = 1; //to load environment variable from persistent store |
| 23 | env_relocate(); |
| 24 | return 0; |
| 25 | } |