Chia-Wei, Wang | 8f7f490 | 2020-12-14 13:54:28 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (c) Aspeed Technology Inc. |
| 4 | */ |
| 5 | |
| 6 | #ifndef __CONFIG_H |
| 7 | #define __CONFIG_H |
| 8 | |
| 9 | #include <configs/aspeed-common.h> |
| 10 | |
| 11 | #define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_TEXT_BASE |
| 12 | |
Chia-Wei Wang | bfc0cf8 | 2021-10-27 14:17:34 +0800 | [diff] [blame] | 13 | /* Memory Info */ |
| 14 | #define CONFIG_SYS_LOAD_ADDR 0x83000000 |
| 15 | |
| 16 | /* Misc */ |
Chia-Wei Wang | 1752762 | 2021-10-27 14:17:35 +0800 | [diff] [blame] | 17 | #define STR_HELPER(s) #s |
| 18 | #define STR(s) STR_HELPER(s) |
| 19 | |
Chia-Wei Wang | bfc0cf8 | 2021-10-27 14:17:34 +0800 | [diff] [blame] | 20 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Chia-Wei Wang | 1752762 | 2021-10-27 14:17:35 +0800 | [diff] [blame] | 21 | "loadaddr=" STR(CONFIG_SYS_LOAD_ADDR) "\0" \ |
| 22 | "bootspi=fdt addr 20100000 && fdt header get fitsize totalsize && " \ |
| 23 | "cp.b 20100000 ${loadaddr} ${fitsize} && bootm; " \ |
| 24 | "echo Error loading kernel FIT image\0" \ |
Chia-Wei Wang | bfc0cf8 | 2021-10-27 14:17:34 +0800 | [diff] [blame] | 25 | "" |
| 26 | |
Chia-Wei, Wang | 8f7f490 | 2020-12-14 13:54:28 +0800 | [diff] [blame] | 27 | #endif /* __CONFIG_H */ |