[ARM] pxa: make pxa2xx_spi driver use ssp_request()/ssp_free()
authoreric miao <eric.miao@marvell.com>
Wed, 21 Nov 2007 10:50:53 +0000 (18:50 +0800)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 15:07:52 +0000 (15:07 +0000)
commit2f1a74e5a2de0459139b85af95e901448726c375
tree87b7bccdcff291b4956632f44c0233d228536299
parent3dcb00ea58f6b5dc62b89bbfd54353a06e6af921
[ARM] pxa: make pxa2xx_spi driver use ssp_request()/ssp_free()

1. make pxa2xx_spi.c use ssp_request() and ssp_free() to get the common
   information of the designated SSP port.

2. remove those IRQ/memory request code, ssp_request() has done that for
   the driver

3. the SPI platform device is thus made psuedo, no resource (memory/IRQ)
   has to be defined, all will be retreived by ssp_request()

4. introduce ssp_get_clk_div() to handle controller difference in clock
   divisor setting

5. use clk_xxx() API for clock enable/disable, and clk_get_rate() to
   handle the different SSP clock frequency between different processors

Signed-off-by: eric miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/lubbock.c
drivers/spi/Kconfig
drivers/spi/pxa2xx_spi.c
include/asm-arm/arch-pxa/pxa2xx_spi.h