]>
Commit | Line | Data |
---|---|---|
c7fbc620 SS |
1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | |
3 | * Copyright (C) 2018 MediaTek Inc. | |
4 | * Author: Sam Shih <[email protected]> | |
5 | */ | |
6 | ||
7 | #include <common.h> | |
8 | #include <config.h> | |
09140113 | 9 | #include <env.h> |
691d719d | 10 | #include <init.h> |
c7fbc620 SS |
11 | |
12 | DECLARE_GLOBAL_DATA_PTR; | |
13 | ||
14 | int board_init(void) | |
15 | { | |
16 | gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; | |
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 | } |