Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2012-2020 ASPEED Technology Inc. |
| 4 | * Ryan Chen <ryan_chen@aspeedtech.com> |
| 5 | * |
| 6 | * Copyright 2016 IBM Corporation |
| 7 | * (C) Copyright 2016 Google, Inc |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 8 | */ |
| 9 | |
Chia-Wei, Wang | 98ef128 | 2020-08-03 17:36:08 +0800 | [diff] [blame] | 10 | #ifndef _ASPEED_COMMON_CONFIG_H |
| 11 | #define _ASPEED_COMMON_CONFIG_H |
| 12 | |
| 13 | #include <asm/arch/platform.h> |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 14 | |
| 15 | /* Misc CPU related */ |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 16 | |
Tom Rini | aa6e94d | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 17 | #define CFG_SYS_SDRAM_BASE ASPEED_DRAM_BASE |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 18 | |
| 19 | #ifdef CONFIG_PRE_CON_BUF_SZ |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 20 | #define CFG_SYS_INIT_RAM_ADDR (ASPEED_SRAM_BASE + CONFIG_PRE_CON_BUF_SZ) |
| 21 | #define CFG_SYS_INIT_RAM_SIZE (ASPEED_SRAM_SIZE - CONFIG_PRE_CON_BUF_SZ) |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 22 | #else |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 23 | #define CFG_SYS_INIT_RAM_ADDR (ASPEED_SRAM_BASE) |
| 24 | #define CFG_SYS_INIT_RAM_SIZE (ASPEED_SRAM_SIZE) |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 25 | #endif |
| 26 | |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 27 | /* |
| 28 | * NS16550 Configuration |
| 29 | */ |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 30 | |
maxims@google.com | f6a6a9f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 31 | #endif /* __AST_COMMON_CONFIG_H */ |