Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
prminst44xx.h File Reference

Go to the source code of this file.

Functions

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)
 
void omap4_prminst_global_warm_sw_reset (void)
 
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)
 

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.