]> git.baikalelectronics.ru Git - uboot.git/commit
spi: ich: Lock down controller settings if required
authorBin Meng <bmeng.cn@gmail.com>
Thu, 19 Oct 2017 01:20:57 +0000 (18:20 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 27 Oct 2017 07:13:47 +0000 (15:13 +0800)
commitd4cdad9b77f36d5c216f472a5b214b3cf3c9de80
treeaaa3c18ef2f5c903fa534da2069ed281f0c079b0
parentfef085c6985769946e253f44a2aa2daa48b926ae
spi: ich: Lock down controller settings if required

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.

Rather than passively doing the opcode configuration, let's add a
simple DTS property "intel,spi-lock-down" and let the driver call
the opcode configuration function if required by such FSP.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/spi/ich.c
drivers/spi/ich.h