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

pmic_light.c File Reference


Detailed Description

This is the main file of PMIC(mc13783) Light and Backlight driver.

Definition in file pmic_light.c.

#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/pmic_light.h>
#include <linux/pmic_status.h>
#include "pmic_light_defs.h"

Go to the source code of this file.

Defines

#define NB_LIGHT_REG   6

Functions

 EXPORT_SYMBOL (pmic_bklit_gets_boost_mode)
 EXPORT_SYMBOL (pmic_bklit_config_boost_mode)
 EXPORT_SYMBOL (pmic_bklit_get_boost_mode)
 EXPORT_SYMBOL (pmic_bklit_set_boost_mode)
 EXPORT_SYMBOL (pmic_tcled_disable_audio_modulation)
 EXPORT_SYMBOL (pmic_tcled_enable_audio_modulation)
 EXPORT_SYMBOL (pmic_tcled_disable_half_current)
 EXPORT_SYMBOL (pmic_tcled_enable_half_current)
 EXPORT_SYMBOL (pmic_tcled_disable_edge_slow)
 EXPORT_SYMBOL (pmic_tcled_enable_edge_slow)
 EXPORT_SYMBOL (pmic_tcled_fun_triode_off)
 EXPORT_SYMBOL (pmic_tcled_fun_triode_on)
 EXPORT_SYMBOL (pmic_tcled_get_fun_rampdown)
 EXPORT_SYMBOL (pmic_tcled_fun_rampdown)
 EXPORT_SYMBOL (pmic_tcled_get_fun_rampup)
 EXPORT_SYMBOL (pmic_tcled_fun_rampup)
 EXPORT_SYMBOL (pmic_tcled_fun_strobe)
 EXPORT_SYMBOL (pmic_tcled_fun_chasinglightspattern)
 EXPORT_SYMBOL (pmic_tcled_fun_blendedbowtie)
 EXPORT_SYMBOL (pmic_tcled_fun_sawramps)
 EXPORT_SYMBOL (pmic_tcled_fun_blendedramps)
 EXPORT_SYMBOL (pmic_tcled_fun_get_dutycycle)
 EXPORT_SYMBOL (pmic_tcled_fun_set_dutycycle)
 EXPORT_SYMBOL (pmic_tcled_fun_get_cycletime)
 EXPORT_SYMBOL (pmic_tcled_fun_set_cycletime)
 EXPORT_SYMBOL (pmic_tcled_fun_get_current)
 EXPORT_SYMBOL (pmic_tcled_fun_set_current)
 EXPORT_SYMBOL (pmic_tcled_ind_get_blink_pattern)
 EXPORT_SYMBOL (pmic_tcled_ind_set_blink_pattern)
 EXPORT_SYMBOL (pmic_tcled_ind_get_current)
 EXPORT_SYMBOL (pmic_tcled_ind_set_current)
 EXPORT_SYMBOL (pmic_tcled_get_mode)
 EXPORT_SYMBOL (pmic_tcled_disable)
 EXPORT_SYMBOL (pmic_tcled_enable)
 EXPORT_SYMBOL (pmic_bklit_set_strobemode)
 EXPORT_SYMBOL (pmic_bklit_get_edge_slow)
 EXPORT_SYMBOL (pmic_bklit_disable_edge_slow)
 EXPORT_SYMBOL (pmic_bklit_enable_edge_slow)
 EXPORT_SYMBOL (pmic_bklit_off_rampdown)
 EXPORT_SYMBOL (pmic_bklit_rampdown)
 EXPORT_SYMBOL (pmic_bklit_off_rampup)
 EXPORT_SYMBOL (pmic_bklit_rampup)
 EXPORT_SYMBOL (pmic_bklit_get_mode)
 EXPORT_SYMBOL (pmic_bklit_set_mode)
 EXPORT_SYMBOL (pmic_bklit_get_cycle_time)
 EXPORT_SYMBOL (pmic_bklit_set_cycle_time)
 EXPORT_SYMBOL (pmic_bklit_get_dutycycle)
 EXPORT_SYMBOL (pmic_bklit_set_dutycycle)
 EXPORT_SYMBOL (pmic_bklit_get_current)
 EXPORT_SYMBOL (pmic_bklit_set_current)
 EXPORT_SYMBOL (pmic_bklit_master_disable)
 EXPORT_SYMBOL (pmic_bklit_master_enable)
 EXPORT_SYMBOL (pmic_bklit_tcled_master_disable)
 EXPORT_SYMBOL (pmic_bklit_tcled_master_enable)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("PMIC_LIGHT")
 module_exit (pmic_light_exit)
 MODULE_LICENSE ("GPL")
PMIC_STATUS pmic_bklit_config_boost_mode (unsigned int abms, unsigned int abr)
PMIC_STATUS pmic_bklit_disable_edge_slow (void)
PMIC_STATUS pmic_bklit_enable_edge_slow (void)
PMIC_STATUS pmic_bklit_get_boost_mode (bool *en_dis)
PMIC_STATUS pmic_bklit_get_current (t_bklit_channel channel, unsigned char *level)
PMIC_STATUS pmic_bklit_get_cycle_time (unsigned char *period)
PMIC_STATUS pmic_bklit_get_dutycycle (t_bklit_channel channel, unsigned char *dc)
PMIC_STATUS pmic_bklit_get_edge_slow (bool *edge)
PMIC_STATUS pmic_bklit_get_mode (t_bklit_channel channel, t_bklit_mode *mode)
PMIC_STATUS pmic_bklit_gets_boost_mode (unsigned int *abms, unsigned int *abr)
PMIC_STATUS pmic_bklit_master_disable (void)
PMIC_STATUS pmic_bklit_master_enable (void)
PMIC_STATUS pmic_bklit_off_rampdown (t_bklit_channel channel)
PMIC_STATUS pmic_bklit_off_rampup (t_bklit_channel channel)
PMIC_STATUS pmic_bklit_rampdown (t_bklit_channel channel)
PMIC_STATUS pmic_bklit_rampup (t_bklit_channel channel)
PMIC_STATUS pmic_bklit_set_boost_mode (bool en_dis)
PMIC_STATUS pmic_bklit_set_current (t_bklit_channel channel, unsigned char level)
PMIC_STATUS pmic_bklit_set_cycle_time (unsigned char period)
PMIC_STATUS pmic_bklit_set_dutycycle (t_bklit_channel channel, unsigned char dc)
PMIC_STATUS pmic_bklit_set_mode (t_bklit_channel channel, t_bklit_mode mode)
PMIC_STATUS pmic_bklit_set_strobemode (t_bklit_channel channel, t_bklit_strobe_mode mode)
PMIC_STATUS pmic_bklit_tcled_master_disable (void)
PMIC_STATUS pmic_bklit_tcled_master_enable (void)
static void __exit pmic_light_exit (void)
static int __init pmic_light_init (void)
int pmic_light_init_reg (void)
static int pmic_light_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
static int pmic_light_open (struct inode *inode, struct file *file)
static int pmic_light_probe (struct platform_device *pdev)
static int pmic_light_release (struct inode *inode, struct file *file)
static int pmic_light_remove (struct platform_device *pdev)
static int pmic_light_resume (struct platform_device *pdev)
static int pmic_light_suspend (struct platform_device *dev, pm_message_t state)
PMIC_STATUS pmic_tcled_disable (t_funlight_bank bank)
PMIC_STATUS pmic_tcled_disable_audio_modulation (void)
PMIC_STATUS pmic_tcled_disable_edge_slow (void)
PMIC_STATUS pmic_tcled_disable_half_current (void)
PMIC_STATUS pmic_tcled_enable (t_tcled_mode mode, t_funlight_bank bank)
PMIC_STATUS pmic_tcled_enable_audio_modulation (t_led_channel channel, t_aud_path path, t_aud_gain gain, bool lpf_bypass)
PMIC_STATUS pmic_tcled_enable_edge_slow (void)
PMIC_STATUS pmic_tcled_enable_half_current (void)
PMIC_STATUS pmic_tcled_fun_blendedbowtie (t_funlight_bank bank, t_tcled_fun_speed speed)
PMIC_STATUS pmic_tcled_fun_blendedramps (t_funlight_bank bank, t_tcled_fun_speed speed)
PMIC_STATUS pmic_tcled_fun_chasinglightspattern (t_funlight_bank bank, t_chaselight_pattern pattern, t_tcled_fun_speed speed)
PMIC_STATUS pmic_tcled_fun_get_current (t_funlight_bank bank, t_funlight_channel channel, t_tcled_cur_level *level)
PMIC_STATUS pmic_tcled_fun_get_cycletime (t_funlight_bank bank, t_tcled_fun_cycle_time *ct)
PMIC_STATUS pmic_tcled_fun_get_dutycycle (t_funlight_bank bank, t_funlight_channel channel, unsigned char *dc)
PMIC_STATUS pmic_tcled_fun_rampdown (t_funlight_bank bank, t_funlight_channel channel, bool rampdown)
PMIC_STATUS pmic_tcled_fun_rampup (t_funlight_bank bank, t_funlight_channel channel, bool rampup)
PMIC_STATUS pmic_tcled_fun_sawramps (t_funlight_bank bank, t_tcled_fun_speed speed)
PMIC_STATUS pmic_tcled_fun_set_current (t_funlight_bank bank, t_funlight_channel channel, t_tcled_cur_level level)
PMIC_STATUS pmic_tcled_fun_set_cycletime (t_funlight_bank bank, t_tcled_fun_cycle_time ct)
PMIC_STATUS pmic_tcled_fun_set_dutycycle (t_funlight_bank bank, t_funlight_channel channel, unsigned char dc)
PMIC_STATUS pmic_tcled_fun_strobe (t_funlight_bank bank, t_funlight_channel channel, t_tcled_fun_strobe_speed speed)
PMIC_STATUS pmic_tcled_fun_triode_off (t_funlight_bank bank, t_funlight_channel channel)
PMIC_STATUS pmic_tcled_fun_triode_on (t_funlight_bank bank, t_funlight_channel channel)
PMIC_STATUS pmic_tcled_get_fun_rampdown (t_funlight_bank bank, t_funlight_channel channel, bool *rampdown)
PMIC_STATUS pmic_tcled_get_fun_rampup (t_funlight_bank bank, t_funlight_channel channel, bool *rampup)
PMIC_STATUS pmic_tcled_get_mode (t_tcled_mode *mode, t_funlight_bank bank)
PMIC_STATUS pmic_tcled_ind_get_blink_pattern (t_ind_channel channel, t_tcled_ind_blink_pattern *pattern, bool *skip, t_funlight_bank bank)
PMIC_STATUS pmic_tcled_ind_get_current (t_ind_channel channel, t_tcled_cur_level *level, t_funlight_bank bank)
PMIC_STATUS pmic_tcled_ind_set_blink_pattern (t_ind_channel channel, t_tcled_ind_blink_pattern pattern, bool skip, t_funlight_bank bank)
PMIC_STATUS pmic_tcled_ind_set_current (t_ind_channel channel, t_tcled_cur_level level, t_funlight_bank bank)
 subsys_initcall (pmic_light_init)

Variables

static struct class * pmic_light_class
static struct platform_driver pmic_light_driver_ldm
static struct file_operations pmic_light_fops
static int pmic_light_major
static int suspend_flag = 0
static wait_queue_head_t suspendq
static int swait = 0


Generated by  Doxygen 1.6.0   Back to index