1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2020 Synopsys, Inc. All rights reserved.
4 * Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
7 #ifndef _CONFIG_HSDK_H_
8 #define _CONFIG_HSDK_H_
10 #include <linux/sizes.h>
16 #define ARC_PERIPHERAL_BASE 0xF0000000
17 #define ARC_DWMMC_BASE (ARC_PERIPHERAL_BASE + 0xA000)
18 #define ARC_DWGMAC_BASE (ARC_PERIPHERAL_BASE + 0x18000)
21 * Memory configuration
23 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
25 #define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000
26 #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
27 #define CONFIG_SYS_SDRAM_SIZE SZ_1G
29 #define CONFIG_SYS_INIT_SP_ADDR \
30 (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
32 #define CONFIG_SYS_MALLOC_LEN SZ_2M
33 #define CONFIG_SYS_BOOTM_LEN SZ_128M
38 #define CONFIG_SYS_NS16550_SERIAL
39 #define CONFIG_SYS_NS16550_CLK 33330000
40 #define CONFIG_SYS_NS16550_MEM32
43 * Ethernet PHY configuration
47 * USB 1.1 configuration
49 #define CONFIG_USB_OHCI_NEW
50 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
53 * Environment settings
55 #define CONFIG_EXTRA_ENV_SETTINGS \
56 "upgrade=if mmc rescan && " \
57 "fatload mmc 0:1 ${loadaddr} u-boot-update.scr && " \
58 "iminfo ${loadaddr} && source ${loadaddr}; then; else echo " \
59 "\"Fail to upgrade.\n" \
60 "Do you have u-boot-update.scr and u-boot.head on first (FAT) SD card partition?\"" \
63 "hsdk_hs45d=setenv core_mask 0x2; setenv haps_apb_location 0x1; \
64 setenv l2_cache_ena 0x0; setenv icache_ena 0x0; setenv csm_location 0x10; \
65 setenv dcache_ena 0x0; setenv core_iccm_1 0x7; \
66 setenv core_dccm_1 0x8; setenv non_volatile_limit 0xF;\0" \
67 "hsdk_hs47d=setenv core_mask 0x1; setenv haps_apb_location 0x1; \
68 setenv l2_cache_ena 0x0; setenv icache_ena 0x1; setenv csm_location 0x10; \
69 setenv dcache_ena 0x1; setenv core_iccm_0 0x10; \
70 setenv core_dccm_0 0x10; setenv non_volatile_limit 0xF;\0" \
71 "hsdk_hs47d_ccm=setenv core_mask 0x2; setenv haps_apb_location 0x1; \
72 setenv l2_cache_ena 0x0; setenv icache_ena 0x1; setenv csm_location 0x10; \
73 setenv dcache_ena 0x1; setenv core_iccm_1 0x7; \
74 setenv core_dccm_1 0x8; setenv non_volatile_limit 0xF;\0" \
75 "hsdk_hs48=setenv core_mask 0x1; setenv haps_apb_location 0x1; \
76 setenv l2_cache_ena 0x1; setenv icache_ena 0x1; setenv csm_location 0x10; \
77 setenv dcache_ena 0x1; setenv core_iccm_0 0x10; \
78 setenv core_dccm_0 0x10; setenv non_volatile_limit 0xF;\0" \
79 "hsdk_hs48_ccm=setenv core_mask 0x2; setenv haps_apb_location 0x1; \
80 setenv l2_cache_ena 0x1; setenv icache_ena 0x1; setenv csm_location 0x10; \
81 setenv dcache_ena 0x1; setenv core_iccm_1 0x7; \
82 setenv core_dccm_1 0x8; setenv non_volatile_limit 0xF;\0" \
83 "hsdk_hs48x2=run hsdk_hs47dx2;\0" \
84 "hsdk_hs47dx2=setenv core_mask 0x3; setenv haps_apb_location 0x1; \
85 setenv l2_cache_ena 0x1; setenv icache_ena 0x1; setenv csm_location 0x10; \
86 setenv dcache_ena 0x1; setenv core_iccm_0 0x10; \
87 setenv core_dccm_0 0x10; setenv non_volatile_limit 0xF; \
88 setenv core_iccm_1 0x6; setenv core_dccm_1 0x6;\0" \
89 "hsdk_hs48x3=run hsdk_hs47dx3;\0" \
90 "hsdk_hs47dx3=setenv core_mask 0x7; setenv haps_apb_location 0x1; \
91 setenv l2_cache_ena 0x1; setenv icache_ena 0x1; setenv csm_location 0x10; \
92 setenv dcache_ena 0x1; setenv core_iccm_0 0x10; \
93 setenv core_dccm_0 0x10; setenv non_volatile_limit 0xF; \
94 setenv core_iccm_1 0x6; setenv core_dccm_1 0x6; \
95 setenv core_iccm_2 0x10; setenv core_dccm_2 0x10;\0" \
96 "hsdk_hs48x4=run hsdk_hs47dx4;\0" \
97 "hsdk_hs47dx4=setenv core_mask 0xF; setenv haps_apb_location 0x1; \
98 setenv l2_cache_ena 0x1; setenv icache_ena 0x1; setenv csm_location 0x10; \
99 setenv dcache_ena 0x1; setenv core_iccm_0 0x10; \
100 setenv core_dccm_0 0x10; setenv non_volatile_limit 0xF; \
101 setenv core_iccm_1 0x6; setenv core_dccm_1 0x6; \
102 setenv core_iccm_2 0x10; setenv core_dccm_2 0x10; \
103 setenv core_iccm_3 0x6; setenv core_dccm_3 0x6;\0"
106 * Environment configuration
108 #define CONFIG_BOOTFILE "uImage"
110 /* Cli configuration */
111 #define CONFIG_SYS_CBSIZE SZ_2K
114 * Callback configuration
117 #endif /* _CONFIG_HSDK_H_ */