[Skiboot] [PATCH 02/17] Move more FSP functions to FSP platform
Stewart Smith
stewart at linux.ibm.com
Tue Jun 18 17:29:10 AEST 2019
Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
core/init.c | 12 ------------
platforms/ibm-fsp/common.c | 13 +++++++++++++
2 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/core/init.c b/core/init.c
index 3db9df314292..9990483a599b 100644
--- a/core/init.c
+++ b/core/init.c
@@ -558,16 +558,6 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
*/
nvram_wait_for_load();
- /* Wait for FW VPD data read to complete */
- fsp_code_update_wait_vpd(true);
-
- /*
- * OCC takes few secs to boot. Call this as late as
- * as possible to avoid delay.
- */
- if (fsp_present())
- occ_pstates_init();
-
if (!occ_sensors_init())
dts_sensor_create_nodes(sensor_node);
@@ -580,8 +570,6 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
occ_pstates_init();
}
- fsp_console_select_stdout();
-
/* Use nvram bootargs over device tree */
cmdline = nvram_query_safe("bootargs");
if (cmdline) {
diff --git a/platforms/ibm-fsp/common.c b/platforms/ibm-fsp/common.c
index a7f2beedcb78..573cd51861ee 100644
--- a/platforms/ibm-fsp/common.c
+++ b/platforms/ibm-fsp/common.c
@@ -180,6 +180,19 @@ void ibm_fsp_exit(void)
* ensure we have all the LED information.
*/
create_led_device_nodes();
+
+ /* Wait for FW VPD data read to complete */
+ fsp_code_update_wait_vpd(true);
+
+ /*
+ * OCC takes few secs to boot. Call this as late as
+ * as possible to avoid delay.
+ */
+ if (fsp_present())
+ occ_pstates_init();
+
+ fsp_console_select_stdout();
+
}
int64_t ibm_fsp_cec_reboot(void)
--
2.21.0
More information about the Skiboot
mailing list