This file contains MC34704 specific PMIC code. More...
Functions | |
int | pmic_write (int reg_nr, const unsigned int reg_val) |
unsigned int | pmic_get_active_events (unsigned int *active_events) |
int | pmic_event_unmask (type_event event) |
int | pmic_event_mask (type_event event) |
static void | pmic_event_task (struct work_struct *work) |
int __devinit | pmic_init_registers (void) |
This file contains MC34704 specific PMIC code.
int pmic_event_mask | ( | type_event | event | ) |
This function sets a bit in mask register of pmic to disable an event IT.
event | the event to be masked |
References pmic_write_reg().
static void pmic_event_task | ( | struct work_struct * | work | ) | [static] |
PMIC event polling task. This task is called periodically to poll for possible MC34704 events (No interrupt supplied by the hardware).
References pmic_event_callback(), and pmic_get_active_events().
int pmic_event_unmask | ( | type_event | event | ) |
This function unsets a bit in mask register of pmic to unmask an event IT.
event | the event to be unmasked |
References pmic_write_reg().
unsigned int pmic_get_active_events | ( | unsigned int * | active_events | ) |
This function reads the interrupt status registers of PMIC and determine the current active events.
active_events | array pointer to be used to return active event numbers. |
References pmic_read(), and pmic_write().
int __devinit pmic_init_registers | ( | void | ) |
int pmic_write | ( | int | reg_nr, | |
const unsigned int | reg_val | |||
) |
This function is called to write a value to the register on PMIC.
reg_num | number of the pmic register to be written | |
reg_val | value to be written |
References mxc_pmic::spi, and spi_rw().
© Freescale Semiconductor, Inc., 2007.
All rights reserved. Freescale Confidential Proprietary NDA Required |
![]() |