]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: fsp: Add boot_mode as a member of struct shared_data
authorBin Meng <bmeng.cn@gmail.com>
Fri, 11 Dec 2015 06:02:58 +0000 (22:02 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 13 Jan 2016 04:20:14 +0000 (12:20 +0800)
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>
arch/x86/include/asm/fsp/fsp_support.h
arch/x86/lib/fsp/fsp_support.c

index 685778e11e2480b6894afa183c6ceb22c436a9be..18e2d2162d4a34c6a823feffdd220d33c320c862 100644 (file)
@@ -21,6 +21,7 @@
 struct shared_data {
        struct fsp_header       *fsp_hdr;
        u32                     stack_top;
+       u32                     boot_mode;
        struct upd_region       fsp_upd;
 };
 
index df62ba80975f6b15410d6440dbad435d9dee187a..083d8557d1ebac912d8448df8134d39fdf6a2f40 100644 (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);