]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ARM: armv7: move ARMV7_PSCI_NR_CPUS to Kconfig
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 30 Aug 2016 07:22:23 +0000 (16:22 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 7 Sep 2016 12:48:54 +0000 (08:48 -0400)
Move this option to Kconfig and set its default value to 4; this
increases the number of supported CPUs for some boards.

It consumes 1KB memory per CPU for PSCI stack, but it should not
be a big deal, given the amount of memory used for the modern OSes.

Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
12 files changed:
arch/arm/cpu/armv7/Kconfig
include/configs/arndale.h
include/configs/bcm_ep_board.h
include/configs/jetson-tk1.h
include/configs/ls1021aqds.h
include/configs/ls1021atwr.h
include/configs/mx7_common.h
include/configs/sun6i.h
include/configs/sun7i.h
include/configs/sun8i.h
include/configs/uniphier.h
include/configs/vexpress_ca15_tc2.h

index 4390f59987d62253ca4e58c2d62864e8e6d2bf17..b9c4f4e79b9b25c9736afab70d265422fce5904c 100644 (file)
@@ -41,6 +41,15 @@ config ARMV7_PSCI
        help
          Say Y here to enable PSCI support.
 
+config ARMV7_PSCI_NR_CPUS
+       int "Maximum supported CPUs for PSCI"
+       depends on ARMV7_NONSEC
+       default 4
+       help
+         The maximum number of CPUs supported in the PSCI firmware.
+         It is no problem to set a larger value than the number of
+         CPUs in the actual hardware implementation.
+
 config ARMV7_LPAE
        bool "Use LPAE page table format" if EXPERT
        depends on CPU_V7
index 18e59fc73a748c1d5ef9249abb73bf83d21d33d8..b08f341227543efd4acb5dca78282fd9c8b1661b 100644 (file)
@@ -45,7 +45,6 @@
 
 #define CONFIG_S5P_PA_SYSRAM   0x02020000
 #define CONFIG_SMP_PEN_ADDR    CONFIG_S5P_PA_SYSRAM
-#define CONFIG_ARMV7_PSCI_NR_CPUS      4
 
 /* The PERIPHBASE in the CBAR register is wrong on the Arndale, so override it */
 #define CONFIG_ARM_GIC_BASE_ADDRESS    0x10480000
index b5e502921783cbfe7779bdf3d44632b97c3f53c2..4b255d8d7788caf75cc50dcd8b61317d7c042055 100644 (file)
@@ -91,6 +91,5 @@
 /* Misc utility code */
 #define CONFIG_BOUNCE_BUFFER
 #define CONFIG_CRC32_VERIFY
-#define CONFIG_ARMV7_PSCI_NR_CPUS      4
 
 #endif /* __BCM_EP_BOARD_H */
index 1eba74a5368c6547c75829fa34c7fa54b5b03b50..7c597904e65667deca6aec72b535e597add649b8 100644 (file)
@@ -60,7 +60,6 @@
 #include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
-#define CONFIG_ARMV7_PSCI_NR_CPUS              4
 /* Reserve top 1M for secure RAM */
 #define CONFIG_ARMV7_SECURE_BASE               0xfff00000
 #define CONFIG_ARMV7_SECURE_RESERVE_SIZE       0x00100000
index 86969a12321bc45ef7a47416447b164f425609b2..abbd1c4623519077107ff262d51d814491a52aee 100644 (file)
@@ -10,7 +10,6 @@
 #define CONFIG_LS102XA
 
 #define CONFIG_ARMV7_PSCI_1_0
-#define CONFIG_ARMV7_PSCI_NR_CPUS      CONFIG_MAX_CPUS
 
 #define CONFIG_ARMV7_SECURE_BASE       OCRAM_BASE_S_ADDR
 
index d0fc7ff0feb950f80e41570e607adbda0d446b78..511b0b3f0fe8c15d371c96ddda233dd553af0be1 100644 (file)
@@ -10,7 +10,6 @@
 #define CONFIG_LS102XA
 
 #define CONFIG_ARMV7_PSCI_1_0
-#define CONFIG_ARMV7_PSCI_NR_CPUS      CONFIG_MAX_CPUS
 
 #define CONFIG_ARMV7_SECURE_BASE       OCRAM_BASE_S_ADDR
 
index 52c0d0fff3fb9ad1dc46d088339bf7ff4270facc..4b1077c02bcb61ad301e9f0ac151806678386cee 100644 (file)
@@ -72,7 +72,6 @@
 #define CONFIG_CMD_FUSE
 #define CONFIG_MXC_OCOTP
 
-#define CONFIG_ARMV7_PSCI_NR_CPUS      2
 #define CONFIG_ARMV7_SECURE_BASE       0x00900000
 
 #endif
index 41552c411396d78f473e876593536213fc90d2f2..67a26c2e45f9a82a07469228ac55a204a117b10e 100644 (file)
@@ -22,7 +22,6 @@
 
 #define CONFIG_SUNXI_USB_PHYS  3
 
-#define CONFIG_ARMV7_PSCI_NR_CPUS      4
 #define CONFIG_ARMV7_SECURE_BASE       SUNXI_SRAM_B_BASE
 #define CONFIG_ARMV7_SECURE_MAX_SIZE    (64 * 1024) /* 64 KB */
 
index 63760c50f10e771c804ba3e09454e2c2834a635f..d8e6e207951b65699be1e3b39e1b519b46adfaca 100644 (file)
@@ -20,7 +20,6 @@
 
 #define CONFIG_SUNXI_USB_PHYS  3
 
-#define CONFIG_ARMV7_PSCI_NR_CPUS      2
 #define CONFIG_ARMV7_SECURE_BASE       SUNXI_SRAM_B_BASE
 #define CONFIG_ARMV7_SECURE_MAX_SIZE   (64 * 1024) /* 64 KB */
 
index 151ffdc8e64625b504be4824b32fd1b4ac7e7f7a..011d70f367717817f94b57960d07c198b3afb2f8 100644 (file)
        #define CONFIG_SUNXI_USB_PHYS   2
 #endif
 
-#ifndef CONFIG_MACH_SUN8I_A83T
-#if defined(CONFIG_MACH_SUN8I_A23)
-#define CONFIG_ARMV7_PSCI_NR_CPUS      2
-#elif defined(CONFIG_MACH_SUN8I_A33)
-#define CONFIG_ARMV7_PSCI_NR_CPUS      4
-#elif defined(CONFIG_MACH_SUN8I_H3)
-#define CONFIG_ARMV7_PSCI_NR_CPUS      4
-#else
-#error Unsupported sun8i variant
-#endif
-#endif
-
 /*
  * Include common sunxi configuration where most the settings are
  */
index 66696c2fc83498e5d5f0de3c67c980f93b387421..b3ca46be67231112de65f1cb91b15fafb5bbc866 100644 (file)
@@ -12,7 +12,6 @@
 #define __CONFIG_UNIPHIER_COMMON_H__
 
 #define CONFIG_ARMV7_PSCI_1_0
-#define CONFIG_ARMV7_PSCI_NR_CPUS   4
 
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
index 9583e8c08187e69d1e0f3d7f023c025c0ab697c3..b509a9cfd4e57308530c8f4d53fc2b40c6366891 100644 (file)
@@ -16,6 +16,5 @@
 
 #define CONFIG_SYSFLAGS_ADDR   0x1c010030
 #define CONFIG_SMP_PEN_ADDR    CONFIG_SYSFLAGS_ADDR
-#define CONFIG_ARMV7_PSCI_NR_CPUS      4
 
 #endif