Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

void mxc_ccm_modify_reg ( void *  reg_offset,
unsigned int  mask,
unsigned int  data 
)

This function is called to modify the contents of a CCM_MCU register

Parameters:
reg_offset the CCM_MCU register that will read
mask the mask to be used to clear the bits that are to be modified
data the data that should be written to the register

Definition at line 69 of file mxc_pm.c.

References flags.

Referenced by mxc_pm_lowpower(), and mxc_pm_pllscale().

{
      unsigned long flags;
      unsigned long reg;

      spin_lock_irqsave(&mxc_crm_lock, flags);
      reg = __raw_readl(reg_offset);
      reg = (reg & (~mask)) | data;
      __raw_writel(reg, reg_offset);
      spin_unlock_irqrestore(&mxc_crm_lock, flags);
}


Generated by  Doxygen 1.6.0   Back to index