]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitc7526bb3e9892420d9fa795c94edb61e11d2f8d6
treed3032345edff668058babc925364840845b35d34
parentc6e9ac8b4eefca36b84048361eaab2acb00777b6
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