blob: 2ed88a72c4d0c6c9ec5c6cd58af6e285db5b9b24 [file] [log] [blame]
Michal Simekf22651c2012-09-28 09:56:37 +00001/*
2 * (C) Copyright 2012 Michal Simek <monstr@monstr.eu>
3 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23#ifndef __CONFIG_ZYNQ_H
24#define __CONFIG_ZYNQ_H
25
26#define CONFIG_ARMV7 /* This is an ARM V7 CPU core */
27#define CONFIG_ZYNQ
28
29/* CPU clock */
30#define CONFIG_CPU_FREQ_HZ 800000000
31#define CONFIG_SYS_HZ 1000
32
33/* Ram */
34#define CONFIG_NR_DRAM_BANKS 1
35#define CONFIG_SYS_TEXT_BASE 0
36#define CONFIG_SYS_SDRAM_BASE 0
37#define CONFIG_SYS_SDRAM_SIZE 0x40000000
38#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
39#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000)
40
41/* The following table includes the supported baudrates */
42#define CONFIG_SYS_BAUDRATE_TABLE \
43 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
44
45#define CONFIG_BAUDRATE 115200
46
47/* XPSS Serial driver */
Michal Simekf22651c2012-09-28 09:56:37 +000048#define CONFIG_ZYNQ_SERIAL
49#define CONFIG_ZYNQ_SERIAL_BASEADDR0 0xE0001000
50#define CONFIG_ZYNQ_SERIAL_BAUDRATE0 CONFIG_BAUDRATE
51#define CONFIG_ZYNQ_SERIAL_CLOCK0 50000000
52
Michal Simekf22651c2012-09-28 09:56:37 +000053/* Ethernet driver */
54#define CONFIG_NET_MULTI
55#define CONFIG_ZYNQ_GEM
Michal Simek71936532013-04-12 16:33:08 +020056#define CONFIG_ZYNQ_GEM0
David Andrey117cd4c2013-04-04 19:13:07 +020057#define CONFIG_ZYNQ_GEM_PHY_ADDR0 7
Michal Simekf22651c2012-09-28 09:56:37 +000058
Michal Simek293eb332013-04-22 14:56:49 +020059#define CONFIG_ZYNQ_SDHCI
60#define CONFIG_ZYNQ_SDHCI0
61
62/* MMC */
63#if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1)
64# define CONFIG_MMC
65# define CONFIG_GENERIC_MMC
66# define CONFIG_SDHCI
67# define CONFIG_ZYNQ_SDHCI
68# define CONFIG_CMD_MMC
69# define CONFIG_CMD_FAT
70# define CONFIG_SUPPORT_VFAT
71# define CONFIG_CMD_EXT2
72# define CONFIG_DOS_PARTITION
73#endif
74
Michal Simek7dca54f2013-02-04 15:23:17 +010075#if defined(CONFIG_ZYNQ_DCC)
76# define CONFIG_ARM_DCC
77# define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */
78#endif
79
Michal Simekf22651c2012-09-28 09:56:37 +000080#define CONFIG_BOOTP_SERVERIP
81#define CONFIG_BOOTP_BOOTPATH
82#define CONFIG_BOOTP_GATEWAY
83#define CONFIG_BOOTP_HOSTNAME
84#define CONFIG_BOOTP_MAY_FAIL
85
86/* MII and Phylib */
87#define CONFIG_MII
88#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
89#define CONFIG_PHYLIB
90#define CONFIG_PHY_MARVELL
91
92/* Environment */
93#define CONFIG_ENV_IS_NOWHERE
94#define CONFIG_ENV_SIZE 0x10000
95
96#define CONFIG_SYS_NO_FLASH
97
98#define CONFIG_SYS_MALLOC_LEN 0x400000
99#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE
100#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_MALLOC_LEN
101#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \
102 CONFIG_SYS_INIT_RAM_SIZE - \
103 GENERATED_GBL_DATA_SIZE)
104
105#define CONFIG_SYS_PROMPT "U-Boot> "
106#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
107#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
108 sizeof(CONFIG_SYS_PROMPT) + 16)
109
110#define CONFIG_SYS_LOAD_ADDR 0
111#define CONFIG_SYS_MAXARGS 15 /* max number of command args */
112#define CONFIG_SYS_LONGHELP
113#define CONFIG_AUTO_COMPLETE
114#define CONFIG_CMDLINE_EDITING
115
116#define CONFIG_SYS_HUSH_PARSER
117#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
118
119/* OF */
120#define CONFIG_FIT
121#define CONFIG_OF_LIBFDT
122
123/* Commands */
124#include <config_cmd_default.h>
125
126#define CONFIG_CMD_PING
127#define CONFIG_CMD_DHCP
128#define CONFIG_CMD_MII
129
130#endif /* __CONFIG_ZYNQ_H */