[U-Boot] [PATCH 05/15] ARM: PSCI: Add fallback value for CONFIG_ARMV7_PSCI_NR_CPUS
Chen-Yu Tsai
wens at csie.org
Sun Jun 19 06:38:35 CEST 2016
The original PSCI implementation assumed CONFIG_ARMV7_PSCI_NR_CPUS=4.
Add this as a fallback value in case platforms have not defined it.
Signed-off-by: Chen-Yu Tsai <wens at csie.org>
---
arch/arm/include/asm/config.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/include/asm/config.h b/arch/arm/include/asm/config.h
index 435fc4521c2e..f70302dfc4f1 100644
--- a/arch/arm/include/asm/config.h
+++ b/arch/arm/include/asm/config.h
@@ -23,4 +23,9 @@
#include <asm/arch/config.h>
#endif
+/* Original code assumed 4 CPUs */
+#ifndef CONFIG_ARMV7_PSCI_NR_CPUS
+#define CONFIG_ARMV7_PSCI_NR_CPUS 4
+#endif
+
#endif
--
2.8.1
More information about the U-Boot
mailing list