]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/socfpga_arria10_socdk.h
7ea780b48b1a7ed9c06c3ba7d16111302ceeb5f7
[people/ms/u-boot.git] / include / configs / socfpga_arria10_socdk.h
1 /*
2 * Copyright (C) 2015-2017 Altera Corporation <www.altera.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0
5 */
6
7 #ifndef __CONFIG_SOCFGPA_ARRIA10_H__
8 #define __CONFIG_SOCFGPA_ARRIA10_H__
9
10 #include <asm/arch/base_addr_a10.h>
11 /* U-Boot Commands */
12 #define CONFIG_FAT_WRITE
13 #define CONFIG_HW_WATCHDOG
14
15 /* Booting Linux */
16 #define CONFIG_LOADADDR 0x01000000
17 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
18
19 /*
20 * U-Boot general configurations
21 */
22 /* Cache options */
23 #define CONFIG_SYS_DCACHE_OFF
24
25 /* Memory configurations */
26 #define PHYS_SDRAM_1_SIZE 0x40000000
27
28 /* Ethernet on SoC (EMAC) */
29 #if defined(CONFIG_CMD_NET)
30 #define CONFIG_PHY_MICREL
31 #define CONFIG_PHY_MICREL_KSZ9031
32 #endif
33
34 /*
35 * U-Boot environment configurations
36 */
37 #define CONFIG_ENV_IS_IN_MMC
38
39 /*
40 * arguments passed to the bootz command. The value of
41 * CONFIG_BOOTARGS goes into the environment value "bootargs".
42 * Do note the value will overide also the chosen node in FDT blob.
43 */
44 #define CONFIG_BOOTARGS "console=ttyS0," __stringify(CONFIG_BAUDRATE)
45
46 /*
47 * Serial / UART configurations
48 */
49 #define CONFIG_SYS_NS16550_MEM32
50 #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, 115200}
51
52 /*
53 * L4 OSC1 Timer 0
54 */
55 /* reload value when timer count to zero */
56 #define TIMER_LOAD_VAL 0xFFFFFFFF
57
58 /*
59 * Flash configurations
60 */
61 #define CONFIG_SYS_MAX_FLASH_BANKS 1
62
63 /* The rest of the configuration is shared */
64 #include <configs/socfpga_common.h>
65
66 #endif /* __CONFIG_SOCFGPA_ARRIA10_H__ */