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

pmic_power.c File Reference


Detailed Description

This is the main file of PMIC(mc13783) Power driver.

Definition in file pmic_power.c.

#include <linux/platform_device.h>
#include <linux/ioctl.h>
#include <linux/pmic_status.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <mach/pmic_power.h>
#include "pmic_power_defs.h"
#include <asm/mach-types.h>

Go to the source code of this file.

Defines

#define MC13783_REGCTRL_GPOx_MASK   0x18000

Functions

 EXPORT_SYMBOL (pmic_power_event_unsub)
 EXPORT_SYMBOL (pmic_power_event_sub)
 EXPORT_SYMBOL (pmic_power_get_conf_button)
 EXPORT_SYMBOL (pmic_power_set_conf_button)
 EXPORT_SYMBOL (pmic_power_get_auto_reset_en)
 EXPORT_SYMBOL (pmic_power_set_auto_reset_en)
 EXPORT_SYMBOL (pmic_power_gets_esim_v_state)
 EXPORT_SYMBOL (pmic_power_esim_v_en)
 EXPORT_SYMBOL (pmic_power_get_regen_inv)
 EXPORT_SYMBOL (pmic_power_set_regen_inv)
 EXPORT_SYMBOL (pmic_power_get_regen_assig)
 EXPORT_SYMBOL (pmic_power_set_regen_assig)
 EXPORT_SYMBOL (pmic_power_get_power_mode_sense)
 EXPORT_SYMBOL (pmic_power_gets_vib_pin_state)
 EXPORT_SYMBOL (pmic_power_vib_pin_en)
 EXPORT_SYMBOL (pmic_power_get_bat_det_state)
 EXPORT_SYMBOL (pmic_power_bat_det_en)
 EXPORT_SYMBOL (pmic_power_get_vbkup2_auto_state)
 EXPORT_SYMBOL (pmic_power_vbkup2_auto_en)
 EXPORT_SYMBOL (pmic_power_regulator_get_config)
 EXPORT_SYMBOL (pmic_power_regulator_set_config)
 EXPORT_SYMBOL (pmic_power_regulator_get_voltage)
 EXPORT_SYMBOL (pmic_power_regulator_set_voltage)
 EXPORT_SYMBOL (pmic_power_regulator_off)
 EXPORT_SYMBOL (pmic_power_regulator_on)
 EXPORT_SYMBOL (pmic_power_get_pc_config)
 EXPORT_SYMBOL (pmic_power_set_pc_config)
 EXPORT_SYMBOL (pmic_power_off)
void gpio_power_key_active (void)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("pmic_power driver")
 module_exit (pmic_power_exit)
 MODULE_LICENSE ("GPL")
PMIC_STATUS pmic_power_bat_det_en (bool en)
PMIC_STATUS pmic_power_esim_v_en (bool vesim, bool vmmc1, bool vmmc2)
PMIC_STATUS pmic_power_event (t_pwr_int event, void *callback, bool sub)
PMIC_STATUS pmic_power_event_sub (t_pwr_int event, void *callback)
PMIC_STATUS pmic_power_event_unsub (t_pwr_int event, void *callback)
static void __exit pmic_power_exit (void)
PMIC_STATUS pmic_power_get_auto_reset_en (bool *en)
PMIC_STATUS pmic_power_get_bat_det_state (bool *en)
PMIC_STATUS pmic_power_get_conf_button (t_button bt, bool *sys_rst, int *deb_time)
PMIC_STATUS pmic_power_get_pc_config (t_pc_config *pc_config)
PMIC_STATUS pmic_power_get_power_mode_sense (struct t_p_up_sense *p_up_sense)
PMIC_STATUS pmic_power_get_regen_assig (t_pmic_regulator regulator, bool *en_dis)
PMIC_STATUS pmic_power_get_regen_inv (bool *en_dis)
PMIC_STATUS pmic_power_get_vbkup2_auto_state (bool *en)
PMIC_STATUS pmic_power_gets_esim_v_state (bool *vesim, bool *vmmc1, bool *vmmc2)
PMIC_STATUS pmic_power_gets_vib_pin_state (bool *en)
static int __init pmic_power_init (void)
void pmic_power_key_callback (void)
void pmic_power_off (void)
static int pmic_power_probe (struct platform_device *pdev)
PMIC_STATUS pmic_power_regulator_get_config (t_pmic_regulator regulator, t_regulator_config *config)
PMIC_STATUS pmic_power_regulator_get_lp_mode (t_pmic_regulator regulator, t_regulator_lp_mode *lp_mode)
PMIC_STATUS pmic_power_regulator_get_voltage (t_pmic_regulator regulator, t_regulator_voltage *voltage)
PMIC_STATUS pmic_power_regulator_off (t_pmic_regulator regulator)
PMIC_STATUS pmic_power_regulator_on (t_pmic_regulator regulator)
PMIC_STATUS pmic_power_regulator_set_config (t_pmic_regulator regulator, t_regulator_config *config)
PMIC_STATUS pmic_power_regulator_set_lp_mode (t_pmic_regulator regulator, t_regulator_lp_mode lp_mode)
PMIC_STATUS pmic_power_regulator_set_voltage (t_pmic_regulator regulator, t_regulator_voltage voltage)
static int pmic_power_resume (struct platform_device *pdev)
PMIC_STATUS pmic_power_set_auto_reset_en (bool en)
PMIC_STATUS pmic_power_set_conf_button (t_button bt, bool sys_rst, int deb_time)
PMIC_STATUS pmic_power_set_pc_config (t_pc_config *pc_config)
PMIC_STATUS pmic_power_set_regen_assig (t_pmic_regulator regulator, bool en_dis)
PMIC_STATUS pmic_power_set_regen_inv (bool en_dis)
static int pmic_power_suspend (struct platform_device *pdev, pm_message_t state)
PMIC_STATUS pmic_power_switcher_get_dvs (t_pmic_regulator regulator, t_regulator_voltage *dvs)
PMIC_STATUS pmic_power_switcher_get_dvs_speed (t_pmic_regulator regulator, t_switcher_dvs_speed *speed)
PMIC_STATUS pmic_power_switcher_get_factor (t_pmic_regulator regulator, t_switcher_factor *factor)
PMIC_STATUS pmic_power_switcher_get_mode (t_pmic_regulator regulator, t_regulator_sw_mode *mode, bool stby)
PMIC_STATUS pmic_power_switcher_get_panic_mode (t_pmic_regulator regulator, bool *panic_mode)
PMIC_STATUS pmic_power_switcher_get_softstart (t_pmic_regulator regulator, bool *softstart)
PMIC_STATUS pmic_power_switcher_get_stby (t_pmic_regulator regulator, t_regulator_voltage *stby)
PMIC_STATUS pmic_power_switcher_set_dvs (t_pmic_regulator regulator, t_regulator_voltage dvs)
PMIC_STATUS pmic_power_switcher_set_dvs_speed (t_pmic_regulator regulator, t_switcher_dvs_speed speed)
PMIC_STATUS pmic_power_switcher_set_factor (t_pmic_regulator regulator, t_switcher_factor factor)
PMIC_STATUS pmic_power_switcher_set_mode (t_pmic_regulator regulator, t_regulator_sw_mode mode, bool stby)
PMIC_STATUS pmic_power_switcher_set_panic_mode (t_pmic_regulator regulator, bool panic_mode)
PMIC_STATUS pmic_power_switcher_set_softstart (t_pmic_regulator regulator, bool softstart)
PMIC_STATUS pmic_power_switcher_set_stby (t_pmic_regulator regulator, t_regulator_voltage stby)
PMIC_STATUS pmic_power_vbkup2_auto_en (bool en)
PMIC_STATUS pmic_power_vib_pin_en (bool en)
static irqreturn_t power_key_int (int irq, void *dev_id)
 subsys_initcall_sync (pmic_power_init)

Variables

static struct platform_driver pmic_power_driver_ldm
static bool VBKUP1_EN = false
static bool VBKUP2_EN = false


Generated by  Doxygen 1.6.0   Back to index