test(psci): add tests for OS-initiated mode

Change-Id: I33e135f659aea600f71e053ac3db57eb0172e22b
Signed-off-by: Wing Li <wingers@google.com>
diff --git a/include/lib/tftf_lib.h b/include/lib/tftf_lib.h
index f9d1a6e..d265bb9 100644
--- a/include/lib/tftf_lib.h
+++ b/include/lib/tftf_lib.h
@@ -47,6 +47,7 @@
 			 uintptr_t entry_point_address,
 			 u_register_t context_id);
 int32_t tftf_psci_cpu_off(void);
+int32_t tftf_psci_set_suspend_mode(uint32_t mode);
 int32_t tftf_psci_affinity_info(u_register_t target_affinity,
 				uint32_t lowest_affinity_level);
 int32_t tftf_psci_node_hw_state(u_register_t target_cpu, uint32_t power_level);
diff --git a/include/plat/common/plat_topology.h b/include/plat/common/plat_topology.h
index 0ca5eff..fbae878 100644
--- a/include/plat/common/plat_topology.h
+++ b/include/plat/common/plat_topology.h
@@ -86,6 +86,8 @@
 	unsigned char is_present;
 } tftf_pwr_domain_node_t;
 
+extern tftf_pwr_domain_node_t tftf_pd_nodes[PLATFORM_NUM_AFFS];
+
 /*
  * Detect and store the platform topology so that test cases can query it later.
  */
diff --git a/include/runtime_services/psci.h b/include/runtime_services/psci.h
index f93ee40..caa74a9 100644
--- a/include/runtime_services/psci.h
+++ b/include/runtime_services/psci.h
@@ -208,6 +208,12 @@
 #define PSCI_E_INVALID_ADDRESS	-9
 
 /*******************************************************************************
+ * PSCI suspend mode related constants.
+ ******************************************************************************/
+#define PSCI_PLAT_COORD		0x0
+#define PSCI_OS_INIT		0x1
+
+/*******************************************************************************
  * PSCI affinity state related constants.
  ******************************************************************************/
 #define PSCI_STATE_ON		0x0