From: Chen-Yu Tsai Date: Sun, 19 Jun 2016 12:38:35 +0800 Subject: [U-Boot] [PATCH 05/15] ARM: PSCI: Add fallback value for CONFIG_ARMV7_PSCI_NR_CPUS In-Reply-To: <1466311125-20995-1-git-send-email-wens@csie.org> References: <1466311125-20995-1-git-send-email-wens@csie.org> Message-ID: <1466311125-20995-6-git-send-email-wens@csie.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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 #endif +/* Original code assumed 4 CPUs */ +#ifndef CONFIG_ARMV7_PSCI_NR_CPUS +#define CONFIG_ARMV7_PSCI_NR_CPUS 4 +#endif + #endif -- 2.8.1