2019-01-21 08:18:23 +00:00
|
|
|
/*
|
|
|
|
* Internal Definitions
|
|
|
|
*/
|
2020-05-10 17:40:09 +00:00
|
|
|
#include <linux/stringify.h>
|
2019-01-21 08:18:23 +00:00
|
|
|
#define BOOTFLASH_START 0xF0000000
|
|
|
|
|
|
|
|
/*
|
|
|
|
* DDR Setup
|
|
|
|
*/
|
2022-11-16 18:10:37 +00:00
|
|
|
#define CFG_SYS_SDRAM_BASE 0x00000000 /* DDR is system memory */
|
2019-01-21 08:18:23 +00:00
|
|
|
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \
|
2019-01-21 08:18:23 +00:00
|
|
|
DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
|
|
|
|
|
|
|
|
#define CFG_83XX_DDR_USES_CS0
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Manually set up DDR parameters
|
|
|
|
*/
|
2022-11-16 18:10:37 +00:00
|
|
|
#define CFG_SYS_SDRAM_SIZE 0x80000000 /* 2048 MiB */
|
2019-01-21 08:18:23 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The reserved memory
|
|
|
|
*/
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_FLASH_BASE 0xF0000000
|
2019-01-21 08:18:23 +00:00
|
|
|
|
|
|
|
/* Reserve 768 kB for Mon */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Initial RAM Base Address Setup
|
|
|
|
*/
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_INIT_RAM_ADDR 0xE6000000 /* Initial RAM address */
|
|
|
|
#define CFG_SYS_INIT_RAM_SIZE 0x1000 /* End of used area in RAM */
|
2019-01-21 08:18:23 +00:00
|
|
|
/*
|
|
|
|
* Init Local Bus Memory Controller:
|
|
|
|
*
|
|
|
|
* Bank Bus Machine PortSz Size Device
|
|
|
|
* ---- --- ------- ------ ----- ------
|
|
|
|
* 0 Local GPCM 16 bit 256MB FLASH
|
|
|
|
* 1 Local GPCM 8 bit 128MB GPIO/PIGGY
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* FLASH on the Local Bus
|
|
|
|
*/
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_FLASH_SIZE 256 /* max FLASH size is 256M */
|
2019-01-21 08:18:23 +00:00
|
|
|
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_FLASH_BANKS_LIST { CFG_SYS_FLASH_BASE }
|
2019-01-21 08:18:23 +00:00
|
|
|
|
|
|
|
#if defined(CONFIG_CMD_NAND)
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_NAND_BASE CFG_SYS_KMBEC_FPGA_BASE
|
2019-01-21 08:18:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* For booting Linux, the board info and command line data
|
|
|
|
* have to be in the first 8 MB of memory, since this is
|
|
|
|
* the maximum mapped by the Linux kernel during initialization.
|
|
|
|
*/
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_BOOTMAPSZ (8 << 20)
|
2019-01-21 08:18:23 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* QE UEC ethernet configuration
|
|
|
|
*/
|
|
|
|
#define CONFIG_UEC_ETH
|