2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2014-04-11 15:09:45 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2011-2014 Freescale Semiconductor, Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Corenet DS style board configuration file
|
|
|
|
*/
|
|
|
|
#ifndef __QEMU_PPCE500_H
|
|
|
|
#define __QEMU_PPCE500_H
|
|
|
|
|
|
|
|
/* Needed to fill the ccsrbar pointer */
|
|
|
|
|
|
|
|
/* Virtual address to CCSRBAR */
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_CCSRBAR 0xe0000000
|
2014-04-11 15:09:45 +00:00
|
|
|
/* Physical address should be a function call */
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern unsigned long long get_phys_ccsrbar_addr_early(void);
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_CCSRBAR_PHYS_HIGH (get_phys_ccsrbar_addr_early() >> 32)
|
|
|
|
#define CFG_SYS_CCSRBAR_PHYS_LOW get_phys_ccsrbar_addr_early()
|
2015-03-07 01:10:09 +00:00
|
|
|
#else
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_CCSRBAR_PHYS_HIGH 0x0
|
|
|
|
#define CFG_SYS_CCSRBAR_PHYS_LOW CFG_SYS_CCSRBAR
|
2014-04-11 15:09:45 +00:00
|
|
|
#endif
|
2015-03-07 01:10:09 +00:00
|
|
|
|
2014-04-11 15:09:45 +00:00
|
|
|
/* Virtual address to a temporary map if we need it (max 128MB) */
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_TMPVIRT 0xe8000000
|
2014-04-11 15:09:45 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* DDR Setup
|
|
|
|
*/
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_DDR_SDRAM_BASE 0x00000000
|
|
|
|
#define CFG_SYS_SDRAM_BASE CFG_SYS_DDR_SDRAM_BASE
|
2014-04-11 15:09:45 +00:00
|
|
|
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_INIT_RAM_ADDR 0x00100000
|
|
|
|
#define CFG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0x0
|
|
|
|
#define CFG_SYS_INIT_RAM_ADDR_PHYS_LOW 0x00100000
|
2014-04-11 15:09:45 +00:00
|
|
|
/* The assembler doesn't like typecast */
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_INIT_RAM_ADDR_PHYS \
|
|
|
|
((CFG_SYS_INIT_RAM_ADDR_PHYS_HIGH * 1ull << 32) | \
|
|
|
|
CFG_SYS_INIT_RAM_ADDR_PHYS_LOW)
|
|
|
|
#define CFG_SYS_INIT_RAM_SIZE 0x00004000
|
2014-04-11 15:09:45 +00:00
|
|
|
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_INIT_SP_OFFSET (CFG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
|
2014-04-11 15:09:45 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Miscellaneous configurable options
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* For booting Linux, the board info and command line data
|
|
|
|
* have to be in the first 64 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 (64 << 20) /* Initial map for Linux*/
|
2014-04-11 15:09:45 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Environment Configuration
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endif /* __QEMU_PPCE500_H */
|