blob: 79fa5bb53faec013a5146271c22c87c3d8adbf0a [file] [log] [blame]
Michal Simekf22651c2012-09-28 09:56:37 +00001/*
2 * (C) Copyright 2012 Michal Simek <monstr@monstr.eu>
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Michal Simekf22651c2012-09-28 09:56:37 +00005 */
6
7#ifndef __CONFIG_ZYNQ_H
8#define __CONFIG_ZYNQ_H
9
10#define CONFIG_ARMV7 /* This is an ARM V7 CPU core */
11#define CONFIG_ZYNQ
12
13/* CPU clock */
14#define CONFIG_CPU_FREQ_HZ 800000000
15#define CONFIG_SYS_HZ 1000
16
17/* Ram */
18#define CONFIG_NR_DRAM_BANKS 1
19#define CONFIG_SYS_TEXT_BASE 0
20#define CONFIG_SYS_SDRAM_BASE 0
21#define CONFIG_SYS_SDRAM_SIZE 0x40000000
22#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
23#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000)
24
25/* The following table includes the supported baudrates */
26#define CONFIG_SYS_BAUDRATE_TABLE \
27 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
28
29#define CONFIG_BAUDRATE 115200
30
31/* XPSS Serial driver */
Michal Simekf22651c2012-09-28 09:56:37 +000032#define CONFIG_ZYNQ_SERIAL
33#define CONFIG_ZYNQ_SERIAL_BASEADDR0 0xE0001000
34#define CONFIG_ZYNQ_SERIAL_BAUDRATE0 CONFIG_BAUDRATE
35#define CONFIG_ZYNQ_SERIAL_CLOCK0 50000000
36
Michal Simekf22651c2012-09-28 09:56:37 +000037/* Ethernet driver */
38#define CONFIG_NET_MULTI
39#define CONFIG_ZYNQ_GEM
Michal Simek71936532013-04-12 16:33:08 +020040#define CONFIG_ZYNQ_GEM0
David Andrey117cd4c2013-04-04 19:13:07 +020041#define CONFIG_ZYNQ_GEM_PHY_ADDR0 7
Michal Simekf22651c2012-09-28 09:56:37 +000042
Michal Simek293eb332013-04-22 14:56:49 +020043#define CONFIG_ZYNQ_SDHCI
44#define CONFIG_ZYNQ_SDHCI0
45
46/* MMC */
47#if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1)
48# define CONFIG_MMC
49# define CONFIG_GENERIC_MMC
50# define CONFIG_SDHCI
51# define CONFIG_ZYNQ_SDHCI
52# define CONFIG_CMD_MMC
53# define CONFIG_CMD_FAT
54# define CONFIG_SUPPORT_VFAT
55# define CONFIG_CMD_EXT2
56# define CONFIG_DOS_PARTITION
57#endif
58
Michal Simek8934f782013-04-22 15:21:33 +020059#define CONFIG_ZYNQ_I2C0
60
61/* I2C */
62#if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1)
63# define CONFIG_CMD_I2C
64# define CONFIG_ZYNQ_I2C
65# define CONFIG_HARD_I2C
66# define CONFIG_SYS_I2C_SPEED 100000
67# define CONFIG_SYS_I2C_SLAVE 1
68#endif
69
Michal Simek7dca54f2013-02-04 15:23:17 +010070#if defined(CONFIG_ZYNQ_DCC)
71# define CONFIG_ARM_DCC
72# define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */
73#endif
74
Michal Simekd5dae852013-04-22 15:43:02 +020075/* Enable the PL to be downloaded */
76#define CONFIG_FPGA
77#define CONFIG_FPGA_XILINX
78#define CONFIG_FPGA_ZYNQPL
79#define CONFIG_CMD_FPGA
80
Michal Simekf22651c2012-09-28 09:56:37 +000081#define CONFIG_BOOTP_SERVERIP
82#define CONFIG_BOOTP_BOOTPATH
83#define CONFIG_BOOTP_GATEWAY
84#define CONFIG_BOOTP_HOSTNAME
85#define CONFIG_BOOTP_MAY_FAIL
86
87/* MII and Phylib */
88#define CONFIG_MII
89#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
90#define CONFIG_PHYLIB
91#define CONFIG_PHY_MARVELL
92
93/* Environment */
94#define CONFIG_ENV_IS_NOWHERE
95#define CONFIG_ENV_SIZE 0x10000
96
97#define CONFIG_SYS_NO_FLASH
98
99#define CONFIG_SYS_MALLOC_LEN 0x400000
100#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE
101#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_MALLOC_LEN
102#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \
103 CONFIG_SYS_INIT_RAM_SIZE - \
104 GENERATED_GBL_DATA_SIZE)
105
106#define CONFIG_SYS_PROMPT "U-Boot> "
107#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
108#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
109 sizeof(CONFIG_SYS_PROMPT) + 16)
110
111#define CONFIG_SYS_LOAD_ADDR 0
112#define CONFIG_SYS_MAXARGS 15 /* max number of command args */
113#define CONFIG_SYS_LONGHELP
114#define CONFIG_AUTO_COMPLETE
115#define CONFIG_CMDLINE_EDITING
116
117#define CONFIG_SYS_HUSH_PARSER
118#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
119
120/* OF */
121#define CONFIG_FIT
122#define CONFIG_OF_LIBFDT
123
124/* Commands */
125#include <config_cmd_default.h>
126
127#define CONFIG_CMD_PING
128#define CONFIG_CMD_DHCP
129#define CONFIG_CMD_MII
130
131#endif /* __CONFIG_ZYNQ_H */