From: Bin Meng Date: Fri, 11 Dec 2015 06:02:58 +0000 (-0800) Subject: x86: fsp: Add boot_mode as a member of struct shared_data X-Git-Tag: v2016.03-rc1~311^2~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57ac74ff0476bd087223b14cfdc4b972db433cd9;p=u-boot 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 Acked-by: Simon Glass Tested-by: Simon Glass --- diff --git a/arch/x86/include/asm/fsp/fsp_support.h b/arch/x86/include/asm/fsp/fsp_support.h index 685778e11e..18e2d2162d 100644 --- a/arch/x86/include/asm/fsp/fsp_support.h +++ b/arch/x86/include/asm/fsp/fsp_support.h @@ -21,6 +21,7 @@ struct shared_data { struct fsp_header *fsp_hdr; u32 stack_top; + u32 boot_mode; struct upd_region fsp_upd; }; diff --git a/arch/x86/lib/fsp/fsp_support.c b/arch/x86/lib/fsp/fsp_support.c index df62ba8097..083d8557d1 100644 --- a/arch/x86/lib/fsp/fsp_support.c +++ b/arch/x86/lib/fsp/fsp_support.c @@ -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);