x86: ich-spi: Move opcode registers configuration to another routine
authorBin Meng <bmeng.cn@gmail.com>
Wed, 16 Aug 2017 05:38:30 +0000 (22:38 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 24 Aug 2017 03:00:47 +0000 (11:00 +0800)
commitb42711f90c66d683b808cd78d9748ab38407413f
treed3032345edff668058babc925364840845b35d34
parent3e7914168413f7aa05a68a53ca16e84b14d6851b
x86: ich-spi: Move opcode registers configuration to another routine

At present the ICH SPI opcode registers configuration is done in the
ich_spi_remove() routine, a little bit weird but that's how current.
Linux MTD driver works. This changes to move the opcode registers
configuration to a separate routine ich_spi_config_opcode() which
might be called by U-Boot itself as well.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/spi/ich.c