]> git.baikalelectronics.ru Git - uboot.git/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)
commite7bf8d5576aa2f0f8f8503ae68cad284e1fd21b4
tree1431f4e513eafb21e025bd6fde397cd3d3014d8a
parent9e2a36cc6d7f4b785a43622e7e6b0f2cdc9bc584
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