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

int pmic_init_registers ( void   ) 

This function initializes the PMIC registers.

Returns:
None

Definition at line 141 of file mc13783.c.

References pmic_write().

Referenced by pmic_probe().

{
      CHECK_ERROR(pmic_write(REG_INTERRUPT_MASK_0, MXC_PMIC_FRAME_MASK));
      CHECK_ERROR(pmic_write(REG_INTERRUPT_MASK_1, MXC_PMIC_FRAME_MASK));
      CHECK_ERROR(pmic_write(REG_INTERRUPT_STATUS_0, MXC_PMIC_FRAME_MASK));
      CHECK_ERROR(pmic_write(REG_INTERRUPT_STATUS_1, MXC_PMIC_FRAME_MASK));
      return PMIC_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index