maxims@google.com | 899b40f | 2017-01-18 13:44:57 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012-2020 ASPEED Technology Inc. |
| 3 | * Ryan Chen <ryan_chen@aspeedtech.com> |
| 4 | * |
| 5 | * Copyright 2016 IBM Corporation |
| 6 | * (C) Copyright 2016 Google, Inc |
| 7 | * |
| 8 | * SPDX-License-Identifier: GPL-2.0+ |
| 9 | */ |
| 10 | |
| 11 | #ifndef __AST_COMMON_CONFIG_H |
| 12 | #define __AST_COMMON_CONFIG_H |
| 13 | |
| 14 | /* Misc CPU related */ |
| 15 | #define CONFIG_CMDLINE_TAG |
| 16 | #define CONFIG_SETUP_MEMORY_TAGS |
| 17 | #define CONFIG_INITRD_TAG |
| 18 | |
| 19 | #define CONFIG_CMDLINE_EDITING |
| 20 | |
| 21 | /* Enable cache controller */ |
| 22 | #define CONFIG_SYS_DCACHE_OFF |
| 23 | |
| 24 | #define CONFIG_SYS_SDRAM_BASE 0x80000000 |
| 25 | |
| 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) |
| 29 | #else |
| 30 | #define CONFIG_SYS_INIT_RAM_ADDR (0x1e720000) |
| 31 | #define CONFIG_SYS_INIT_RAM_SIZE (36*1024) |
| 32 | #endif |
| 33 | |
| 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) |
| 38 | |
| 39 | #define CONFIG_NR_DRAM_BANKS 1 |
| 40 | |
| 41 | #define CONFIG_SYS_MALLOC_LEN (32 << 20) |
| 42 | |
| 43 | /* |
| 44 | * NS16550 Configuration |
| 45 | */ |
| 46 | #define CONFIG_BAUDRATE 115200 |
| 47 | |
| 48 | /* |
| 49 | * BOOTP options |
| 50 | */ |
| 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 |
| 56 | |
| 57 | /* |
| 58 | * Miscellaneous configurable options |
| 59 | */ |
| 60 | #define CONFIG_SYS_LONGHELP |
| 61 | #define CONFIG_SYS_CBSIZE 256 |
| 62 | |
| 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 |
| 68 | |
| 69 | #define CONFIG_BOOTARGS \ |
| 70 | "console=ttyS4,115200n8" \ |
| 71 | " root=/dev/ram rw" |
| 72 | |
| 73 | #define CONFIG_BOOTCOMMAND "bootm 20080000 20300000" |
| 74 | #define CONFIG_ENV_OVERWRITE |
| 75 | |
| 76 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 77 | "verify=yes\0" \ |
| 78 | "spi_dma=yes\0" \ |
| 79 | "" |
| 80 | |
| 81 | #endif /* __AST_COMMON_CONFIG_H */ |