[U-Boot] [PATCH v3 0/5] kirkwood spi_claim/release_bus support

Valentin Longchamp valentin.longchamp at keymile.com
Thu May 31 16:17:51 CEST 2012


This series adds generic support for the spi_claim/release_bus functions for
the kirkwood processors.

The implementation was already discussed in another thread following my first
board specific submission of the patch.

The series adds two functions to the kirkwood mpp code to be able to temporarily
save and then restore the mpp configuration.

Changes for v2:
	- save MPP configuration with mpp_read function as dicussed on ML
	- moved CS pin MPP config to spi_setup_slave only
	- add backup fo CS pin in spi_setup_slave and reset in spi_free_slave

Changes for v3:
	- moved mpp_read function functionality into mpp_conf function
	- fixed all calls to mpp_conf so that they are compliant with the
	newly necessary mpp_conf prototype	

Valentin Longchamp (5):
  kirkwood: add save functionality kirkwood_mpp_conf function
  kirkwood: fix calls to kirkwood_mpp_conf
  kw_spi: backup and reset the MPP of the chosen CS pin
  kw_spi: support spi_claim/release_bus functions
  kw_spi: add weak functions board_spi_claim/release_bus

 arch/arm/cpu/arm926ejs/kirkwood/mpp.c           |   14 ++++-
 arch/arm/include/asm/arch-kirkwood/mpp.h        |    2 +-
 arch/arm/include/asm/arch-kirkwood/spi.h        |   11 ++++
 board/LaCie/net2big_v2/net2big_v2.c             |    2 +-
 board/LaCie/netspace_v2/netspace_v2.c           |    2 +-
 board/Marvell/dreamplug/dreamplug.c             |    2 +-
 board/Marvell/guruplug/guruplug.c               |    2 +-
 board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c |    2 +-
 board/Marvell/openrd/openrd.c                   |    2 +-
 board/Marvell/rd6281a/rd6281a.c                 |    2 +-
 board/Marvell/sheevaplug/sheevaplug.c           |    2 +-
 board/Seagate/dockstar/dockstar.c               |    2 +-
 board/cloudengines/pogo_e02/pogo_e02.c          |    2 +-
 board/d-link/dns325/dns325.c                    |    2 +-
 board/keymile/km_arm/km_arm.c                   |    6 +-
 board/raidsonic/ib62x0/ib62x0.c                 |    2 +-
 drivers/spi/kirkwood_spi.c                      |   64 +++++++++++++++++++----
 17 files changed, 93 insertions(+), 28 deletions(-)



More information about the U-Boot mailing list