]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Clean up the FSP support codes
authorBin Meng <bmeng.cn@gmail.com>
Wed, 17 Dec 2014 07:50:49 +0000 (15:50 +0800)
committerSimon Glass <sjg@chromium.org>
Fri, 19 Dec 2014 00:26:08 +0000 (17:26 -0700)
commit255fd5caa5dda7f1028843753562eff58f3855bc
treedd181fea0f51800ad68cbbf768e125f143eabb7f
parent5dad97ed61507d96b2f791980f51ee3497a75867
x86: Clean up the FSP support codes

This is the follow-on patch to clean up the FSP support codes:

- Remove the _t suffix on the structures defines
- Use __packed for structure defines
- Use U-Boot's assert()
- Use standard bool true/false
- Remove read_unaligned64()
- Use memcmp() in the compare_guid()
- Remove the cast in the memset() call
- Replace some magic numbers with macros
- Use panic() when no valid FSP image header is found
- Change some FSP utility routines to use an fsp_ prefix
- Add comment blocks for asm_continuation and fsp_init_done
- Remove some casts in find_fsp_header()
- Change HOB access macros to static inline routines
- Add comments to mention find_fsp_header() may be called in a
  stackless environment
- Add comments to mention init(&params) in fsp_init() cannot
  be removed

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
13 files changed:
arch/x86/cpu/queensbay/fsp_configs.c
arch/x86/cpu/queensbay/fsp_support.c
arch/x86/cpu/queensbay/tnc_dram.c
arch/x86/include/asm/arch-queensbay/fsp/fsp_api.h
arch/x86/include/asm/arch-queensbay/fsp/fsp_ffs.h
arch/x86/include/asm/arch-queensbay/fsp/fsp_fv.h
arch/x86/include/asm/arch-queensbay/fsp/fsp_hob.h
arch/x86/include/asm/arch-queensbay/fsp/fsp_infoheader.h
arch/x86/include/asm/arch-queensbay/fsp/fsp_platform.h
arch/x86/include/asm/arch-queensbay/fsp/fsp_support.h
arch/x86/include/asm/arch-queensbay/fsp/fsp_types.h
arch/x86/include/asm/arch-queensbay/fsp/fsp_vpd.h
arch/x86/lib/cmd_hob.c