OMAP: devices: Modify McSPI device to adapt to hwmod framework
authorCharulatha V <charu@ti.com>
Wed, 2 Feb 2011 12:22:14 +0000 (17:52 +0530)
committerTony Lindgren <tony@atomide.com>
Thu, 17 Feb 2011 17:53:31 +0000 (09:53 -0800)
commit1a5d81905aec1536783fb6ab875f31910f449941
tree73b594a73cb333496e48210d4a5c29e501bd46f0
parent0f616a4e17ea244f882056656964b792edde8364
OMAP: devices: Modify McSPI device to adapt to hwmod framework

Cleans up all base address definitions for omap_mcspi
and adapts the device registration and driver to hwmod framework.
Changes involves:
1) Removing all base address macro defines.
2) Using omap-device layer to register device and utilizing data from
   hwmod data file for base address, dma channel number, Irq_number,
   device attribute(number of chipselect).
3) Appending base address with pdata reg_offset for omap4 boards.
   For omap4 all regs used in driver deviate with reg_offset_macros
   defined with an value of 0x100. So pass this offset through pdata
   and append the same to base address retrieved from hwmod data file
   and we are not mapping *_HL_* regs which are not used in driver.

Signed-off-by: Charulatha V <charu@ti.com>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Reviewed-by: Partha Basak <p-basak2@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/devices.c
arch/arm/plat-omap/include/plat/mcspi.h
drivers/spi/omap2_mcspi.c