blob: 68403aa744c3417aa9f9d2ad36642bc0531401bc [file] [log] [blame]
Pavel Machek35546f62016-06-07 12:37:23 +02001/*
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
Pavel Machek35546f62016-06-07 12:37:23 +020012#define CONFIG_HW_WATCHDOG
13
14/* Memory configurations */
15#define PHYS_SDRAM_1_SIZE 0x10000000
16
17/* Booting Linux */
Pavel Machek35546f62016-06-07 12:37:23 +020018#define CONFIG_BOOTFILE "zImage"
19#define CONFIG_BOOTARGS "console=ttyS0," __stringify(CONFIG_BAUDRATE)
20#define CONFIG_LOADADDR 0x01000000
21#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
22#define CONFIG_ENV_IS_IN_SPI_FLASH
23
24/* Ethernet on SoC (EMAC) */
25#if defined(CONFIG_CMD_NET)
26#define CONFIG_ARP_TIMEOUT 500UL
27
28/* PHY */
29#define CONFIG_PHY_MICREL
30#define CONFIG_PHY_MICREL_KSZ9021
31#endif
32
33/* The rest of the configuration is shared */
34#include <configs/socfpga_common.h>
35
36/*
37 * Bootcounter
38 */
39#define CONFIG_BOOTCOUNT_LIMIT
40/* last 2 lwords in OCRAM */
41#define CONFIG_SYS_BOOTCOUNT_ADDR 0xfffffff8
42#define CONFIG_SYS_BOOTCOUNT_BE
43
44#endif /* __CONFIG_SOCFPGA_IS1_H__ */