Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <plat/prcm.h>
#include "soc.h"
#include "common.h"
#include "vp.h"
#include "prm2xxx_3xxx.h"
#include "cm2xxx_3xxx.h"
#include "prm-regbits-24xx.h"
#include "prm-regbits-34xx.h"
Go to the source code of this file.
Data Structures | |
struct | omap3_vp |
Macros | |
#define | MAX_VP_ID ARRAY_SIZE(omap3_vp); |
#define MAX_VP_ID ARRAY_SIZE(omap3_vp); |
Definition at line 200 of file prm2xxx_3xxx.c.
omap2_prm_assert_hardreset - assert the HW reset line of a submodule : PRM submodule base (e.g. CORE_MOD) : register bit shift corresponding to the reset line to assert
Some IPs like dsp or iva contain processors that require an HW reset line to be asserted / deasserted in order to fully enable the IP. These modules may have multiple hard-reset lines that reset different 'submodules' inside the IP block. This function will place the submodule into reset. Returns 0 upon success or -EINVAL upon an argument error.
Definition at line 126 of file prm2xxx_3xxx.c.
Definition at line 89 of file prm2xxx_3xxx.c.
omap2_prm_deassert_hardreset - deassert a submodule hardreset line and wait : PRM submodule base (e.g. CORE_MOD) : register bit shift corresponding to the reset line to deassert : register bit shift for the status of the deasserted submodule
Some IPs like dsp or iva contain processors that require an HW reset line to be asserted / deasserted in order to fully enable the IP. These modules may have multiple hard-reset lines that reset different 'submodules' inside the IP block. This function will take the submodule out of reset and wait until the PRCM indicates that the reset has completed before returning. Returns 0 upon success or -EINVAL upon an argument error, -EEXIST if the submodule was already out of reset, or -EBUSY if the submodule did not exit reset promptly.
Definition at line 154 of file prm2xxx_3xxx.c.
omap2_prm_is_hardreset_asserted - read the HW reset line state of submodules contained in the hwmod module : PRM submodule base (e.g. CORE_MOD) : register bit shift corresponding to the reset line to check
Returns 1 if the (sub)module hardreset line is currently asserted, 0 if the (sub)module hardreset line is not currently asserted, or -EINVAL if called while running on a non-OMAP2/3 chip.
Definition at line 105 of file prm2xxx_3xxx.c.
Definition at line 73 of file prm2xxx_3xxx.c.
Definition at line 49 of file prm2xxx_3xxx.c.
Definition at line 60 of file prm2xxx_3xxx.c.
Definition at line 84 of file prm2xxx_3xxx.c.
Definition at line 54 of file prm2xxx_3xxx.c.
Definition at line 220 of file prm2xxx_3xxx.c.
Definition at line 230 of file prm2xxx_3xxx.c.
Definition at line 225 of file prm2xxx_3xxx.c.
Definition at line 202 of file prm2xxx_3xxx.c.
Definition at line 212 of file prm2xxx_3xxx.c.
omap3xxx_prm_ocp_barrier - force buffered MPU writes to the PRM to complete
Force any buffered writes to the PRM IP block to complete. Needed by the PRM IRQ handler, which reads and writes directly to the IP block, to avoid race conditions after acknowledging or clearing IRQ bits. No return value.
Definition at line 262 of file prm2xxx_3xxx.c.
omap3xxx_prm_read_pending_irqs - read pending PRM MPU IRQs into : ptr to a u32, preallocated by caller
Read PRM_IRQSTATUS_MPU bits, AND'ed with the currently-enabled PRM MPU IRQs, and store the result into the u32 pointed to by . No return value.
Definition at line 243 of file prm2xxx_3xxx.c.
omap3xxx_prm_reconfigure_io_chain - clear latches and reconfigure I/O chain
Clear any previously-latched I/O wakeup events and ensure that the I/O wakeup gates are aligned with the current mux settings. Works by asserting WUCLKIN, waiting for WUCLKOUT to be asserted, and then deasserting WUCLKIN and clearing the ST_IO_CHAIN WKST bit. No return value.
Definition at line 313 of file prm2xxx_3xxx.c.
omap3xxx_prm_restore_irqen - set PRM_IRQENABLE_MPU register from args : ptr to a u32 array of IRQENABLE bits saved previously
Restore the PRM_IRQENABLE_MPU register from . Intended to be used in the PRM interrupt handler resume callback to restore values saved by omap3xxx_prm_save_and_clear_irqen(). No OCP barrier should be needed here; any pending PRM interrupts will fire once the writes reach the PRM. No return value.
Definition at line 298 of file prm2xxx_3xxx.c.
omap3xxx_prm_save_and_clear_irqen - save/clear PRM_IRQENABLE_MPU reg : ptr to a u32 array to save IRQENABLE bits
Save the PRM_IRQENABLE_MPU register to . must be allocated by the caller. Intended to be used in the PRM interrupt handler suspend callback. The OCP barrier is needed to ensure the write to disable PRM interrupts reaches the PRM before returning; otherwise, spurious interrupts might occur. No return value.
Definition at line 278 of file prm2xxx_3xxx.c.
subsys_initcall | ( | omap3xxx_prcm_init | ) |