Skip to content

x86: fsp: Move platform-specific config to chipset directory

Bin Meng u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 0 repliesNew
  2. v18 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Include a common struct fsp_cfg_common in the struct fsp_config_data.
- New patch to introduce CONFIG_FSP_USE_UPD Kconfig option
- split this patch from v1 patch#7

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86: fsp: Simplify fsp_continue()arch/x86/include/asm/fsp/fsp_support.h arch/x86/lib/fsp/fsp_support.c+7 -261 reply
1/9x86: fsp: Simplify fsp_continue()+0 -00 replies
2/9x86: fsp: Avoid cast stack_top in struct shared_dataarch/x86/include/asm/fsp/fsp_api.h arch/x86/include/asm/fsp/fsp_support.h arch/x86/lib/fsp/fsp_support.c+4 -41 reply
2/9x86: fsp: Avoid cast stack_top in struct shared_data+0 -00 replies
3/9x86: fsp: Add boot_mode as a member of struct shared_dataarch/x86/include/asm/fsp/fsp_support.h arch/x86/lib/fsp/fsp_support.c+2 -01 reply
3/9x86: fsp: Add boot_mode as a member of struct shared_data+0 -00 replies
4/9x86: fsp: Rename shared_data to fsp_config_dataarch/x86/include/asm/arch-baytrail/fsp/fsp_configs.h arch/x86/include/asm/arch-queensbay/fsp/fsp_configs.h arch/x86/include/asm/fsp/fsp_api.h +2 more+46 -121 reply
4/9x86: fsp: Rename shared_data to fsp_config_data+0 -00 replies
5/9x86: fsp: Rename update_fsp_upd() and change its signaturearch/x86/cpu/baytrail/fsp_configs.c arch/x86/cpu/queensbay/fsp_configs.c arch/x86/include/asm/fsp/fsp_support.h +1 more+13 -121 reply
5/9x86: fsp: Rename update_fsp_upd() and change its signature+0 -00 replies
6/9x86: fsp: Introduce CONFIG_FSP_USE_UPD Kconfig optionarch/x86/Kconfig arch/x86/lib/fsp/fsp_support.c+23 -91 reply
6/9x86: fsp: Introduce CONFIG_FSP_USE_UPD Kconfig option+0 -00 replies
7/9x86: queensbay: Remove invalid comments in update_fsp_configs()arch/x86/cpu/queensbay/fsp_configs.c+0 -61 reply
7/9x86: queensbay: Remove invalid comments in update_fsp_configs()+0 -00 replies
8/9x86: fsp: Move struct fspinit_rtbuf definition to chipset headerarch/x86/include/asm/arch-baytrail/fsp/fsp_configs.h arch/x86/include/asm/arch-queensbay/fsp/fsp_configs.h arch/x86/include/asm/fsp/fsp_platform.h +1 more+8 -161 reply
8/9x86: fsp: Move struct fspinit_rtbuf definition to chipset header+0 -00 replies
9/9x86: fsp: Set up init runtime buffer in update_fsp_configs()arch/x86/cpu/baytrail/fsp_configs.c arch/x86/cpu/queensbay/fsp_configs.c arch/x86/include/asm/fsp/fsp_support.h +1 more+18 -91 reply
9/9x86: fsp: Set up init runtime buffer in update_fsp_configs()+0 -00 replies

Reviews trailers per patch

All 18 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/9A-b T-b
1/9A-b T-b
2/9A-b T-b
2/9A-b T-b
3/9A-b T-b
3/9A-b T-b
4/9A-b T-b
4/9A-b T-b
5/9A-b T-b
5/9A-b T-b
6/9A-b T-b
6/9A-b T-b
7/9A-b T-b
7/9A-b T-b
8/9A-b T-b
8/9A-b T-b
9/9A-b T-b
9/9A-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/9] x86: fsp: Move platform-specific config to chipset directory

All FSP spec v1.0 complaint FSP binary uses struct fspinit_rtbuf as defined by the 1.0 spec, however there are FSPs that do not follow 1.0 spec, like Intel FSP for 3rd generation Intel Core and Intel Celeron processors with mobile Intel HM76 and QM77 chipsets platform (formerly Chief River Platform: Ivy Bridge and Panther Point). Although Intel website says this FSP conforms to FSP v1.0 specification which defines the UPD usage, it is not really the case. This might possible due to that FSP predates the 1.0 spec. Also future FSP binary that is complaint to v1.1 spec defines an optional paltform-specific runtime data in the struct fspinit_rtbuf.

Besides this fspinit_rtbuf, the IvyBridge FSP does not support UPD either, so that current codes in arch/x86/lib/fsp/fsp_support.c won't work for that FSP. We need some flexibility, hence move those platform-specific config to chipset directory.

Right now we still use hardcoded 'const struct' table (in flash) to pass the Azalia (Intel HD Audio) verb table to FSP, because different FSP may use different verb table format (at least for Queensbay and BayTrail), we cannot handle this in the common FSP support codes. But with this series, we are now able to get Azalia verb table from device tree, just like what we did for overriding UPD data configuration. This can be done in future patch set.

Changes in v2:
- Include a common struct fsp_cfg_common in the struct fsp_config_data.
- New patch to introduce CONFIG_FSP_USE_UPD Kconfig option
- split this patch from v1 patch#7

Bin Meng (9):
x86: fsp: Simplify fsp_continue()
x86: fsp: Avoid cast stack_top in struct shared_data
x86: fsp: Add boot_mode as a member of struct shared_data
x86: fsp: Rename shared_data to fsp_config_data
x86: fsp: Rename update_fsp_upd() and change its signature
x86: fsp: Introduce CONFIG_FSP_USE_UPD Kconfig option
x86: queensbay: Remove invalid comments in update_fsp_configs()
x86: fsp: Move struct fspinit_rtbuf definition to chipset header
x86: fsp: Set up init runtime buffer in update_fsp_configs()

 arch/x86/Kconfig                                   |  9 ++++
 arch/x86/cpu/baytrail/fsp_configs.c                | 11 +++-
 arch/x86/cpu/queensbay/fsp_configs.c               | 14 +++---
 .../include/asm/arch-baytrail/fsp/fsp_configs.h    | 19 +++++++
 .../include/asm/arch-queensbay/fsp/fsp_configs.h   | 19 +++++++
 arch/x86/include/asm/fsp/fsp_api.h                 | 12 ++++-
 arch/x86/include/asm/fsp/fsp_platform.h            | 15 ------
 arch/x86/include/asm/fsp/fsp_support.h             | 20 +++-----
 arch/x86/lib/fsp/fsp_support.c                     | 58 ++++++++--------------
 9 files changed, 102 insertions(+), 75 deletions(-)
 create mode 100644 arch/x86/include/asm/arch-baytrail/fsp/fsp_configs.h
 create mode 100644 arch/x86/include/asm/arch-queensbay/fsp/fsp_configs.h
 delete mode 100644 arch/x86/include/asm/fsp/fsp_platform.h
Signature · 1 line
1.8.2.1