]> git.baikalelectronics.ru Git - uboot.git/commit
x86: fsp: Configure SPI opcode registers before SPI is locked down
authorBin Meng <bmeng.cn@gmail.com>
Wed, 16 Aug 2017 05:38:31 +0000 (22:38 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 24 Aug 2017 03:00:47 +0000 (11:00 +0800)
commitf3bb605a5eb79a82ab6fb1d6c6cd0744f2ac3110
treeeb5774d7d1cc4db39b78c015eb5733f8807de07f
parentc7526bb3e9892420d9fa795c94edb61e11d2f8d6
x86: fsp: Configure SPI opcode registers before SPI is locked down

Some Intel FSP (like Braswell) does SPI lock-down during the call
to fsp_notify(INIT_PHASE_BOOT). But before SPI lock-down is done,
it's bootloader's responsibility to configure the SPI controller's
opcode registers properly otherwise SPI controller driver doesn't
know how to communicate with the SPI flash device.

This introduces a Kconfig option CONFIG_FSP_LOCKDOWN_SPI for such
FSPs. When it is on, U-Boot will configure the SPI opcode registers
before the lock-down.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/x86/Kconfig
arch/x86/lib/fsp/fsp_common.c