blob: 6815c5ff2cfa0d4712b1c19f7439830f03c41698 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
maxims@google.com899b40f2017-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.com899b40f2017-01-18 13:44:57 -08008 */
9
10#ifndef __AST_COMMON_CONFIG_H
11#define __AST_COMMON_CONFIG_H
12
13/* Misc CPU related */
14#define CONFIG_CMDLINE_TAG
15#define CONFIG_SETUP_MEMORY_TAGS
16#define CONFIG_INITRD_TAG
17
maxims@google.com899b40f2017-01-18 13:44:57 -080018#define CONFIG_SYS_SDRAM_BASE 0x80000000
19
20#ifdef CONFIG_PRE_CON_BUF_SZ
21#define CONFIG_SYS_INIT_RAM_ADDR (0x1e720000 + CONFIG_PRE_CON_BUF_SZ)
22#define CONFIG_SYS_INIT_RAM_SIZE (36*1024 - CONFIG_PRE_CON_BUF_SZ)
23#else
24#define CONFIG_SYS_INIT_RAM_ADDR (0x1e720000)
25#define CONFIG_SYS_INIT_RAM_SIZE (36*1024)
26#endif
27
28#define SYS_INIT_RAM_END (CONFIG_SYS_INIT_RAM_ADDR \
29 + CONFIG_SYS_INIT_RAM_SIZE)
30#define CONFIG_SYS_INIT_SP_ADDR (SYS_INIT_RAM_END \
31 - GENERATED_GBL_DATA_SIZE)
32
maxims@google.com899b40f2017-01-18 13:44:57 -080033#define CONFIG_SYS_MALLOC_LEN (32 << 20)
34
35/*
36 * NS16550 Configuration
37 */
maxims@google.com899b40f2017-01-18 13:44:57 -080038
39/*
40 * BOOTP options
41 */
42#define CONFIG_BOOTP_BOOTFILESIZE
maxims@google.com899b40f2017-01-18 13:44:57 -080043
44/*
45 * Miscellaneous configurable options
46 */
maxims@google.com899b40f2017-01-18 13:44:57 -080047
maxims@google.com899b40f2017-01-18 13:44:57 -080048#define CONFIG_BOOTCOMMAND "bootm 20080000 20300000"
49#define CONFIG_ENV_OVERWRITE
50
51#define CONFIG_EXTRA_ENV_SETTINGS \
52 "verify=yes\0" \
53 "spi_dma=yes\0" \
54 ""
55
56#endif /* __AST_COMMON_CONFIG_H */