MIPS: ath79: add common SPI controller device
authorGabor Juhos <juhosg@openwrt.org>
Tue, 4 Jan 2011 20:28:23 +0000 (21:28 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 18 Jan 2011 18:30:27 +0000 (19:30 +0100)
commit68a1d3163678a42ad2d0a9013672083c4fb613be
treeac653355ea8030195c4edd606fa1b31c7f4a8a75
parent8efaef4dc842a8a050d10aef30e26220b8995fc3
MIPS: ath79: add common SPI controller device

Several boards are using the built-in SPI controller of the
AR71XX/AR724X/AR913X SoCs. This patch adds common platform_device
and helper code to register it. Additionally, the patch registers
the SPI bus on the PB44 board.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Cc: Cliff Holden <Cliff.Holden@Atheros.com>
Cc: Kathy Giori <Kathy.Giori@Atheros.com>
Patchwork: https://patchwork.linux-mips.org/patch/1956/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ath79/Kconfig
arch/mips/ath79/Makefile
arch/mips/ath79/dev-spi.c [new file with mode: 0644]
arch/mips/ath79/dev-spi.h [new file with mode: 0644]
arch/mips/ath79/mach-pb44.c
arch/mips/include/asm/mach-ath79/ar71xx_regs.h