]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/hsdk.h
Merge git://git.denx.de/u-boot-arc
[people/ms/u-boot.git] / include / configs / hsdk.h
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
63 #define CONFIG_ENV_IS_IN_FAT
64 #define FAT_ENV_INTERFACE "mmc"
65 #define FAT_ENV_DEVICE_AND_PART "0:1"
66 #define FAT_ENV_FILE "uboot.env"
67 #define CONFIG_FAT_WRITE
68
69 /*
70 * Environment configuration
71 */
72 #define CONFIG_BOOTFILE "uImage"
73 #define CONFIG_BOOTARGS "console=ttyS0,115200n8"
74 #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
75
76 /*
77 * Console configuration
78 */
79 #define CONFIG_AUTO_COMPLETE
80 #define CONFIG_CMDLINE_EDITING
81 #define CONFIG_SYS_LONGHELP
82 #define CONFIG_SYS_MAXARGS 16
83 #define CONFIG_SYS_CBSIZE SZ_256
84 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
85 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
86 sizeof(CONFIG_SYS_PROMPT) + 16)
87
88 /*
89 * Misc utility configuration
90 */
91 #define CONFIG_BOUNCE_BUFFER
92
93 #endif /* _CONFIG_HSDK_H_ */