blob: 5c9005805e1f97cdb9e4fb49f11d42a7a695195d [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
maxims@google.comf6a6a9f2017-01-18 13:44:57 -08002/*
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.comf6a6a9f2017-01-18 13:44:57 -08008 */
9
Chia-Wei, Wang98ef1282020-08-03 17:36:08 +080010#ifndef _ASPEED_COMMON_CONFIG_H
11#define _ASPEED_COMMON_CONFIG_H
12
13#include <asm/arch/platform.h>
maxims@google.comf6a6a9f2017-01-18 13:44:57 -080014
15/* Misc CPU related */
maxims@google.comf6a6a9f2017-01-18 13:44:57 -080016
Chia-Wei, Wang98ef1282020-08-03 17:36:08 +080017#define CONFIG_SYS_SDRAM_BASE ASPEED_DRAM_BASE
maxims@google.comf6a6a9f2017-01-18 13:44:57 -080018
19#ifdef CONFIG_PRE_CON_BUF_SZ
Chia-Wei, Wang98ef1282020-08-03 17:36:08 +080020#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)
maxims@google.comf6a6a9f2017-01-18 13:44:57 -080022#else
Chia-Wei, Wang98ef1282020-08-03 17:36:08 +080023#define CONFIG_SYS_INIT_RAM_ADDR (ASPEED_SRAM_BASE)
24#define CONFIG_SYS_INIT_RAM_SIZE (ASPEED_SRAM_SIZE)
maxims@google.comf6a6a9f2017-01-18 13:44:57 -080025#endif
26
maxims@google.comf6a6a9f2017-01-18 13:44:57 -080027/*
28 * NS16550 Configuration
29 */
maxims@google.comf6a6a9f2017-01-18 13:44:57 -080030
maxims@google.comf6a6a9f2017-01-18 13:44:57 -080031#endif /* __AST_COMMON_CONFIG_H */