blob: c9c988b93740b390ae12a41f7c1a4b20717b09c5 [file] [log] [blame]
Chia-Wei, Wang8f7f4902020-12-14 13:54:28 +08001/* 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 Rini6a5dccc2022-11-16 13:10:41 -050011#define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE
Chia-Wei, Wang8f7f4902020-12-14 13:54:28 +080012
Chia-Wei Wangbfc0cf82021-10-27 14:17:34 +080013/* Misc */
Chia-Wei Wang17527622021-10-27 14:17:35 +080014#define STR_HELPER(s) #s
15#define STR(s) STR_HELPER(s)
16
Chia-Wei Wangbfc0cf82021-10-27 14:17:34 +080017#define CONFIG_EXTRA_ENV_SETTINGS \
Chia-Wei Wang17527622021-10-27 14:17:35 +080018 "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 Wangbfc0cf82021-10-27 14:17:34 +080022 ""
23
Chia-Wei, Wang8f7f4902020-12-14 13:54:28 +080024#endif /* __CONFIG_H */