diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2016-03-22 11:18:56 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-04-01 13:11:25 +1100 |
commit | d65cfefe8a7888aedc90b91fd28b72bc7677d326 (patch) | |
tree | 23e2972d23e151ca5292dc366145baecac769141 /hdata/spira.h | |
parent | 9abe84f83212d6e92c8c3d15f73b8fa26b169fdc (diff) | |
download | skiboot-d65cfefe8a7888aedc90b91fd28b72bc7677d326.zip skiboot-d65cfefe8a7888aedc90b91fd28b72bc7677d326.tar.gz skiboot-d65cfefe8a7888aedc90b91fd28b72bc7677d326.tar.bz2 |
hdata: Enable SPIRA-H
Update the SPIRA-H pointer in the NACA so that the FSP can build and pass
the SPIRA-S structure to OPAL instead of the legacy SPIRA. Older systems
(which does not support SPIRA-H) ignores SPIRA-H pointer and continue to
pass legacy SPIRA.
"spira" is a global structure and referred everywhere inside hdata dir. Once
we enable SPIRA-H we get data in SPIRA-S area, not in legacy spira. Hence
fixup spira structure, so that we don't break building device tree.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/spira.h')
-rw-r--r-- | hdata/spira.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hdata/spira.h b/hdata/spira.h index 0025cdd..bd10ae7 100644 --- a/hdata/spira.h +++ b/hdata/spira.h @@ -152,6 +152,8 @@ struct spiras { u8 reserved[0x1c0]; } __packed __align(0x100); +extern struct spiras *spiras; + /* This macro can be used to check the validity of a pointer returned * by one of the HDIF API functions. It returns true if the pointer |