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
46 #define CONFIG_BAUDRATE 115200
51 #define CONFIG_BOOTP_BOOTFILESIZE
52 #define CONFIG_BOOTP_BOOTPATH
53 #define CONFIG_BOOTP_GATEWAY
54 #define CONFIG_BOOTP_HOSTNAME
55 #define CONFIG_BOOTP_SUBNETMASK
58 * Miscellaneous configurable options
60 #define CONFIG_SYS_LONGHELP
61 #define CONFIG_SYS_CBSIZE 256
63 /* Print Buffer Size */
64 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \
65 + sizeof(CONFIG_SYS_PROMPT) + 16)
66 #define CONFIG_SYS_MAXARGS 16
67 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
69 #define CONFIG_BOOTARGS \
70 "console=ttyS4,115200n8" \
73 #define CONFIG_BOOTCOMMAND "bootm 20080000 20300000"
74 #define CONFIG_ENV_OVERWRITE
76 #define CONFIG_EXTRA_ENV_SETTINGS \
81 #endif /* __AST_COMMON_CONFIG_H */