1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright (C) 2016, Imagination Technologies Ltd. 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * SPDX-License-Identifier: GPL-2.0+ 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * Imagination Technologies Ltd. MIPSfpga 9*4882a593Smuzhiyun */ 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #ifndef __XILFPGA_CONFIG_H 12*4882a593Smuzhiyun #define __XILFPGA_CONFIG_H 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun /* BootROM + MIG is pretty smart. DDR and Cache initialized */ 15*4882a593Smuzhiyun #define CONFIG_SKIP_LOWLEVEL_INIT 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun /*-------------------------------------------- 18*4882a593Smuzhiyun * CPU configuration 19*4882a593Smuzhiyun */ 20*4882a593Smuzhiyun /* CPU Timer rate */ 21*4882a593Smuzhiyun #define CONFIG_SYS_MIPS_TIMER_FREQ 50000000 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun /* Cache Configuration */ 24*4882a593Smuzhiyun #define CONFIG_SYS_MIPS_CACHE_MODE CONF_CM_CACHABLE_NONCOHERENT 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun /*---------------------------------------------------------------------- 27*4882a593Smuzhiyun * Memory Layout 28*4882a593Smuzhiyun */ 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun /* SDRAM Configuration (for final code, data, stack, heap) */ 31*4882a593Smuzhiyun #define CONFIG_SYS_SDRAM_BASE 0x80000000 32*4882a593Smuzhiyun #define CONFIG_SYS_SDRAM_SIZE 0x08000000 /* 128 Mbytes */ 33*4882a593Smuzhiyun #define CONFIG_SYS_INIT_SP_ADDR \ 34*4882a593Smuzhiyun (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - 0x1000) 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun #define CONFIG_SYS_MALLOC_LEN (256 << 10) 37*4882a593Smuzhiyun #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE 38*4882a593Smuzhiyun #define CONFIG_SYS_LOAD_ADDR 0x80500000 /* default load address */ 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun /*---------------------------------------------------------------------- 41*4882a593Smuzhiyun * Commands 42*4882a593Smuzhiyun */ 43*4882a593Smuzhiyun #define CONFIG_SYS_LONGHELP /* undef to save memory */ 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun /*------------------------------------------------------------ 46*4882a593Smuzhiyun * Console Configuration 47*4882a593Smuzhiyun */ 48*4882a593Smuzhiyun #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun /* ------------------------------------------------- 51*4882a593Smuzhiyun * Environment 52*4882a593Smuzhiyun */ 53*4882a593Smuzhiyun #define CONFIG_ENV_SIZE 0x4000 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun /* --------------------------------------------------------------------- 56*4882a593Smuzhiyun * Board boot configuration 57*4882a593Smuzhiyun */ 58*4882a593Smuzhiyun #define CONFIG_TIMESTAMP /* Print image info with timestamp */ 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun #endif /* __XILFPGA_CONFIG_H */ 61