Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
prminst44xx.c File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/io.h>
#include "iomap.h"
#include "common.h"
#include "prcm-common.h"
#include "prm44xx.h"
#include "prminst44xx.h"
#include "prm-regbits-44xx.h"
#include "prcm44xx.h"
#include "prcm_mpu44xx.h"

Go to the source code of this file.

Macros

#define OMAP4_RST_CTRL_ST_OFFSET   4
 

Functions

void omap_prm_base_init (void)
 
u32 omap4_prminst_read_inst_reg (u8 part, s16 inst, u16 idx)
 
void omap4_prminst_write_inst_reg (u32 val, u8 part, s16 inst, u16 idx)
 
u32 omap4_prminst_rmw_inst_reg_bits (u32 mask, u32 bits, u8 part, s16 inst, u16 idx)
 
int omap4_prminst_is_hardreset_asserted (u8 shift, u8 part, s16 inst, u16 rstctrl_offs)
 
int omap4_prminst_assert_hardreset (u8 shift, u8 part, s16 inst, u16 rstctrl_offs)
 
int omap4_prminst_deassert_hardreset (u8 shift, u8 part, s16 inst, u16 rstctrl_offs)
 
void omap4_prminst_global_warm_sw_reset (void)
 

Macro Definition Documentation

#define OMAP4_RST_CTRL_ST_OFFSET   4

Definition at line 78 of file prminst44xx.c.

Function Documentation

int omap4_prminst_assert_hardreset ( u8  shift,
u8  part,
s16  inst,
u16  rstctrl_offs 
)

omap4_prminst_assert_hardreset - assert the HW reset line of a submodule : RM_RSTCTRL register address for this module : register bit shift corresponding to the reset line to assert

Some IPs like dsp, ipu 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 114 of file prminst44xx.c.

int omap4_prminst_deassert_hardreset ( u8  shift,
u8  part,
s16  inst,
u16  rstctrl_offs 
)

omap4_prminst_deassert_hardreset - deassert a submodule hardreset line and wait : RM_RSTCTRL register address for this module : register bit shift corresponding to the reset line to deassert

Some IPs like dsp, ipu 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 139 of file prminst44xx.c.

void omap4_prminst_global_warm_sw_reset ( void  )

Definition at line 165 of file prminst44xx.c.

int omap4_prminst_is_hardreset_asserted ( u8  shift,
u8  part,
s16  inst,
u16  rstctrl_offs 
)

omap4_prminst_is_hardreset_asserted - read the HW reset line state of submodules contained in the hwmod module : RM_RSTCTRL register address for this module : 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 upon parameter error.

Definition at line 90 of file prminst44xx.c.

u32 omap4_prminst_read_inst_reg ( u8  part,
s16  inst,
u16  idx 
)

Definition at line 43 of file prminst44xx.c.

u32 omap4_prminst_rmw_inst_reg_bits ( u32  mask,
u32  bits,
u8  part,
s16  inst,
u16  idx 
)

Definition at line 61 of file prminst44xx.c.

void omap4_prminst_write_inst_reg ( u32  val,
u8  part,
s16  inst,
u16  idx 
)

Definition at line 52 of file prminst44xx.c.

void omap_prm_base_init ( void  )

omap_prm_base_init - Populates the prm partitions

Populates the base addresses of the _prm_bases array used for read/write of prm module registers.

Definition at line 36 of file prminst44xx.c.