Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 1 | /* |
Alexey Brodkin | cc8be22 | 2016-08-04 14:35:01 +0300 | [diff] [blame] | 2 | * Copyright (C) 2013-2016 Synopsys, Inc. All rights reserved. |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
Alexey Brodkin | cc8be22 | 2016-08-04 14:35:01 +0300 | [diff] [blame] | 7 | #ifndef _CONFIG_NSIM_H_ |
| 8 | #define _CONFIG_NSIM_H_ |
| 9 | |
| 10 | #include <linux/sizes.h> |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 11 | |
| 12 | /* |
| 13 | * CPU configuration |
| 14 | */ |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 15 | #define CONFIG_SYS_TIMER_RATE CONFIG_SYS_CLK_FREQ |
| 16 | |
| 17 | /* |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 18 | * Memory configuration |
| 19 | */ |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 20 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE |
| 21 | |
| 22 | #define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000 |
| 23 | #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE |
Alexey Brodkin | cc8be22 | 2016-08-04 14:35:01 +0300 | [diff] [blame] | 24 | #define CONFIG_SYS_SDRAM_SIZE SZ_256M |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 25 | |
| 26 | #define CONFIG_SYS_INIT_SP_ADDR \ |
| 27 | (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE) |
| 28 | |
Alexey Brodkin | cc8be22 | 2016-08-04 14:35:01 +0300 | [diff] [blame] | 29 | #define CONFIG_SYS_MALLOC_LEN SZ_2M |
| 30 | #define CONFIG_SYS_BOOTM_LEN SZ_32M |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 31 | #define CONFIG_SYS_LOAD_ADDR 0x82000000 |
| 32 | |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 33 | /* |
| 34 | * UART configuration |
| 35 | * |
| 36 | */ |
| 37 | #define CONFIG_ARC_SERIAL |
| 38 | #define CONFIG_ARC_UART_BASE 0xC0FC1000 |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 39 | |
| 40 | /* |
| 41 | * Command line configuration |
| 42 | */ |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 43 | #define CONFIG_AUTO_COMPLETE |
| 44 | #define CONFIG_SYS_MAXARGS 16 |
| 45 | |
| 46 | /* |
| 47 | * Environment settings |
| 48 | */ |
| 49 | #define CONFIG_ENV_IS_NOWHERE |
Alexey Brodkin | cc8be22 | 2016-08-04 14:35:01 +0300 | [diff] [blame] | 50 | #define CONFIG_ENV_SIZE SZ_512 |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 51 | #define CONFIG_ENV_OFFSET 0 |
| 52 | |
| 53 | /* |
| 54 | * Environment configuration |
| 55 | */ |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 56 | #define CONFIG_BOOTFILE "uImage" |
| 57 | #define CONFIG_BOOTARGS "console=ttyARC0,115200n8" |
| 58 | #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR |
| 59 | |
| 60 | /* |
| 61 | * Console configuration |
| 62 | */ |
| 63 | #define CONFIG_SYS_LONGHELP |
Alexey Brodkin | cc8be22 | 2016-08-04 14:35:01 +0300 | [diff] [blame] | 64 | #define CONFIG_SYS_CBSIZE SZ_256 |
Alexey Brodkin | 66712b8 | 2014-02-04 12:56:18 +0400 | [diff] [blame] | 65 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 66 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ |
| 67 | sizeof(CONFIG_SYS_PROMPT) + 16) |
| 68 | |
Alexey Brodkin | cc8be22 | 2016-08-04 14:35:01 +0300 | [diff] [blame] | 69 | #endif /* _CONFIG_NSIM_H_ */ |