Home
last modified time | relevance | path

Searched refs:tsen_cfg (Results 1 – 3 of 3) sorted by relevance

/arm-trusted-firmware-2.8.0/drivers/marvell/
A Dthermal.c13 int marvell_thermal_init(struct tsen_config *tsen_cfg) in marvell_thermal_init() argument
15 if (tsen_cfg->tsen_ready == 1) { in marvell_thermal_init()
20 if (tsen_cfg->ptr_tsen_probe == NULL) { in marvell_thermal_init()
25 if (tsen_cfg->ptr_tsen_probe(tsen_cfg)) { in marvell_thermal_init()
35 int marvell_thermal_read(struct tsen_config *tsen_cfg, int *temp) in marvell_thermal_read() argument
42 if (tsen_cfg->ptr_tsen_read == NULL || in marvell_thermal_read()
43 tsen_cfg->tsen_ready == 0) { in marvell_thermal_read()
48 if (tsen_cfg->ptr_tsen_read(tsen_cfg, temp)) { in marvell_thermal_read()
/arm-trusted-firmware-2.8.0/plat/marvell/armada/a8k/common/
A Dplat_thermal.c43 static int ext_tsen_probe(struct tsen_config *tsen_cfg) in ext_tsen_probe() argument
48 if (tsen_cfg == NULL && tsen_cfg->regs_base == NULL) { in ext_tsen_probe()
52 base = (struct tsen_regs *)tsen_cfg->regs_base; in ext_tsen_probe()
76 tsen_cfg->tsen_ready = 1; in ext_tsen_probe()
88 if (tsen_cfg == NULL && !tsen_cfg->tsen_ready) { in ext_tsen_read()
92 base = (struct tsen_regs *)tsen_cfg->regs_base; in ext_tsen_read()
106 if (tsen_cfg->tsen_divisor == 0) { in ext_tsen_read()
111 *temp = ((tsen_cfg->tsen_gain * ((int)reg)) + in ext_tsen_read()
112 tsen_cfg->tsen_offset) / tsen_cfg->tsen_divisor; in ext_tsen_read()
117 static struct tsen_config tsen_cfg = { variable
[all …]
/arm-trusted-firmware-2.8.0/include/drivers/marvell/
A Dthermal.h27 int marvell_thermal_init(struct tsen_config *tsen_cfg);
28 int marvell_thermal_read(struct tsen_config *tsen_cfg, int *temp);

Completed in 5 milliseconds