]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: apl: Use devicetree for FSP-M configuration
authorBernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Mon, 18 May 2020 10:33:34 +0000 (12:33 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 27 May 2020 06:40:09 +0000 (14:40 +0800)
commit1fa6305fd605635781b66abd5c6170ee29624743
tree459d3127bd0c418947b323152909c06314d74367
parent832fee864c6417efa9f39c41d23eb6c73da9e7b2
x86: apl: Use devicetree for FSP-M configuration

A the moment the FSP-M configuration is a mix of hard coded values and
devicetree properties.

This patch makes FSP-M full configurable from devicetree by adding
binding properties for all FSP-M 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>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org> (Tested on coral)
[sjg: Fix a build error for coral]
Signed-off-by: Simon Glass <sjg@chromium.org>
[bmeng: Add __maybe_unused to fsp_update_config_from_dtb()]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/apollolake/Makefile
arch/x86/cpu/apollolake/fsp_bindings.c [new file with mode: 0644]
arch/x86/cpu/apollolake/fsp_m.c
arch/x86/dts/chromebook_coral.dts
arch/x86/include/asm/arch-apollolake/fsp/fsp_m_upd.h
arch/x86/include/asm/arch-apollolake/fsp_bindings.h [new file with mode: 0644]
doc/device-tree-bindings/fsp/fsp2/apollolake/fsp-m.txt [new file with mode: 0644]