OpenCloudOS-Kernel/arch/arm/plat-omap
Paul Walmsley db2a60bf25 OMAP: hwmod/device: add omap_{device,hwmod}_get_mpu_rt_va
Add omap_device_get_mpu_rt_va().  This is intended to be used by
device drivers (currently, via a struct platform_data function
pointer) to retrieve their corresponding device's virtual base address
that the MPU should use to access the device.  This is needed because
the omap_hwmod code does its own ioremap(), in order to gain access to
the module's OCP_SYSCONFIG register.

Add omap_hwmod_get_mpu_rt_va().  omap_device_get_mpu_rt_va() calls this
function to do the real work.

While here, rename struct omap_hwmod._rt_va to struct
omap_hwmod._mpu_rt_va, to reinforce that it refers to the MPU's
register target virtual address base (as opposed to, for example, the
L3's).

In the future, this belongs as a function in an omap_bus, so it is not
necessary to call this through a platform_data function pointer.

The use-case for this function was originally presented by Santosh
Shilimkar <santosh.shilimkar@ti.com>.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
2010-07-26 16:34:33 -06:00
..
include/plat OMAP: hwmod/device: add omap_{device,hwmod}_get_mpu_rt_va 2010-07-26 16:34:33 -06:00
Kconfig omap iommu: Make CONFIG_OMAP_IOMMU_DEBUG selectable 2010-05-14 10:23:34 +03:00
Makefile OMAP4: hwmod: Enable omap_device build for OMAP4 2010-07-26 16:34:30 -06:00
clock.c OMAP4 clock: Support clk_set_parent 2010-05-20 12:31:12 -06:00
common.c omap4: Move SOC specific code from board file 2010-05-20 11:17:51 -07:00
cpu-omap.c OMAP clock/CPUFreq: add clk_exit_cpufreq_table() 2010-01-08 15:23:16 -07:00
debug-devices.c omap: use smc91x_platdata to setup smc91x 2009-12-11 16:16:33 -08:00
debug-leds.c const: constify remaining dev_pm_ops 2009-12-15 08:53:25 -08:00
devices.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
dma.c omap: DMA: Fix multi-line comments 2010-05-20 11:16:39 -07:00
dmtimer.c omap: DMTIMER: Ack pending interrupt always when stopping a timer 2010-06-10 15:37:41 +03:00
fb.c OMAP: DSS2: omapfb driver 2009-12-09 12:12:44 +02:00
gpio.c omap: GPIO: fix auto-disable of debounce clock 2010-06-10 15:37:41 +03:00
i2c.c omap4: Add support for i2c init 2010-05-20 11:36:43 -07:00
io.c Merge with mainline to remove plat-omap/Kconfig conflict 2010-03-01 14:19:05 -08:00
iommu-debug.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
iommu.c omap iommu: Reject unaligned addresses at setting page table entry 2010-05-14 10:23:39 +03:00
iopgtable.h omap iommu: cleanup iommu page address mask and definitions 2010-02-15 10:03:32 -08:00
iovmm.c omap iommu: Fix Memory leak 2010-06-09 13:21:27 +03:00
mailbox.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
mcbsp.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
mux.c omap: mux: Add new style pin multiplexing code for omap3 2009-12-11 16:16:32 -08:00
ocpi.c [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
omap-pm-noop.c omap: headers: Move remaining headers from include/mach to include/plat 2009-10-20 09:40:47 -07:00
omap_device.c OMAP: hwmod/device: add omap_{device,hwmod}_get_mpu_rt_va 2010-07-26 16:34:33 -06:00
sram.c omap4: Fix multiboot with CONFIG_PM and CONFIG_ARCH_OMAP3 selected 2010-05-04 13:19:16 -07:00
usb.c omap1: Add omap7xx USB support 2009-12-11 16:16:34 -08:00