1*ec48b6c9SMichal Simek /* SPDX-License-Identifier: GPL-2.0+ */ 2*ec48b6c9SMichal Simek /* 3*ec48b6c9SMichal Simek * Configuration for Xilinx Versal 4*ec48b6c9SMichal Simek * (C) Copyright 2016 - 2018 Xilinx, Inc. 5*ec48b6c9SMichal Simek * Michal Simek <michal.simek@xilinx.com> 6*ec48b6c9SMichal Simek * 7*ec48b6c9SMichal Simek * Based on Configuration for Xilinx ZynqMP 8*ec48b6c9SMichal Simek */ 9*ec48b6c9SMichal Simek 10*ec48b6c9SMichal Simek #ifndef __XILINX_VERSAL_H 11*ec48b6c9SMichal Simek #define __XILINX_VERSAL_H 12*ec48b6c9SMichal Simek 13*ec48b6c9SMichal Simek #define CONFIG_REMAKE_ELF 14*ec48b6c9SMichal Simek 15*ec48b6c9SMichal Simek /* #define CONFIG_ARMV8_SWITCH_TO_EL1 */ 16*ec48b6c9SMichal Simek 17*ec48b6c9SMichal Simek /* Generic Interrupt Controller Definitions */ 18*ec48b6c9SMichal Simek #define GICD_BASE 0xF9000000 19*ec48b6c9SMichal Simek #define GICR_BASE 0xF9080000 20*ec48b6c9SMichal Simek 21*ec48b6c9SMichal Simek #define CONFIG_SYS_MEMTEST_SCRATCH 0xfffc0000 22*ec48b6c9SMichal Simek 23*ec48b6c9SMichal Simek #define CONFIG_SYS_MEMTEST_START 0 24*ec48b6c9SMichal Simek #define CONFIG_SYS_MEMTEST_END 1000 25*ec48b6c9SMichal Simek 26*ec48b6c9SMichal Simek #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE 27*ec48b6c9SMichal Simek 28*ec48b6c9SMichal Simek /* Generic Timer Definitions - setup in EL3. Setup by ATF for other cases */ 29*ec48b6c9SMichal Simek #if CONFIG_COUNTER_FREQUENCY 30*ec48b6c9SMichal Simek # define COUNTER_FREQUENCY CONFIG_COUNTER_FREQUENCY 31*ec48b6c9SMichal Simek #endif 32*ec48b6c9SMichal Simek 33*ec48b6c9SMichal Simek /* Serial setup */ 34*ec48b6c9SMichal Simek #define CONFIG_ARM_DCC 35*ec48b6c9SMichal Simek #define CONFIG_CPU_ARMV8 36*ec48b6c9SMichal Simek 37*ec48b6c9SMichal Simek #define CONFIG_SYS_BAUDRATE_TABLE \ 38*ec48b6c9SMichal Simek { 4800, 9600, 19200, 38400, 57600, 115200 } 39*ec48b6c9SMichal Simek 40*ec48b6c9SMichal Simek /* BOOTP options */ 41*ec48b6c9SMichal Simek #define CONFIG_BOOTP_BOOTFILESIZE 42*ec48b6c9SMichal Simek #define CONFIG_BOOTP_MAY_FAIL 43*ec48b6c9SMichal Simek 44*ec48b6c9SMichal Simek #define CONFIG_IP_DEFRAG 45*ec48b6c9SMichal Simek #define CONFIG_TFTP_BLOCKSIZE 4096 46*ec48b6c9SMichal Simek 47*ec48b6c9SMichal Simek /* Miscellaneous configurable options */ 48*ec48b6c9SMichal Simek #define CONFIG_SYS_LOAD_ADDR 0x8000000 49*ec48b6c9SMichal Simek 50*ec48b6c9SMichal Simek /* Monitor Command Prompt */ 51*ec48b6c9SMichal Simek /* Console I/O Buffer Size */ 52*ec48b6c9SMichal Simek #define CONFIG_SYS_CBSIZE 2048 53*ec48b6c9SMichal Simek #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ 54*ec48b6c9SMichal Simek sizeof(CONFIG_SYS_PROMPT) + 16) 55*ec48b6c9SMichal Simek #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 56*ec48b6c9SMichal Simek #define CONFIG_SYS_MAXARGS 64 57*ec48b6c9SMichal Simek 58*ec48b6c9SMichal Simek /* Ethernet driver */ 59*ec48b6c9SMichal Simek #if defined(CONFIG_ZYNQ_GEM) 60*ec48b6c9SMichal Simek # define CONFIG_NET_MULTI 61*ec48b6c9SMichal Simek # define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 62*ec48b6c9SMichal Simek # define PHY_ANEG_TIMEOUT 20000 63*ec48b6c9SMichal Simek #endif 64*ec48b6c9SMichal Simek 65*ec48b6c9SMichal Simek #define CONFIG_SYS_BOOTM_LEN (60 * 1024 * 1024) 66*ec48b6c9SMichal Simek 67*ec48b6c9SMichal Simek #define CONFIG_CLOCKS 68*ec48b6c9SMichal Simek 69*ec48b6c9SMichal Simek #define ENV_MEM_LAYOUT_SETTINGS \ 70*ec48b6c9SMichal Simek "fdt_high=10000000\0" \ 71*ec48b6c9SMichal Simek "initrd_high=10000000\0" \ 72*ec48b6c9SMichal Simek "fdt_addr_r=0x40000000\0" \ 73*ec48b6c9SMichal Simek "pxefile_addr_r=0x10000000\0" \ 74*ec48b6c9SMichal Simek "kernel_addr_r=0x18000000\0" \ 75*ec48b6c9SMichal Simek "scriptaddr=0x02000000\0" \ 76*ec48b6c9SMichal Simek "ramdisk_addr_r=0x02100000\0" 77*ec48b6c9SMichal Simek 78*ec48b6c9SMichal Simek #define BOOT_TARGET_DEVICES(func) \ 79*ec48b6c9SMichal Simek func(PXE, pxe, na) \ 80*ec48b6c9SMichal Simek func(DHCP, dhcp, na) 81*ec48b6c9SMichal Simek 82*ec48b6c9SMichal Simek #include <config_distro_bootcmd.h> 83*ec48b6c9SMichal Simek 84*ec48b6c9SMichal Simek /* Initial environment variables */ 85*ec48b6c9SMichal Simek #ifndef CONFIG_EXTRA_ENV_SETTINGS 86*ec48b6c9SMichal Simek #define CONFIG_EXTRA_ENV_SETTINGS \ 87*ec48b6c9SMichal Simek ENV_MEM_LAYOUT_SETTINGS \ 88*ec48b6c9SMichal Simek BOOTENV 89*ec48b6c9SMichal Simek #endif 90*ec48b6c9SMichal Simek 91*ec48b6c9SMichal Simek #endif /* __XILINX_VERSAL_H */ 92