
On Thu, 7 May 2020 at 02:00, Bernhard Messerklinger bernhard.messerklinger@br-automation.com wrote:
A the moment the FSP configuration is a mix of hard coded values and devicetree properties. This patch makes FSP-M and FSP-S full configurable from devicetree by adding binding properties for all FSP parameters. Co-developed-by: Wolfgang Wallner wolfgang.wallner@br-automation.com Signed-off-by: Wolfgang Wallner wolfgang.wallner@br-automation.com Signed-off-by: Bernhard Messerklinger bernhard.messerklinger@br-automation.com
Changes in v2: Integration of the review comments Fix swizzle size bug
arch/x86/cpu/apollolake/Makefile | 1 + arch/x86/cpu/apollolake/fsp_bindings.c | 1803 +++++++++++++++++ arch/x86/cpu/apollolake/fsp_m.c | 169 +- arch/x86/cpu/apollolake/fsp_s.c | 386 +--- arch/x86/dts/chromebook_coral.dts | 72 +- .../asm/arch-apollolake/fsp/fsp_m_upd.h | 168 ++ .../asm/arch-apollolake/fsp/fsp_s_upd.h | 202 ++ .../asm/arch-apollolake/fsp_bindings.h | 110 + .../fsp/fsp2/apollolake/fsp-m.txt | 320 +++ .../fsp/fsp2/apollolake/fsp-s.txt | 483 +++++ 10 files changed, 3163 insertions(+), 551 deletions(-) create mode 100644 arch/x86/cpu/apollolake/fsp_bindings.c create mode 100644 arch/x86/include/asm/arch-apollolake/fsp_bindings.h create mode 100644 doc/device-tree-bindings/fsp/fsp2/apollolake/fsp-m.txt create mode 100644 doc/device-tree-bindings/fsp/fsp2/apollolake/fsp-s.txt
Reviewed-by: Simon Glass sjg@chromium.org Tested on chromebook_coral: Tested-by: Simon Glass sjg@chromium.org