|
Linux Kernel
3.7.1
|
#include <linux/init.h>#include <linux/module.h>#include <linux/device.h>#include <linux/interrupt.h>#include <linux/delay.h>#include <linux/slab.h>#include <linux/platform_device.h>#include <linux/power_supply.h>#include <linux/completion.h>#include <linux/workqueue.h>#include <linux/mfd/abx500/ab8500.h>#include <linux/mfd/abx500.h>#include <linux/mfd/abx500/ab8500-bm.h>#include <linux/mfd/abx500/ab8500-gpadc.h>#include <linux/jiffies.h>Go to the source code of this file.
Data Structures | |
| struct | ab8500_btemp_interrupts |
| struct | ab8500_btemp_events |
| struct | ab8500_btemp_ranges |
| struct | ab8500_btemp |
Macros | |
| #define | VTVOUT_V 1800 |
| #define | BTEMP_THERMAL_LOW_LIMIT -10 |
| #define | BTEMP_THERMAL_MED_LIMIT 0 |
| #define | BTEMP_THERMAL_HIGH_LIMIT_52 52 |
| #define | BTEMP_THERMAL_HIGH_LIMIT_57 57 |
| #define | BTEMP_THERMAL_HIGH_LIMIT_62 62 |
| #define | BTEMP_BATCTRL_CURR_SRC_7UA 7 |
| #define | BTEMP_BATCTRL_CURR_SRC_20UA 20 |
| #define | to_ab8500_btemp_device_info(x) |
: name of the interrupt | |
struct ab8500_btemp_interrupts - ab8500 interrupts | |
| #define | ab8500_btemp_suspend NULL |
| #define | ab8500_btemp_resume NULL |
| struct ab8500_btemp * | ab8500_btemp_get (void) |
| int | ab8500_btemp_get_batctrl_temp (struct ab8500_btemp *btemp) |
| subsys_initcall_sync (ab8500_btemp_init) | |
| module_exit (ab8500_btemp_exit) | |
| MODULE_LICENSE ("GPL v2") | |
| MODULE_AUTHOR ("Johan Palsson, Karl Komierowski, Arun R Murthy") | |
| MODULE_ALIAS ("platform:ab8500-btemp") | |
| MODULE_DESCRIPTION ("AB8500 battery temperature driver") | |
| #define ab8500_btemp_resume NULL |
Definition at line 938 of file ab8500_btemp.c.
| #define ab8500_btemp_suspend NULL |
Definition at line 937 of file ab8500_btemp.c.
| #define BTEMP_BATCTRL_CURR_SRC_20UA 20 |
Definition at line 38 of file ab8500_btemp.c.
| #define BTEMP_BATCTRL_CURR_SRC_7UA 7 |
Definition at line 37 of file ab8500_btemp.c.
| #define BTEMP_THERMAL_HIGH_LIMIT_52 52 |
Definition at line 33 of file ab8500_btemp.c.
| #define BTEMP_THERMAL_HIGH_LIMIT_57 57 |
Definition at line 34 of file ab8500_btemp.c.
| #define BTEMP_THERMAL_HIGH_LIMIT_62 62 |
Definition at line 35 of file ab8500_btemp.c.
| #define BTEMP_THERMAL_LOW_LIMIT -10 |
Definition at line 31 of file ab8500_btemp.c.
| #define BTEMP_THERMAL_MED_LIMIT 0 |
Definition at line 32 of file ab8500_btemp.c.
| #define to_ab8500_btemp_device_info | ( | x | ) |
Definition at line 40 of file ab8500_btemp.c.
| #define VTVOUT_V 1800 |
Definition at line 29 of file ab8500_btemp.c.
|
read |
ab8500_btemp_get() - returns a reference to the primary AB8500 BTEMP (i.e. the first BTEMP in the instance list)
Definition at line 119 of file ab8500_btemp.c.
| int ab8500_btemp_get_batctrl_temp | ( | struct ab8500_btemp * | btemp | ) |
ab8500_btemp_get_batctrl_temp() - get the temperature : pointer to the btemp structure
Returns the batctrl temperature in millidegrees
Definition at line 773 of file ab8500_btemp.c.
| MODULE_ALIAS | ( | "platform:ab8500-btemp" | ) |
| MODULE_AUTHOR | ( | "Johan | Palsson, |
| Karl | Komierowski, | ||
| Arun R Murthy" | |||
| ) |
| MODULE_DESCRIPTION | ( | "AB8500 battery temperature driver" | ) |
| module_exit | ( | ab8500_btemp_exit | ) |
| MODULE_LICENSE | ( | "GPL v2" | ) |
| subsys_initcall_sync | ( | ab8500_btemp_init | ) |
1.8.2