Tegra194: move cluster and CPU counter to header file.
MISRA rules request that the cluster and CPU counter be unsigned values and have a suffix 'U'. If the define located in the makefile, this cannot be done. This patch moves the PLATFORM_CLUSTER_COUNT and PLATFORM_MAX_CPUS_PER_CLUSTER macros to tegra_def.h as a result. Change-Id: I9ef0beb29485729de204b4ffbb5241b039690e5a Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
This commit is contained in:
parent
7644e2aa6e
commit
9aaa8882eb
|
@ -47,7 +47,7 @@
|
||||||
#define PLATFORM_CORE_COUNT (PLATFORM_CLUSTER_COUNT * \
|
#define PLATFORM_CORE_COUNT (PLATFORM_CLUSTER_COUNT * \
|
||||||
PLATFORM_MAX_CPUS_PER_CLUSTER)
|
PLATFORM_MAX_CPUS_PER_CLUSTER)
|
||||||
#define PLAT_NUM_PWR_DOMAINS (PLATFORM_CORE_COUNT + \
|
#define PLAT_NUM_PWR_DOMAINS (PLATFORM_CORE_COUNT + \
|
||||||
PLATFORM_CLUSTER_COUNT + 1)
|
PLATFORM_CLUSTER_COUNT + U(1))
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Platform console related constants
|
* Platform console related constants
|
||||||
|
|
|
@ -9,6 +9,12 @@
|
||||||
|
|
||||||
#include <lib/utils_def.h>
|
#include <lib/utils_def.h>
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
* Chip specific cluster and cpu numbers
|
||||||
|
******************************************************************************/
|
||||||
|
#define PLATFORM_CLUSTER_COUNT U(4)
|
||||||
|
#define PLATFORM_MAX_CPUS_PER_CLUSTER U(2)
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Chip specific page table and MMU setup constants
|
* Chip specific page table and MMU setup constants
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
|
@ -24,12 +24,6 @@ COLD_BOOT_SINGLE_CPU := 1
|
||||||
TZDRAM_BASE := 0x40000000
|
TZDRAM_BASE := 0x40000000
|
||||||
$(eval $(call add_define,TZDRAM_BASE))
|
$(eval $(call add_define,TZDRAM_BASE))
|
||||||
|
|
||||||
PLATFORM_CLUSTER_COUNT := 4
|
|
||||||
$(eval $(call add_define,PLATFORM_CLUSTER_COUNT))
|
|
||||||
|
|
||||||
PLATFORM_MAX_CPUS_PER_CLUSTER := 2
|
|
||||||
$(eval $(call add_define,PLATFORM_MAX_CPUS_PER_CLUSTER))
|
|
||||||
|
|
||||||
MAX_XLAT_TABLES := 25
|
MAX_XLAT_TABLES := 25
|
||||||
$(eval $(call add_define,MAX_XLAT_TABLES))
|
$(eval $(call add_define,MAX_XLAT_TABLES))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue