km/spi: overwrite kirkwood_spi weak functions for KM Kirkwood boards
authorPascal Linder <pascal.linder@edu.hefr.ch>
Tue, 18 Jun 2019 06:41:02 +0000 (08:41 +0200)
committerStefan Roese <sr@denx.de>
Thu, 11 Jul 2019 08:58:03 +0000 (10:58 +0200)
commit53c3050d0dd3f885c35f5c44293c86a9b199c5ca
treed110bd463b8498ad5ed3a5ff312c71098cf58a2f
parentf1696534838e45623c276658b4b7c9331181d60c
km/spi: overwrite kirkwood_spi weak functions for KM Kirkwood boards

As the SPI NOR and NAND devices share the same hardware pins, the MPP
configuration has to be changed when claiming/releasing the bus. The
current configuration is saved when claiming and restored when releasing.
Furthermore, a general-purpose output is used to switch the chip-select
signal. This is now also implemented for the DM part of the kirkwood_spi
driver.

Signed-off-by: Pascal Linder <pascal.linder@edu.hefr.ch>
Signed-off-by: Holger Brunck <holger.brunck@ch.abb.com>
Signed-off-by: Stefan Roese <sr@denx.de>
board/keymile/km_arm/km_arm.c