2 * Configuration for Xilinx ZynqMP
3 * (C) Copyright 2014 - 2015 Xilinx, Inc.
4 * Michal Simek <michal.simek@xilinx.com>
6 * Based on Configuration for Versatile Express
8 * SPDX-License-Identifier: GPL-2.0+
11 #ifndef __XILINX_ZYNQMP_H
12 #define __XILINX_ZYNQMP_H
14 #define CONFIG_REMAKE_ELF
16 /* #define CONFIG_ARMV8_SWITCH_TO_EL1 */
18 #define CONFIG_SYS_NO_FLASH
20 #define CONFIG_SYS_GENERIC_BOARD
22 /* Generic Interrupt Controller Definitions */
24 #define GICD_BASE 0xF9010000
25 #define GICC_BASE 0xF9020000
27 /* Physical Memory Map */
28 #define CONFIG_NR_DRAM_BANKS 1
29 #define CONFIG_SYS_SDRAM_BASE 0
30 #define CONFIG_SYS_SDRAM_SIZE 0x40000000
32 #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
33 #define CONFIG_SYS_MEMTEST_END CONFIG_SYS_SDRAM_SIZE
35 /* Have release address at the end of 256MB for now */
36 #define CPU_RELEASE_ADDR 0xFFFFFF0
38 /* Cache Definitions */
39 #define CONFIG_SYS_CACHELINE_SIZE 64
41 #define CONFIG_IDENT_STRING " Xilinx ZynqMP"
43 #define CONFIG_SYS_TEXT_BASE 0x8000000
44 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
46 /* Flat Device Tree Definitions */
47 #define CONFIG_OF_LIBFDT
49 /* Generic Timer Definitions - setup in EL3. Setup by ATF for other cases */
50 #define COUNTER_FREQUENCY 4000000
52 /* Size of malloc() pool */
53 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 0x400000)
56 #define CONFIG_ZYNQ_SERIAL_UART0
57 #define CONFIG_ZYNQ_SERIAL
59 #define CONFIG_CONS_INDEX 0
60 #define CONFIG_BAUDRATE 115200
61 #define CONFIG_SYS_BAUDRATE_TABLE \
62 { 4800, 9600, 19200, 38400, 57600, 115200 }
64 /* Command line configuration */
65 #define CONFIG_CMD_ENV
66 #define CONFIG_CMD_EXT2
67 #define CONFIG_CMD_EXT4
68 #define CONFIG_CMD_FAT
69 #define CONFIG_CMD_MEMORY
70 #define CONFIG_DOS_PARTITION
71 #define CONFIG_CMD_ELF
74 #if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1)
76 # define CONFIG_GENERIC_MMC
78 # define CONFIG_ZYNQ_SDHCI
79 # define CONFIG_CMD_MMC
82 #if defined(CONFIG_ZYNQ_SDHCI)
83 # define CONFIG_FAT_WRITE
84 # define CONFIG_CMD_EXT4_WRITE
87 /* Miscellaneous configurable options */
88 #define CONFIG_SYS_LOAD_ADDR 0x8000000
90 /* Initial environment variables */
91 #define CONFIG_EXTRA_ENV_SETTINGS \
92 "kernel_addr=0x80000\0" \
93 "fdt_addr=0x7000000\0" \
94 "fdt_high=0x10000000\0" \
95 "sdboot=mmcinfo && fatload mmc 0:0 $fdt_addr system.dtb && " \
96 "fatload mmc 0:0 $kernel_addr Image && booti $kernel_addr - $fdt_addr\0"
98 #define CONFIG_BOOTARGS "setenv bootargs console=ttyPS0,${baudrate} " \
99 "earlycon=cdns,mmio,0xff000000,${baudrate}n8"
100 #define CONFIG_PREBOOT "run bootargs"
101 #define CONFIG_BOOTCOMMAND "run $modeboot"
102 #define CONFIG_BOOTDELAY 5
104 #define CONFIG_BOARD_LATE_INIT
106 /* Do not preserve environment */
107 #define CONFIG_ENV_IS_NOWHERE 1
108 #define CONFIG_ENV_SIZE 0x1000
110 /* Monitor Command Prompt */
111 /* Console I/O Buffer Size */
112 #define CONFIG_SYS_CBSIZE 2048
113 #define CONFIG_SYS_PROMPT "ZynqMP> "
114 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
115 sizeof(CONFIG_SYS_PROMPT) + 16)
116 #define CONFIG_SYS_HUSH_PARSER
117 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
118 #define CONFIG_SYS_LONGHELP
119 #define CONFIG_CMDLINE_EDITING
120 #define CONFIG_SYS_MAXARGS 64
123 #define CONFIG_FIT_VERBOSE /* enable fit_format_{error,warning}() */
125 #define CONFIG_SYS_BOOTM_LEN (60 * 1024 * 1024)
127 #define CONFIG_CMD_BOOTI
128 #define CONFIG_CMD_UNZIP
130 #define CONFIG_BOARD_EARLY_INIT_R
131 #define CONFIG_CLOCKS
133 #endif /* __XILINX_ZYNQMP_H */