From 7b48a9f3286b8f174acf8821fec48fd2e4771514 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Thu, 6 Feb 2020 15:34:16 +0100 Subject: [PATCH] feat(stm32mp1): stm32mp_is_single_core() for STM32MP13 STM32MP13 is a single Cortex-A7 CPU, always return true in stm32mp_is_single_core() function. Change-Id: Icf36eaa887bdf314137eda07c5751cea8c950143 Signed-off-by: Yann Gautier --- plat/st/stm32mp1/stm32mp1_private.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plat/st/stm32mp1/stm32mp1_private.c b/plat/st/stm32mp1/stm32mp1_private.c index 8c27af2ca..6e729b551 100644 --- a/plat/st/stm32mp1/stm32mp1_private.c +++ b/plat/st/stm32mp1/stm32mp1_private.c @@ -444,6 +444,10 @@ void stm32mp_print_boardinfo(void) /* Return true when SoC provides a single Cortex-A7 core, and false otherwise */ bool stm32mp_is_single_core(void) { +#if STM32MP13 + return true; +#endif +#if STM32MP15 bool single_core = false; switch (get_part_number()) { @@ -458,6 +462,7 @@ bool stm32mp_is_single_core(void) } return single_core; +#endif } /* Return true when device is in closed state */