spi: sirf: reset SPI controller in init stage
authorQipan Li <Qipan.Li@csr.com>
Thu, 20 Nov 2014 14:33:07 +0000 (22:33 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 21 Nov 2014 18:11:21 +0000 (18:11 +0000)
commit8509c55fcb5192b7f70ec596a8752c2ec39942e3
treea5a80da3f47be9a7d835d63060c41e34df957c1b
parentfcc50e5cd2deb8316d19e446d8efdfc9b35646ef
spi: sirf: reset SPI controller in init stage

in SPI boot mode, romcode uses SPI controller to fetch data from NOR
flash. Here we need to reset the hardware IP to restore its state.

Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sirf.c