2 * Copyright (C) 2012-2020 ASPEED Technology Inc.
3 * Ryan Chen <ryan_chen@aspeedtech.com>
5 * Copyright 2016 IBM Corporation
6 * (C) Copyright 2016 Google, Inc
8 * SPDX-License-Identifier: GPL-2.0+
11 #ifndef __AST_COMMON_CONFIG_H
12 #define __AST_COMMON_CONFIG_H
14 /* Misc CPU related */
15 #define CONFIG_CMDLINE_TAG
16 #define CONFIG_SETUP_MEMORY_TAGS
17 #define CONFIG_INITRD_TAG
19 #define CONFIG_CMDLINE_EDITING
21 /* Enable cache controller */
22 #define CONFIG_SYS_DCACHE_OFF
24 #define CONFIG_SYS_SDRAM_BASE 0x80000000
26 #ifdef CONFIG_PRE_CON_BUF_SZ
27 #define CONFIG_SYS_INIT_RAM_ADDR (0x1e720000 + CONFIG_PRE_CON_BUF_SZ)
28 #define CONFIG_SYS_INIT_RAM_SIZE (36*1024 - CONFIG_PRE_CON_BUF_SZ)
30 #define CONFIG_SYS_INIT_RAM_ADDR (0x1e720000)
31 #define CONFIG_SYS_INIT_RAM_SIZE (36*1024)
34 #define SYS_INIT_RAM_END (CONFIG_SYS_INIT_RAM_ADDR \
35 + CONFIG_SYS_INIT_RAM_SIZE)
36 #define CONFIG_SYS_INIT_SP_ADDR (SYS_INIT_RAM_END \
37 - GENERATED_GBL_DATA_SIZE)
39 #define CONFIG_NR_DRAM_BANKS 1
41 #define CONFIG_SYS_MALLOC_LEN (32 << 20)
44 * NS16550 Configuration
50 #define CONFIG_BOOTP_BOOTFILESIZE
51 #define CONFIG_BOOTP_BOOTPATH
52 #define CONFIG_BOOTP_GATEWAY
53 #define CONFIG_BOOTP_HOSTNAME
54 #define CONFIG_BOOTP_SUBNETMASK
57 * Miscellaneous configurable options
59 #define CONFIG_SYS_LONGHELP
60 #define CONFIG_SYS_CBSIZE 256
62 /* Print Buffer Size */
63 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \
64 + sizeof(CONFIG_SYS_PROMPT) + 16)
65 #define CONFIG_SYS_MAXARGS 16
66 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
68 #define CONFIG_BOOTCOMMAND "bootm 20080000 20300000"
69 #define CONFIG_ENV_OVERWRITE
71 #define CONFIG_EXTRA_ENV_SETTINGS \
76 #endif /* __AST_COMMON_CONFIG_H */