]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
Tegra: define platform power states
authorVarun Wadekar <vwadekar@nvidia.com>
Tue, 19 Jan 2016 21:55:19 +0000 (13:55 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 23 Feb 2017 18:49:45 +0000 (10:49 -0800)
The platform power states, PLAT_MAX_RET_STATE and PLAT_MAX_OFF_STATE,
can change on Tegra SoCs and so should be defined per-soc.

This patch moves these macro definitions to individual SoC's tegra_def.h
files.

Change-Id: Ib9b2752bc4d79cef6f79bee49882d340f71977a2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/include/platform_def.h
plat/nvidia/tegra/include/t132/tegra_def.h
plat/nvidia/tegra/include/t210/tegra_def.h

index 92c4c554baaf74f8d64141cb8b920aea7d7305ad..08e851c171d34da9ccbcfee09bded98a2df8523f 100644 (file)
 #define PLAT_NUM_PWR_DOMAINS           (PLATFORM_CORE_COUNT + \
                                         PLATFORM_CLUSTER_COUNT + 1)
 
-/*******************************************************************************
- * Platform power states
- ******************************************************************************/
-#define PLAT_MAX_RET_STATE             1
-#define PLAT_MAX_OFF_STATE             (PSTATE_ID_SOC_POWERDN + 1)
-
 /*******************************************************************************
  * Platform console related constants
  ******************************************************************************/
index e288067fc7eaf3c948d32440babc1a6e4701f072..318f4def15ae67b43b112c1b4effd14ecb7ab996 100644 (file)
  ******************************************************************************/
 #define PSTATE_ID_SOC_POWERDN  0xD
 
+/*******************************************************************************
+ * Platform power states (used by PSCI framework)
+ *
+ * - PLAT_MAX_RET_STATE should be less than lowest PSTATE_ID
+ * - PLAT_MAX_OFF_STATE should be greater than the highest PSTATE_ID
+ ******************************************************************************/
+#define PLAT_MAX_RET_STATE             1
+#define PLAT_MAX_OFF_STATE             (PSTATE_ID_SOC_POWERDN + 1)
+
 /*******************************************************************************
  * GIC memory map
  ******************************************************************************/
index 2c73408777c6ff47a2d1471867c31ea5997da035..ce85427e434325bef53dd37192eb944e9b043852 100644 (file)
  ******************************************************************************/
 #define PLAT_SYS_SUSPEND_STATE_ID      PSTATE_ID_SOC_POWERDN
 
+/*******************************************************************************
+ * Platform power states (used by PSCI framework)
+ *
+ * - PLAT_MAX_RET_STATE should be less than lowest PSTATE_ID
+ * - PLAT_MAX_OFF_STATE should be greater than the highest PSTATE_ID
+ ******************************************************************************/
+#define PLAT_MAX_RET_STATE             1
+#define PLAT_MAX_OFF_STATE             (PSTATE_ID_SOC_POWERDN + 1)
+
 /*******************************************************************************
  * GIC memory map
  ******************************************************************************/