10 #define TRIMINFO_RELOAD 1
12 #define THERM_TRIP_EN (1 << 12)
15 #define INTEN_RISE1 (1 << 4)
16 #define INTEN_RISE2 (1 << 8)
17 #define INTEN_FALL0 (1 << 16)
18 #define INTEN_FALL1 (1 << 20)
19 #define INTEN_FALL2 (1 << 24)
21 #define TRIM_INFO_MASK 0xff
23 #define INTCLEAR_RISE0 1
24 #define INTCLEAR_RISE1 (1 << 4)
25 #define INTCLEAR_RISE2 (1 << 8)
26 #define INTCLEAR_FALL0 (1 << 16)
27 #define INTCLEAR_FALL1 (1 << 20)
28 #define INTCLEAR_FALL2 (1 << 24)
29 #define INTCLEARALL (INTCLEAR_RISE0 | INTCLEAR_RISE1 | \
30 INTCLEAR_RISE2 | INTCLEAR_FALL0 | \
31 INTCLEAR_FALL1 | INTCLEAR_FALL2)
41 .start_tripping = 105,
42 .hardware_tripping = 110,
44 .efuse_min_value = 40,
46 .efuse_max_value = 100,
69 cur_temp = cur_temp -
info->te1 +
info->dc_value;
119 unsigned int te_temp, con;
120 unsigned int warning_code, trip_code, hwtrip_code;
121 unsigned int cooling_temp;
122 unsigned int rising_value;
149 rising_value = ((warning_code << 8) |
151 (hwtrip_code << 24));
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
#define printk(level,...)
static struct smmstore_params_info info
int tmu_init(struct tmu_info *info)
static void tmu_setup_parameters(struct tmu_info *info)
enum tmu_status_t tmu_monitor(struct tmu_info *info, int *temp)
static int get_cur_temp(struct tmu_info *info)
struct tmu_info exynos5250_tmu_info
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
void power_enable_hw_thermal_trip(void)
unsigned int start_warning
unsigned int hardware_tripping
unsigned int start_tripping
unsigned int efuse_max_value
unsigned int efuse_min_value
struct temperature_params ts
unsigned int triminfo_control
unsigned int threshold_temp_fall
unsigned int current_temp
unsigned int threshold_temp_rise