diff options
author | Eric Richter <erichte@linux.ibm.com> | 2020-09-16 11:21:31 -0500 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-10-01 13:44:07 +1000 |
commit | 70adef3875f5010c512b5396aa6271a5e3b56c33 (patch) | |
tree | 19c8e0105c549aa9b4a1e8c85d64fdad7f37cfca /platforms | |
parent | 46f044369bea38872258f6396a8831a2c03d4d2a (diff) | |
download | skiboot-70adef3875f5010c512b5396aa6271a5e3b56c33.zip skiboot-70adef3875f5010c512b5396aa6271a5e3b56c33.tar.gz skiboot-70adef3875f5010c512b5396aa6271a5e3b56c33.tar.bz2 |
witherspoon: enable secvar for witherspoon platform
Secure variable support needs to be enabled for each platform, and each
platform needs to select which storage and backend drivers to use (or
alternatively implement their own). This patch adds secure variable
support to the witherspoon platform.
Signed-off-by: Eric Richter <erichte@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/astbmc/witherspoon.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platforms/astbmc/witherspoon.c b/platforms/astbmc/witherspoon.c index 39c3f16..a69114c 100644 --- a/platforms/astbmc/witherspoon.c +++ b/platforms/astbmc/witherspoon.c @@ -17,6 +17,7 @@ #include <npu2.h> #include <occ.h> #include <i2c.h> +#include <secvar.h> #include "astbmc.h" #include "ast.h" @@ -572,6 +573,11 @@ static void witherspoon_finalise_dt(bool is_reboot) } } +static int witherspoon_secvar_init(void) +{ + return secvar_main(secboot_tpm_driver, edk2_compatible_v1); +} + /* The only difference between these is the PCI slot handling */ DECLARE_PLATFORM(witherspoon) = { @@ -594,4 +600,5 @@ DECLARE_PLATFORM(witherspoon) = { .ocapi = &witherspoon_ocapi, .npu2_device_detect = witherspoon_npu2_device_detect, .op_display = op_display_lpc, + .secvar_init = witherspoon_secvar_init, }; |