diff mbox series

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

Message ID 20190411224551.29401-8-erichte@linux.ibm.com
State RFC
Headers show
Series Initial Skiboot Secure Variable Support | expand

Checks

Context Check Description
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (ff79070d1c4cdc38f2ecb42e45b8322cb1efb819)

Commit Message

Eric Richter April 11, 2019, 10:45 p.m. UTC
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@linux.ibm.com>
---
 platforms/astbmc/witherspoon.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

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,
 };