]> git.sur5r.net Git - u-boot/commit
spi: ich: Configure SPI BIOS parameters for Linux upon U-Boot exit
authorStefan Roese <sr@denx.de>
Mon, 24 Apr 2017 07:48:04 +0000 (09:48 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 17 May 2017 09:13:06 +0000 (17:13 +0800)
commit4759dffe23460d39d8e92c01013b00a3587e2112
tree1431f4e513eafb21e025bd6fde397cd3d3014d8a
parent7025b05415ff97824266ce59b7f7915032ba6403
spi: ich: Configure SPI BIOS parameters for Linux upon U-Boot exit

This patch adds a remove function to the Intel ICH SPI driver, that will
be called upon U-Boot exit, directly before the OS (Linux) is started.
This function takes care of configuring the BIOS registers in the SPI
controller (similar to what a "standard" BIOS or coreboot does), so that
the Linux MTD device driver is able to correctly read/write to the SPI
NOR chip. Without this, the chip is not detected at all.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Jagan Teki <jteki@openedev.com>
drivers/spi/ich.c
drivers/spi/ich.h