]> git.dujemihanovic.xyz Git - u-boot.git/commit
kw_spi: support spi_claim/release_bus functions
authorValentin Longchamp <valentin.longchamp@keymile.com>
Fri, 1 Jun 2012 01:31:02 +0000 (01:31 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:32 +0000 (14:07 +0200)
commitac486e3ba16c37514d135c359f61ed6e32a2921d
treeb6d308d95e84fcf9330d2fafb62a66f0af921971
parentca880679dda63f8d58393526c7e3257f772ccabe
kw_spi: support spi_claim/release_bus functions

These two function nows ensure that the MPP is configured correctly for
the SPI controller before any SPI access, and restore the initial
configuration when the access is over.

Since the used pins for the SPI controller can differ (2 possibilities
for each signal), the used pins are configured with CONFIG_SYS_KW_SPI_MPP.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
arch/arm/include/asm/arch-kirkwood/spi.h
drivers/spi/kirkwood_spi.c