mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-24 11:59:46 +09:00
arm: ls102xa: Define default values for some CCSR macros
This patch is to define default values for some CCSR macros to make header files cleaner. Signed-off-by: Alison Wang <alison.wang@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
7b3bd9a798
commit
60d517369c
@ -37,6 +37,43 @@
|
|||||||
|
|
||||||
#define DCFG_DCSR_PORCR1 0
|
#define DCFG_DCSR_PORCR1 0
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define default values for some CCSR macros to make header files cleaner
|
||||||
|
*
|
||||||
|
* To completely disable CCSR relocation in a board header file, define
|
||||||
|
* CONFIG_SYS_CCSR_DO_NOT_RELOCATE. This will force CONFIG_SYS_CCSRBAR_PHYS
|
||||||
|
* to a value that is the same as CONFIG_SYS_CCSRBAR.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_SYS_CCSRBAR_PHYS
|
||||||
|
#error "Do not define CONFIG_SYS_CCSRBAR_PHYS directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_SYS_CCSR_DO_NOT_RELOCATE
|
||||||
|
#undef CONFIG_SYS_CCSRBAR_PHYS_HIGH
|
||||||
|
#undef CONFIG_SYS_CCSRBAR_PHYS_LOW
|
||||||
|
#define CONFIG_SYS_CCSRBAR_PHYS_HIGH 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_SYS_CCSRBAR
|
||||||
|
#define CONFIG_SYS_CCSRBAR CONFIG_SYS_IMMR
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_SYS_CCSRBAR_PHYS_HIGH
|
||||||
|
#ifdef CONFIG_PHYS_64BIT
|
||||||
|
#define CONFIG_SYS_CCSRBAR_PHYS_HIGH 0xf
|
||||||
|
#else
|
||||||
|
#define CONFIG_SYS_CCSRBAR_PHYS_HIGH 0
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_SYS_CCSRBAR_PHYS_LOW
|
||||||
|
#define CONFIG_SYS_CCSRBAR_PHYS_LOW CONFIG_SYS_IMMR
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define CONFIG_SYS_CCSRBAR_PHYS ((CONFIG_SYS_CCSRBAR_PHYS_HIGH * 1ull) << 32 | \
|
||||||
|
CONFIG_SYS_CCSRBAR_PHYS_LOW)
|
||||||
|
|
||||||
struct sys_info {
|
struct sys_info {
|
||||||
unsigned long freq_processor[CONFIG_MAX_CPUS];
|
unsigned long freq_processor[CONFIG_MAX_CPUS];
|
||||||
unsigned long freq_systembus;
|
unsigned long freq_systembus;
|
||||||
|
Loading…
Reference in New Issue
Block a user