From 79a1a84957f65dab7a3d535a7f6df392884e157d Mon Sep 17 00:00:00 2001 From: "Andrew F. Davis" Date: Mon, 25 Jun 2018 12:10:53 -0500 Subject: [PATCH] ti: k3: common: Add root domain node to platform topology Actions may need to be taken by the last core when all clusters have been shutdown. Add a top level root domain node to coordinate this between clusters. Signed-off-by: Andrew F. Davis --- plat/ti/k3/common/k3_topology.c | 1 + plat/ti/k3/include/platform_def.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plat/ti/k3/common/k3_topology.c b/plat/ti/k3/common/k3_topology.c index a77c8f34c..d7ac0a589 100644 --- a/plat/ti/k3/common/k3_topology.c +++ b/plat/ti/k3/common/k3_topology.c @@ -9,6 +9,7 @@ /* The power domain tree descriptor */ static unsigned char power_domain_tree_desc[] = { + PLATFORM_SYSTEM_COUNT, PLATFORM_CLUSTER_COUNT, K3_CLUSTER0_CORE_COUNT, #if K3_CLUSTER1_MSMC_PORT != UNUSED diff --git a/plat/ti/k3/include/platform_def.h b/plat/ti/k3/include/platform_def.h index 8856af2ca..ebc9c4770 100644 --- a/plat/ti/k3/include/platform_def.h +++ b/plat/ti/k3/include/platform_def.h @@ -62,9 +62,10 @@ #define PLATFORM_CLUSTER_OFFSET K3_CLUSTER0_MSMC_PORT -#define PLAT_NUM_PWR_DOMAINS (PLATFORM_CLUSTER_COUNT + \ +#define PLAT_NUM_PWR_DOMAINS (PLATFORM_SYSTEM_COUNT + \ + PLATFORM_CLUSTER_COUNT + \ PLATFORM_CORE_COUNT) -#define PLAT_MAX_PWR_LVL MPIDR_AFFLVL1 +#define PLAT_MAX_PWR_LVL MPIDR_AFFLVL2 /******************************************************************************* * Memory layout constants