#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/mfd/da903x.h>
#include <linux/slab.h>
Go to the source code of this file.
|
int | da903x_register_notifier (struct device *dev, struct notifier_block *nb, unsigned int events) |
|
| EXPORT_SYMBOL_GPL (da903x_register_notifier) |
|
int | da903x_unregister_notifier (struct device *dev, struct notifier_block *nb, unsigned int events) |
|
| EXPORT_SYMBOL_GPL (da903x_unregister_notifier) |
|
int | da903x_write (struct device *dev, int reg, uint8_t val) |
|
| EXPORT_SYMBOL_GPL (da903x_write) |
|
int | da903x_writes (struct device *dev, int reg, int len, uint8_t *val) |
|
| EXPORT_SYMBOL_GPL (da903x_writes) |
|
int | da903x_read (struct device *dev, int reg, uint8_t *val) |
|
| EXPORT_SYMBOL_GPL (da903x_read) |
|
int | da903x_reads (struct device *dev, int reg, int len, uint8_t *val) |
|
| EXPORT_SYMBOL_GPL (da903x_reads) |
|
int | da903x_set_bits (struct device *dev, int reg, uint8_t bit_mask) |
|
| EXPORT_SYMBOL_GPL (da903x_set_bits) |
|
int | da903x_clr_bits (struct device *dev, int reg, uint8_t bit_mask) |
|
| EXPORT_SYMBOL_GPL (da903x_clr_bits) |
|
int | da903x_update (struct device *dev, int reg, uint8_t val, uint8_t mask) |
|
| EXPORT_SYMBOL_GPL (da903x_update) |
|
int | da903x_query_status (struct device *dev, unsigned int sbits) |
|
| EXPORT_SYMBOL (da903x_query_status) |
|
| MODULE_DEVICE_TABLE (i2c, da903x_id_table) |
|
| subsys_initcall (da903x_init) |
|
| module_exit (da903x_exit) |
|
| MODULE_DESCRIPTION ("PMIC Driver for Dialog Semiconductor DA9034") |
|
| MODULE_AUTHOR ("Eric Miao <[email protected]>""Mike Rapoport <[email protected]>") |
|
| MODULE_LICENSE ("GPL") |
|
#define DA9030_CHIP_ID 0x00 |
#define DA9030_EVENT_A 0x01 |
#define DA9030_EVENT_B 0x02 |
#define DA9030_EVENT_C 0x03 |
#define DA9030_FAULT_LOG 0x0a |
#define DA9030_IRQ_MASK_A 0x05 |
#define DA9030_IRQ_MASK_B 0x06 |
#define DA9030_IRQ_MASK_C 0x07 |
#define DA9030_STATUS 0x04 |
#define DA9030_SYS_CTRL_A 0x08 |
#define DA9030_SYS_CTRL_B 0x09 |
#define DA9034_CHIP_ID 0x00 |
#define DA9034_EVENT_A 0x01 |
#define DA9034_EVENT_B 0x02 |
#define DA9034_EVENT_C 0x03 |
#define DA9034_EVENT_D 0x04 |
#define DA9034_FAULT_LOG 0x0d |
#define DA9034_IRQ_MASK_A 0x07 |
#define DA9034_IRQ_MASK_B 0x08 |
#define DA9034_IRQ_MASK_C 0x09 |
#define DA9034_IRQ_MASK_D 0x0a |
#define DA9034_STATUS_A 0x05 |
#define DA9034_STATUS_B 0x06 |
#define DA9034_SYS_CTRL_A 0x0b |
#define DA9034_SYS_CTRL_B 0x0c |
MODULE_DESCRIPTION |
( |
"PMIC Driver for Dialog Semiconductor DA9034" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
da903x_id_table |
|
|
) |
| |
module_exit |
( |
da903x_exit |
| ) |
|
subsys_initcall |
( |
da903x_init |
| ) |
|