ARM: socfpga: add support for IS1 board
[platform/kernel/u-boot.git] / include / configs / socfpga_is1.h
1 /*
2  * Copyright (C) 2014 Marek Vasut <marex@denx.de>
3  * Copyright (C) 2016 Pavel Machek <pavel@denx.de>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7 #ifndef __CONFIG_SOCFPGA_IS1_H__
8 #define __CONFIG_SOCFPGA_IS1_H__
9
10 #include <asm/arch/base_addr_ac5.h>
11
12 /* U-Boot Commands */
13 #define CONFIG_SYS_NO_FLASH
14 #define CONFIG_DOS_PARTITION
15 #define CONFIG_FAT_WRITE
16 #define CONFIG_HW_WATCHDOG
17
18 /* Memory configurations */
19 #define PHYS_SDRAM_1_SIZE               0x10000000
20
21 /* Booting Linux */
22 #define CONFIG_BOOTDELAY        3
23 #define CONFIG_BOOTFILE         "zImage"
24 #define CONFIG_BOOTARGS         "console=ttyS0," __stringify(CONFIG_BAUDRATE)
25 #define CONFIG_LOADADDR         0x01000000
26 #define CONFIG_SYS_LOAD_ADDR    CONFIG_LOADADDR
27 #define CONFIG_ENV_IS_IN_SPI_FLASH
28
29 /* Ethernet on SoC (EMAC) */
30 #if defined(CONFIG_CMD_NET)
31 #define CONFIG_ARP_TIMEOUT              500UL
32
33 /* PHY */
34 #define CONFIG_PHY_MICREL
35 #define CONFIG_PHY_MICREL_KSZ9021
36 #endif
37
38 /* The rest of the configuration is shared */
39 #include <configs/socfpga_common.h>
40
41 /*
42  * Bootcounter
43  */
44 #define CONFIG_BOOTCOUNT_LIMIT
45 /* last 2 lwords in OCRAM */
46 #define CONFIG_SYS_BOOTCOUNT_ADDR       0xfffffff8
47 #define CONFIG_SYS_BOOTCOUNT_BE
48
49 #endif  /* __CONFIG_SOCFPGA_IS1_H__ */