linux/arch/arm/plat-omap/include/plat
Paul Walmsley 2ace831ffc OMAP4: PRCM: add OMAP4-specific accessor/mutator functions
In some ways, the OMAP4 PRCM register layout is quite different than
the OMAP2/3 PRCM register layout.  For example, on OMAP2/3, from a
register layout point of view, all CM instances were located in the CM
subsystem, and all PRM instances were located in the PRM subsystem.
OMAP4 changes this.  Now, for example, some CM instances, such as
WKUP_CM and EMU_CM, are located in the system PRM subsystem.  And a
"local PRCM" exists for the MPU - this PRCM combines registers that
would normally appear in both CM and PRM instances, but uses its own
register layout which matches neither the OMAP2/3 PRCM layout nor the
OMAP4 PRCM layout.

To try to deal with this, introduce some new functions, omap4_cminst*
and omap4_prminst*.  The former is to be used when writing to a CM
instance register (no matter what subsystem or hardware module it
exists in), and the latter, similarly, with PRM instance registers.
To determine which "PRCM partition" to write to, the functions take a
PRCM instance ID argument.  Subsequent patches add these partition IDs
to the OMAP4 powerdomain and clockdomain definitions.

As far as I can see, there's really no good way to handle these types
of register access inconsistencies.  This patch seemed like the least
bad approach.

Moving forward, the long-term goal is to remove all direct PRCM
register access from the PM code.  PRCM register access should go
through layers such as the powerdomain and clockdomain code that can
hide the details of how to interact with the specific hardware
variant.

While here, rename cm4xxx.c to cm44xx.c to match the naming convention
of the other OMAP4 PRCM files.

Thanks to Santosh Shilimkar <santosh.shilimkar@ti.com>, Rajendra Nayak
<rnayak@ti.com>, and Benoît Cousson <b-cousson@ti.com> for some comments.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Benoît Cousson <b-cousson@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
2010-12-21 21:05:14 -07:00
..
blizzard.h omap: Checkpatch cleanup for blizzard.h 2010-03-11 14:50:00 -08:00
board-ams-delta.h
board-sx1.h
board-voiceblue.h
board.h omap: Move omap2 FS USB platform init code into mach-omap2/usb-fs.c 2010-07-05 16:31:29 +03:00
clkdev_omap.h OMAP3 clock: reorganize CK_* platform flags 2010-01-26 20:12:56 -07:00
clkdev.h
clock.h OMAP: clock: add kerneldoc for structures; move flags closer to structs 2010-07-26 16:34:27 -06:00
clockdomain.h OMAP2+: clockdomains: move clockdomain static data to .c files 2010-12-21 20:01:20 -07:00
common.h OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
cpu.h omap2/3: Update revision identification 2010-10-01 16:35:24 -07:00
display.h OMAP: DSS2: Use dss_features framework on DSS2 code 2010-10-22 23:21:04 +03:00
dma-44xx.h omap4: Add auto-generated irq and dma headers 2010-02-23 14:02:52 -08:00
dma.h OMAP: DMA: Convert DMA library into platform driver 2010-12-20 18:38:31 -08:00
dmtimer.h OMAP: mach-omap2: Fix static declaration warnings 2010-10-08 09:57:40 -07:00
dsp.h omap: add dsp platform device 2010-10-05 12:05:11 -07:00
flash.h omap: convert boards to use physmap-flash 2010-02-15 10:03:32 -08:00
fpga.h omap1: Fix innovator FPGA init for multi-omap 2010-12-20 18:48:16 -08:00
gpio-switch.h
gpio.h omap1: Fix gpio mpuio bank to work for multi-omap for 7xx/15xx/16xx 2010-12-07 16:26:58 -08:00
gpmc-smc91x.h
gpmc-smsc911x.h ARM: OMAP3LOGIC: Add generic smsc911x support when connected to GPMC 2010-09-28 11:39:18 -07:00
gpmc.h omap3 nand: cleanup virtual address usages 2010-08-02 15:30:38 +03:00
hardware.h
hwa742.h
i2c.h OMAP3: hwmod: add I2C hwmods for OMAP3430 2010-11-09 09:29:13 -08:00
io.h OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
iommu2.h
iommu.h OMAP: iommu: create new api to set valid da range 2010-12-15 11:29:10 -06:00
iovmm.h
irda.h
irqs-44xx.h omap4: Add auto-generated irq and dma headers 2010-02-23 14:02:52 -08:00
irqs.h omap1: Use asm_irq_flags for entry-macro.S 2010-12-09 15:49:23 -08:00
keypad.h
l4_3xxx.h OMAP3: hwmod: add I2C hwmods for OMAP3430 2010-11-09 09:29:13 -08:00
lcd_mipid.h
led.h
mailbox.h OMAP: mailbox: add notification support for multiple readers 2010-12-02 05:43:16 -06:00
mcbsp.h Merge branch 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 2010-10-25 13:46:56 -07:00
mcspi.h
memory.h omap2/3/4: Replace orred CONFIG_ARCH_OMAP2/3/4 with CONFIG_ARCH_OMAP2PLUS 2010-02-15 09:27:04 -08:00
menelaus.h omap2: Convert ARCH_OMAP24XX to ARCH_OMAP2 2010-02-15 09:27:01 -08:00
mmc.h Merge branches 'devel-omap1' and 'devel-omap2plus' into omap-for-linus 2010-10-08 10:19:53 -07:00
multi.h omap2/3/4: Fix multi.h when omap3 and omap4 are selected without omap2 2010-05-03 17:21:31 -07:00
mux.h Merge branch 'devel-misc' into omap-for-linus 2010-08-02 14:23:38 +03:00
nand.h omap3 nand: cleanup virtual address usages 2010-08-02 15:30:38 +03:00
nokia-dsi-panel.h OMAP: DSS2: Add Nokia DSI command mode panel configuration struct 2010-08-03 15:18:48 +03:00
omap4-keypad.h Input: omap4-keypad - use platform device helpers 2010-10-13 07:49:25 -07:00
omap7xx.h omap1: Add 7xx clocks and pin muxes for SPI 2010-01-08 10:29:05 -08:00
omap16xx.h omap: Clean the serial port defines 2010-02-15 08:48:53 -08:00
omap24xx.h OMAP2420: CTRL: fix OMAP242X_CTRL_REGADDR macro 2010-10-08 11:40:17 -06:00
omap34xx.h crypto: omap - Updates omap sham device related platform code 2010-05-03 11:10:03 +08:00
omap44xx.h OMAP4: PRM: Remove MPU internal code name and apply PRCM naming convention 2010-05-20 12:31:11 -06:00
omap730.h
omap850.h
omap1510.h
omap_device.h OMAP: omap_device: make all devices a child of a new parent device 2010-09-23 17:14:14 -07:00
omap_hwmod.h OMAP2+: hwmod: fix a warning, add some docs, remove unused fields 2010-12-21 19:55:13 -07:00
omap-alsa.h
omap-pm.h OMAP3: remove OPP interfaces from OMAP PM layer 2010-12-21 14:30:40 -08:00
omap-serial.h omap: serial: Change device name: omap-hsuart -> omap_uart 2010-12-20 17:53:04 -08:00
onenand.h
param.h
powerdomain.h OMAP2+: powerdomains: move powerdomain static data to .c files 2010-12-21 20:01:20 -07:00
prcm.h OMAP4: PRCM: add OMAP4-specific accessor/mutator functions 2010-12-21 21:05:14 -07:00
sdrc.h OMAP: mach-omap2: Fix static declaration warnings 2010-10-08 09:57:40 -07:00
serial.h omap2/3: Fix DEBUG_LL for omap zoom2/3 2010-05-03 17:53:08 -07:00
smp.h ARM: Provide common header for hard_smp_processor_id() 2010-10-04 20:20:45 +01:00
sram.h OMAP2+: use global values for the SRAM PA addresses 2010-12-21 14:45:56 -08:00
system.h omap: pass the reboot command to the boot loader 2010-03-11 14:50:00 -08:00
tc.h
timex.h
uncompress.h Merge branch 'devel-board' into omap-for-linus 2010-12-17 15:14:02 -08:00
usb.h Merge branch 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 2010-10-25 13:46:56 -07:00
vram.h ARM: OMAP: Convert OMAPFB and VRAM SDRAM reservation to LMB 2010-07-27 08:48:23 +01:00
vrfb.h OMAP: DSS2: OMAPFB: Allow FB_OMAP2 to build without VRFB 2010-10-22 23:21:06 +03:00