2 * Copyright (C) 2017 Synopsys, Inc. All rights reserved.
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef _CONFIG_HSDK_H_
8 #define _CONFIG_HSDK_H_
10 #include <linux/sizes.h>
15 #define ARC_PERIPHERAL_BASE 0xF0000000
16 #define ARC_DWMMC_BASE (ARC_PERIPHERAL_BASE + 0xA000)
17 #define ARC_DWGMAC_BASE (ARC_PERIPHERAL_BASE + 0x18000)
20 * Memory configuration
22 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
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
28 #define CONFIG_SYS_INIT_SP_ADDR \
29 (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
31 #define CONFIG_SYS_MALLOC_LEN SZ_2M
32 #define CONFIG_SYS_BOOTM_LEN SZ_32M
33 #define CONFIG_SYS_LOAD_ADDR 0x82000000
36 * This board might be of different versions so handle it
38 #define CONFIG_BOARD_TYPES
43 #define CONFIG_DW_SERIAL
44 #define CONFIG_SYS_NS16550_SERIAL
45 #define CONFIG_SYS_NS16550_CLK 33330000
46 #define CONFIG_SYS_NS16550_MEM32
49 * Ethernet PHY configuration
54 * USB 1.1 configuration
56 #define CONFIG_USB_OHCI_NEW
57 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
60 * Environment settings
62 #define CONFIG_ENV_SIZE SZ_16K
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
69 * Environment configuration
71 #define CONFIG_BOOTFILE "uImage"
72 #define CONFIG_BOOTARGS "console=ttyS0,115200n8"
73 #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
76 * Console configuration
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)
88 * Misc utility configuration
90 #define CONFIG_BOUNCE_BUFFER
92 #endif /* _CONFIG_HSDK_H_ */