]>
Commit | Line | Data |
---|---|---|
67482f57 AB |
1 | /* |
2 | * Copyright (C) 2017 Synopsys, Inc. All rights reserved. | |
3 | * | |
4 | * SPDX-License-Identifier: GPL-2.0+ | |
5 | */ | |
6 | ||
7 | #ifndef _CONFIG_HSDK_H_ | |
8 | #define _CONFIG_HSDK_H_ | |
9 | ||
10 | #include <linux/sizes.h> | |
11 | ||
12 | /* | |
13 | * CPU configuration | |
14 | */ | |
15 | #define ARC_PERIPHERAL_BASE 0xF0000000 | |
16 | #define ARC_DWMMC_BASE (ARC_PERIPHERAL_BASE + 0xA000) | |
17 | #define ARC_DWGMAC_BASE (ARC_PERIPHERAL_BASE + 0x18000) | |
18 | ||
19 | /* | |
20 | * Memory configuration | |
21 | */ | |
22 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE | |
23 | ||
24 | #define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000 | |
25 | #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE | |
26 | #define CONFIG_SYS_SDRAM_SIZE SZ_1G | |
27 | ||
28 | #define CONFIG_SYS_INIT_SP_ADDR \ | |
29 | (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE) | |
30 | ||
31 | #define CONFIG_SYS_MALLOC_LEN SZ_2M | |
32 | #define CONFIG_SYS_BOOTM_LEN SZ_32M | |
33 | #define CONFIG_SYS_LOAD_ADDR 0x82000000 | |
34 | ||
35 | /* | |
36 | * This board might be of different versions so handle it | |
37 | */ | |
38 | #define CONFIG_BOARD_TYPES | |
39 | ||
40 | /* | |
41 | * UART configuration | |
42 | */ | |
43 | #define CONFIG_DW_SERIAL | |
44 | #define CONFIG_SYS_NS16550_SERIAL | |
45 | #define CONFIG_SYS_NS16550_CLK 33330000 | |
46 | #define CONFIG_SYS_NS16550_MEM32 | |
47 | ||
48 | /* | |
49 | * Ethernet PHY configuration | |
50 | */ | |
51 | #define CONFIG_MII | |
52 | ||
53 | /* | |
54 | * USB 1.1 configuration | |
55 | */ | |
56 | #define CONFIG_USB_OHCI_NEW | |
57 | #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1 | |
58 | ||
59 | /* | |
60 | * Environment settings | |
61 | */ | |
62 | #define CONFIG_ENV_SIZE SZ_16K | |
67482f57 AB |
63 | #define FAT_ENV_INTERFACE "mmc" |
64 | #define FAT_ENV_DEVICE_AND_PART "0:1" | |
65 | #define FAT_ENV_FILE "uboot.env" | |
66 | #define CONFIG_FAT_WRITE | |
67 | ||
68 | /* | |
69 | * Environment configuration | |
70 | */ | |
71 | #define CONFIG_BOOTFILE "uImage" | |
72 | #define CONFIG_BOOTARGS "console=ttyS0,115200n8" | |
73 | #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR | |
74 | ||
75 | /* | |
76 | * Console configuration | |
77 | */ | |
78 | #define CONFIG_AUTO_COMPLETE | |
79 | #define CONFIG_CMDLINE_EDITING | |
80 | #define CONFIG_SYS_LONGHELP | |
81 | #define CONFIG_SYS_MAXARGS 16 | |
82 | #define CONFIG_SYS_CBSIZE SZ_256 | |
83 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE | |
84 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ | |
85 | sizeof(CONFIG_SYS_PROMPT) + 16) | |
86 | ||
87 | /* | |
88 | * Misc utility configuration | |
89 | */ | |
90 | #define CONFIG_BOUNCE_BUFFER | |
91 | ||
92 | #endif /* _CONFIG_HSDK_H_ */ |