summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2017-05-12 18:32:49 +0800
committerAnson Huang <Anson.Huang@nxp.com>2017-07-12 23:28:44 +0800
commitc5c85e87950303188abc3ce8cfc0d64ee09d124f (patch)
tree48738695393097191329122c16caf3c42e0bf990
parentde3efc86fcbcdf90e44a3f389db23d24fda8adda (diff)
Add support for A72 CPU0 as primary cpu
Need to add support for booting up A72 cluster only, so on need to check the cluster ID for primary CPU, that means if CPU ID is 0, then it can be as primary CPU. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
-rw-r--r--plat/freescale/common/imx8_helpers.S2
-rw-r--r--plat/freescale/imx8qm/include/platform_def.h5
2 files changed, 1 insertions, 6 deletions
diff --git a/plat/freescale/common/imx8_helpers.S b/plat/freescale/common/imx8_helpers.S
index 091d60a5..f2da325d 100644
--- a/plat/freescale/common/imx8_helpers.S
+++ b/plat/freescale/common/imx8_helpers.S
@@ -74,7 +74,7 @@
*/
func plat_is_my_cpu_primary
mrs x0, mpidr_el1
- and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
+ and x0, x0, #(MPIDR_CPU_MASK)
cmp x0, #PLAT_PRIMARY_CPU
cset x0, eq
ret
diff --git a/plat/freescale/imx8qm/include/platform_def.h b/plat/freescale/imx8qm/include/platform_def.h
index 76aa228a..5579ee06 100644
--- a/plat/freescale/imx8qm/include/platform_def.h
+++ b/plat/freescale/imx8qm/include/platform_def.h
@@ -35,12 +35,7 @@
#define PLATFORM_STACK_SIZE 0X400
#define CACHE_WRITEBACK_GRANULE 64
-/*#define CA72_ONLY*/
-#ifdef CA72_ONLY
-#define PLAT_PRIMARY_CPU 0x100
-#else
#define PLAT_PRIMARY_CPU 0x0
-#endif
#define PLATFORM_MAX_CPU_PER_CLUSTER 4
#define PLATFORM_CLUSTER_COUNT 2
#define PLATFORM_CLUSTER0_CORE_COUNT 4