1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2012-2020 ASPEED Technology Inc.
4 * Ryan Chen <ryan_chen@aspeedtech.com>
6 * Copyright 2016 IBM Corporation
7 * (C) Copyright 2016 Google, Inc
10 #ifndef _ASPEED_COMMON_CONFIG_H
11 #define _ASPEED_COMMON_CONFIG_H
13 #include <asm/arch/platform.h>
15 /* Misc CPU related */
17 #define CONFIG_SYS_SDRAM_BASE ASPEED_DRAM_BASE
19 #ifdef CONFIG_PRE_CON_BUF_SZ
20 #define CONFIG_SYS_INIT_RAM_ADDR (ASPEED_SRAM_BASE + CONFIG_PRE_CON_BUF_SZ)
21 #define CONFIG_SYS_INIT_RAM_SIZE (ASPEED_SRAM_SIZE - CONFIG_PRE_CON_BUF_SZ)
23 #define CONFIG_SYS_INIT_RAM_ADDR (ASPEED_SRAM_BASE)
24 #define CONFIG_SYS_INIT_RAM_SIZE (ASPEED_SRAM_SIZE)
27 #define SYS_INIT_RAM_END (CONFIG_SYS_INIT_RAM_ADDR \
28 + CONFIG_SYS_INIT_RAM_SIZE)
29 #define CONFIG_SYS_INIT_SP_ADDR (SYS_INIT_RAM_END \
30 - GENERATED_GBL_DATA_SIZE)
33 * NS16550 Configuration
39 #define CONFIG_BOOTP_BOOTFILESIZE
42 * Miscellaneous configurable options
45 #define CONFIG_EXTRA_ENV_SETTINGS \
50 #endif /* __AST_COMMON_CONFIG_H */