x86: fsp: Add boot_mode as a member of struct shared_data

Save boot_mode in struct shared_data for future refactoring.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Bin Meng 2015-12-10 22:02:58 -08:00
parent f0285fbe4e
commit 57ac74ff04
2 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@
struct shared_data {
struct fsp_header *fsp_hdr;
u32 stack_top;
u32 boot_mode;
struct upd_region fsp_upd;
};

View File

@ -153,6 +153,7 @@ void fsp_init(u32 stack_top, u32 boot_mode, void *nvs_buf)
shared_data.fsp_hdr = fsp_hdr;
shared_data.stack_top = stack_top;
shared_data.boot_mode = boot_mode;
post_code(POST_PRE_MRC);