Chia-Wei, Wang | 4a84cf0 | 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 | |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 11 | #define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE |
Chia-Wei, Wang | 4a84cf0 | 2020-12-14 13:54:28 +0800 | [diff] [blame] | 12 | |
Chia-Wei Wang | 3aeb239 | 2021-10-27 14:17:34 +0800 | [diff] [blame] | 13 | /* Misc */ |
Chia-Wei Wang | e3cdc2c | 2021-10-27 14:17:35 +0800 | [diff] [blame] | 14 | #define STR_HELPER(s) #s |
| 15 | #define STR(s) STR_HELPER(s) |
| 16 | |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 17 | #define CFG_EXTRA_ENV_SETTINGS \ |
Chia-Wei Wang | e3cdc2c | 2021-10-27 14:17:35 +0800 | [diff] [blame] | 18 | "loadaddr=" STR(CONFIG_SYS_LOAD_ADDR) "\0" \ |
| 19 | "bootspi=fdt addr 20100000 && fdt header get fitsize totalsize && " \ |
| 20 | "cp.b 20100000 ${loadaddr} ${fitsize} && bootm; " \ |
| 21 | "echo Error loading kernel FIT image\0" \ |
Chia-Wei Wang | 3aeb239 | 2021-10-27 14:17:34 +0800 | [diff] [blame] | 22 | "" |
| 23 | |
Chia-Wei, Wang | 4a84cf0 | 2020-12-14 13:54:28 +0800 | [diff] [blame] | 24 | #endif /* __CONFIG_H */ |