[Skiboot] [RFC v2 7/8] platforms/witherspoon: enable secvar functions for the witherspoon platform

Eric Richter erichte at linux.ibm.com
Fri Apr 12 08:45:50 AEST 2019


This is an example patch to add the secvar functions to witherspoon. Most p9
systems will need a similar implementation, so there may be a better solution.

Signed-off-by: Eric Richter <erichte at linux.ibm.com>
---
 platforms/astbmc/witherspoon.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/platforms/astbmc/witherspoon.c b/platforms/astbmc/witherspoon.c
index 52971ecf..015c41fc 100644
--- a/platforms/astbmc/witherspoon.c
+++ b/platforms/astbmc/witherspoon.c
@@ -30,6 +30,7 @@
 #include <npu2.h>
 #include <occ.h>
 #include <i2c.h>
+#include <libstb/secboot_p9.h>
 
 #include "astbmc.h"
 #include "ast.h"
@@ -512,4 +513,8 @@ DECLARE_PLATFORM(witherspoon) = {
 	.pci_get_slot_info	= dt_slot_get_slot_info,
 	.ocapi                  = &witherspoon_ocapi,
 	.npu2_device_detect	= witherspoon_npu2_device_detect,
+
+	.secvar_platform_init	= secvar_platform_init_p9,
+	.secvar_load_bank	= secvar_load_bank_p9,
+	.secvar_write_bank	= secvar_write_bank_p9,
 };
-- 
2.20.1



More information about the Skiboot mailing list