Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2012 Michal Simek <monstr@monstr.eu> |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 5 | */ |
| 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 |
Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 15 | |
| 16 | /* Ram */ |
| 17 | #define CONFIG_NR_DRAM_BANKS 1 |
| 18 | #define CONFIG_SYS_TEXT_BASE 0 |
| 19 | #define CONFIG_SYS_SDRAM_BASE 0 |
| 20 | #define CONFIG_SYS_SDRAM_SIZE 0x40000000 |
| 21 | #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE |
| 22 | #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000) |
| 23 | |
| 24 | /* The following table includes the supported baudrates */ |
| 25 | #define CONFIG_SYS_BAUDRATE_TABLE \ |
| 26 | {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400} |
| 27 | |
| 28 | #define CONFIG_BAUDRATE 115200 |
| 29 | |
| 30 | /* XPSS Serial driver */ |
Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 31 | #define CONFIG_ZYNQ_SERIAL |
| 32 | #define CONFIG_ZYNQ_SERIAL_BASEADDR0 0xE0001000 |
| 33 | #define CONFIG_ZYNQ_SERIAL_BAUDRATE0 CONFIG_BAUDRATE |
| 34 | #define CONFIG_ZYNQ_SERIAL_CLOCK0 50000000 |
| 35 | |
Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 36 | /* Ethernet driver */ |
| 37 | #define CONFIG_NET_MULTI |
| 38 | #define CONFIG_ZYNQ_GEM |
Michal Simek | 242192b | 2013-04-12 16:33:08 +0200 | [diff] [blame] | 39 | #define CONFIG_ZYNQ_GEM0 |
David Andrey | 1b0dd5e | 2013-04-04 19:13:07 +0200 | [diff] [blame] | 40 | #define CONFIG_ZYNQ_GEM_PHY_ADDR0 7 |
Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 41 | |
Michal Simek | 0dd222b | 2013-04-22 14:56:49 +0200 | [diff] [blame] | 42 | #define CONFIG_ZYNQ_SDHCI |
| 43 | #define CONFIG_ZYNQ_SDHCI0 |
| 44 | |
| 45 | /* MMC */ |
| 46 | #if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1) |
| 47 | # define CONFIG_MMC |
| 48 | # define CONFIG_GENERIC_MMC |
| 49 | # define CONFIG_SDHCI |
| 50 | # define CONFIG_ZYNQ_SDHCI |
| 51 | # define CONFIG_CMD_MMC |
| 52 | # define CONFIG_CMD_FAT |
| 53 | # define CONFIG_SUPPORT_VFAT |
| 54 | # define CONFIG_CMD_EXT2 |
| 55 | # define CONFIG_DOS_PARTITION |
| 56 | #endif |
| 57 | |
Michal Simek | beedbcf | 2013-04-22 15:21:33 +0200 | [diff] [blame] | 58 | #define CONFIG_ZYNQ_I2C0 |
| 59 | |
| 60 | /* I2C */ |
| 61 | #if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1) |
| 62 | # define CONFIG_CMD_I2C |
Heiko Schocher | 465819a | 2013-11-08 07:30:53 +0100 | [diff] [blame] | 63 | # define CONFIG_SYS_I2C |
| 64 | # define CONFIG_SYS_I2C_ZYNQ |
| 65 | # define CONFIG_SYS_I2C_ZYNQ_SPEED 100000 |
| 66 | # define CONFIG_SYS_I2C_ZYNQ_SLAVE 1 |
Michal Simek | beedbcf | 2013-04-22 15:21:33 +0200 | [diff] [blame] | 67 | #endif |
| 68 | |
Michal Simek | fb9a854 | 2013-02-04 15:23:17 +0100 | [diff] [blame] | 69 | #if defined(CONFIG_ZYNQ_DCC) |
| 70 | # define CONFIG_ARM_DCC |
| 71 | # define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */ |
| 72 | #endif |
| 73 | |
Jagannadha Sutradharudu Teki | 1a59fa2 | 2013-08-07 01:12:06 +0530 | [diff] [blame] | 74 | #define CONFIG_ZYNQ_SPI |
| 75 | |
| 76 | /* SPI */ |
| 77 | #ifdef CONFIG_ZYNQ_SPI |
| 78 | # define CONFIG_SPI_FLASH |
| 79 | # define CONFIG_SPI_FLASH_SST |
| 80 | # define CONFIG_CMD_SF |
| 81 | #endif |
| 82 | |
Michal Simek | 15d654c | 2013-04-22 15:43:02 +0200 | [diff] [blame] | 83 | /* Enable the PL to be downloaded */ |
| 84 | #define CONFIG_FPGA |
| 85 | #define CONFIG_FPGA_XILINX |
| 86 | #define CONFIG_FPGA_ZYNQPL |
| 87 | #define CONFIG_CMD_FPGA |
| 88 | |
Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 89 | #define CONFIG_BOOTP_SERVERIP |
| 90 | #define CONFIG_BOOTP_BOOTPATH |
| 91 | #define CONFIG_BOOTP_GATEWAY |
| 92 | #define CONFIG_BOOTP_HOSTNAME |
| 93 | #define CONFIG_BOOTP_MAY_FAIL |
| 94 | |
| 95 | /* MII and Phylib */ |
| 96 | #define CONFIG_MII |
| 97 | #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN |
| 98 | #define CONFIG_PHYLIB |
| 99 | #define CONFIG_PHY_MARVELL |
| 100 | |
| 101 | /* Environment */ |
| 102 | #define CONFIG_ENV_IS_NOWHERE |
| 103 | #define CONFIG_ENV_SIZE 0x10000 |
| 104 | |
| 105 | #define CONFIG_SYS_NO_FLASH |
| 106 | |
| 107 | #define CONFIG_SYS_MALLOC_LEN 0x400000 |
| 108 | #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE |
| 109 | #define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_MALLOC_LEN |
| 110 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ |
| 111 | CONFIG_SYS_INIT_RAM_SIZE - \ |
| 112 | GENERATED_GBL_DATA_SIZE) |
| 113 | |
| 114 | #define CONFIG_SYS_PROMPT "U-Boot> " |
| 115 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
| 116 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ |
| 117 | sizeof(CONFIG_SYS_PROMPT) + 16) |
| 118 | |
| 119 | #define CONFIG_SYS_LOAD_ADDR 0 |
| 120 | #define CONFIG_SYS_MAXARGS 15 /* max number of command args */ |
| 121 | #define CONFIG_SYS_LONGHELP |
| 122 | #define CONFIG_AUTO_COMPLETE |
| 123 | #define CONFIG_CMDLINE_EDITING |
| 124 | |
| 125 | #define CONFIG_SYS_HUSH_PARSER |
| 126 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " |
| 127 | |
| 128 | /* OF */ |
| 129 | #define CONFIG_FIT |
| 130 | #define CONFIG_OF_LIBFDT |
| 131 | |
| 132 | /* Commands */ |
| 133 | #include <config_cmd_default.h> |
| 134 | |
| 135 | #define CONFIG_CMD_PING |
| 136 | #define CONFIG_CMD_DHCP |
| 137 | #define CONFIG_CMD_MII |
| 138 | |
| 139 | #endif /* __CONFIG_ZYNQ_H */ |