| /linux/drivers/thermal/ |
| H A D | imx91_thermal.c | 83 static void imx91_tmu_start(struct imx91_tmu *tmu, bool start) in imx91_tmu_start() argument 87 writel_relaxed(val, tmu->base + IMX91_TMU_CTRL1 + REG_SET); in imx91_tmu_start() 90 static void imx91_tmu_enable(struct imx91_tmu *tmu, bool enable) in imx91_tmu_enable() argument 96 writel_relaxed(IMX91_TMU_CTRL1_EN, tmu->base + reg); in imx91_tmu_enable() 111 struct imx91_tmu *tmu = thermal_zone_device_priv(tz); in imx91_tmu_get_temp() local 115 data = readw_relaxed(tmu->base + IMX91_TMU_DATA0); in imx91_tmu_get_temp() 123 struct imx91_tmu *tmu = thermal_zone_device_priv(tz); in imx91_tmu_set_trips() local 129 writel_relaxed(IMX91_TMU_CTRL0_THR1_IE, tmu->base + IMX91_TMU_CTRL0 + REG_CLR); in imx91_tmu_set_trips() 132 writel_relaxed(IMX91_TMU_THR_CTRL01_THR1_MASK, tmu->base + IMX91_TMU_THR_CTRL01 + REG_CLR); in imx91_tmu_set_trips() 135 writel_relaxed(val, tmu->base + IMX91_TMU_THR_CTRL01 + REG_SET); in imx91_tmu_set_trips() [all …]
|
| H A D | qoriq_thermal.c | 70 #define REGS_V2_TMSAR(n) (0x304 + 16 * (n)) /* TMU monitoring 124 * For TMU Rev1: in tmu_get_temp() 132 * For TMU Rev2: in tmu_get_temp() 229 len = of_property_count_u32_elems(np, "fsl,tmu-range"); in qoriq_tmu_calibration() 236 val = of_property_read_u32_array(np, "fsl,tmu-range", data->ttrcr, len); in qoriq_tmu_calibration() 246 calibration = of_get_property(np, "fsl,tmu-calibration", &len); in qoriq_tmu_calibration() 371 qoriq_tmu_init_device(data); /* TMU initialization */ in qoriq_tmu_probe() 373 ret = qoriq_tmu_calibration(dev, data); /* TMU calibration */ in qoriq_tmu_probe() 451 { .compatible = "fsl,qoriq-tmu", .data = &qoriq_tmu_data }, 452 { .compatible = "fsl,imx8mq-tmu", .data = &imx8mq_tmu_data }, [all …]
|
| /linux/drivers/thunderbolt/ |
| H A D | tmu.c | 3 * Thunderbolt Time Management Unit (TMU) support 73 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_set_tmu_mode_params() 81 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_set_tmu_mode_params() 86 sw->tmu.cap + TMU_RTR_CS_15, 1); in tb_switch_set_tmu_mode_params() 100 sw->tmu.cap + TMU_RTR_CS_15, 1); in tb_switch_set_tmu_mode_params() 108 sw->tmu.cap + TMU_RTR_CS_18, 1); in tb_switch_set_tmu_mode_params() 116 sw->tmu.cap + TMU_RTR_CS_18, 1); in tb_switch_set_tmu_mode_params() 128 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_tmu_ucap_is_supported() 141 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_read() 155 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_write() [all …]
|
| /linux/Documentation/driver-api/thermal/ |
| H A D | exynos_thermal.rst | 14 TMU controller Description: 46 TMU(Thermal Management Unit) in Exynos4/5 generates interrupt 64 TMU driver description: 74 TMU configuration data -----> TMU Driver <----> Exynos Core thermal wrapper 78 a) TMU configuration data: 79 This consist of TMU register offsets/bitfields 82 are used to configure the TMU. 83 b) TMU driver: 84 This component initialises the TMU controller and sets different
|
| /linux/drivers/platform/x86/intel/ |
| H A D | bxtwc_tmu.c | 3 * Intel BXT Whiskey Cove PMIC TMU driver 7 * This driver adds TMU (Time Management Unit) support for Intel BXT platform. 8 * It enables the alarm wake-up functionality in the TMU unit of Whiskey Cove 37 /* Read TMU interrupt reg */ in bxt_wcove_tmu_irq_handler() 40 /* clear TMU irq */ in bxt_wcove_tmu_irq_handler() 73 /* Unmask TMU second level Wake & System alarm */ in bxt_wcove_tmu_probe() 86 /* Mask TMU interrupts */ in bxt_wcove_tmu_remove() 135 MODULE_DESCRIPTION("BXT Whiskey Cove TMU Driver");
|
| /linux/drivers/thermal/samsung/ |
| H A D | exynos_tmu.c | 3 * exynos_tmu.c - Samsung Exynos TMU (Thermal Management Unit) 139 * struct exynos_tmu_data : A structure to hold the private data of the TMU 141 * @base: base address of the single instance of the TMU controller. 142 * @base_second: base address of the common registers of the TMU controller. 143 * @irq: irq number of the TMU controller. 148 * @sclk: pointer to the clock structure for accessing the tmu special clk. 161 * @enabled: current status of TMU device 167 * @tmu_initialize: SoC specific TMU initialization method 168 * @tmu_control: SoC specific TMU control method 169 * @tmu_read: SoC specific TMU temperature read method [all …]
|
| /linux/arch/sh/kernel/cpu/ |
| H A D | clock-cpg.c | 60 clk_add_alias("fck", "sh-tmu-sh3.0", "peripheral_clk", NULL); in cpg_clk_init() 61 clk_add_alias("fck", "sh-tmu.0", "peripheral_clk", NULL); in cpg_clk_init() 62 clk_add_alias("fck", "sh-tmu.1", "peripheral_clk", NULL); in cpg_clk_init() 63 clk_add_alias("fck", "sh-tmu.2", "peripheral_clk", NULL); in cpg_clk_init()
|
| /linux/arch/sh/kernel/cpu/sh4a/ |
| H A D | clock-sh7786.c | 155 CLKDEV_ICK_ID("fck", "sh-tmu.0", &mstp_clks[MSTP008]), 156 CLKDEV_ICK_ID("fck", "sh-tmu.1", &mstp_clks[MSTP009]), 157 CLKDEV_ICK_ID("fck", "sh-tmu.2", &mstp_clks[MSTP010]), 158 CLKDEV_ICK_ID("fck", "sh-tmu.3", &mstp_clks[MSTP011]),
|
| H A D | setup-sh7770.c | 228 .name = "sh-tmu", 249 .name = "sh-tmu", 270 .name = "sh-tmu", 354 TMU, DMAC, I2S, SRC, GFX3D, SPI, SCIF, BBDMAC, enumerator 407 INTC_GROUP(TMU, TMU0, TMU1, TMU2, TMU2_TICPI, TMU3, TMU4, TMU5, 425 DMAC, I2C, HUDI, SPDIF, IPI, HAC, TMU, GPIO } },
|
| H A D | clock-sh7734.c | 91 MSTP016, MSTP015, MSTP014, /* TMU / TIMER */ 201 CLKDEV_ICK_ID("fck", "sh-tmu.0", &mstp_clks[MSTP016]), 202 CLKDEV_ICK_ID("fck", "sh-tmu.1", &mstp_clks[MSTP015]), 203 CLKDEV_ICK_ID("fck", "sh-tmu.2", &mstp_clks[MSTP014]),
|
| H A D | clock-sh7757.c | 123 CLKDEV_ICK_ID("fck", "sh-tmu.0", &mstp_clks[MSTP113]), 124 CLKDEV_ICK_ID("fck", "sh-tmu.1", &mstp_clks[MSTP114]),
|
| H A D | clock-shx3.c | 124 CLKDEV_ICK_ID("fck", "sh-tmu.0", &mstp_clks[MSTP008]), 125 CLKDEV_ICK_ID("fck", "sh-tmu.1", &mstp_clks[MSTP009]),
|
| H A D | setup-sh7734.c | 193 /* TMU */ 206 .name = "sh-tmu", 227 .name = "sh-tmu", 248 .name = "sh-tmu",
|
| H A D | clock-sh7785.c | 146 CLKDEV_ICK_ID("fck", "sh-tmu.0", &mstp_clks[MSTP008]), 147 CLKDEV_ICK_ID("fck", "sh-tmu.1", &mstp_clks[MSTP009]),
|
| /linux/arch/powerpc/boot/dts/fsl/ |
| H A D | t1023si-post.dtsi | 365 tmu: tmu@f0000 { label 366 compatible = "fsl,qoriq-tmu"; 369 fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x30061>; 370 fsl,tmu-calibration = 418 thermal-sensors = <&tmu 0>;
|
| H A D | t1040si-post.dtsi | 445 tmu: tmu@f0000 { label 446 compatible = "fsl,qoriq-tmu"; 449 fsl,tmu-range = <0xa0000 0x90026 0x8004a 0x1006a>; 450 fsl,tmu-calibration = 494 thermal-sensors = <&tmu 2>;
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls1043a.dtsi | 160 thermal-sensors = <&tmu 0>; 180 thermal-sensors = <&tmu 1>; 200 thermal-sensors = <&tmu 2>; 220 thermal-sensors = <&tmu 3>; 251 thermal-sensors = <&tmu 4>; 444 tmu: tmu@1f00000 { label 445 compatible = "fsl,qoriq-tmu"; 448 fsl,tmu-range = <0xb0000 0x9002a 0x6004c 0x70062>; 449 fsl,tmu-calibration =
|
| /linux/arch/arm/boot/dts/renesas/ |
| H A D | r8a7778.dtsi | 198 compatible = "renesas,tmu-r8a7778", "renesas,tmu"; 215 compatible = "renesas,tmu-r8a7778", "renesas,tmu"; 232 compatible = "renesas,tmu-r8a7778", "renesas,tmu";
|
| H A D | r8a7779.dtsi | 401 compatible = "renesas,tmu-r8a7779", "renesas,tmu"; 418 compatible = "renesas,tmu-r8a7779", "renesas,tmu"; 435 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
|
| H A D | r8a7792.dtsi | 360 compatible = "renesas,tmu-r8a7792", "renesas,tmu"; 374 compatible = "renesas,tmu-r8a7792", "renesas,tmu"; 389 compatible = "renesas,tmu-r8a7792", "renesas,tmu"; 404 compatible = "renesas,tmu-r8a7792", "renesas,tmu";
|
| H A D | r8a7794.dtsi | 301 compatible = "renesas,tmu-r8a7794", "renesas,tmu"; 315 compatible = "renesas,tmu-r8a7794", "renesas,tmu"; 330 compatible = "renesas,tmu-r8a7794", "renesas,tmu"; 345 compatible = "renesas,tmu-r8a7794", "renesas,tmu";
|
| H A D | r8a77470.dtsi | 245 compatible = "renesas,tmu-r8a77470", "renesas,tmu"; 260 compatible = "renesas,tmu-r8a77470", "renesas,tmu"; 275 compatible = "renesas,tmu-r8a77470", "renesas,tmu";
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos5420.dtsi | 944 tmu_cpu0: tmu@10060000 { 945 compatible = "samsung,exynos5420-tmu"; 953 tmu_cpu1: tmu@10064000 { 954 compatible = "samsung,exynos5420-tmu"; 962 tmu_cpu2: tmu@10068000 { 963 compatible = "samsung,exynos5420-tmu-ext-triminfo"; 971 tmu_cpu3: tmu@1006c000 { 972 compatible = "samsung,exynos5420-tmu-ext-triminfo"; 980 tmu_gpu: tmu@100a0000 { 981 compatible = "samsung,exynos5420-tmu-ext-triminfo";
|
| H A D | exynos4-cpu-thermal.dtsi | 13 thermal-sensors = <&tmu>;
|
| /linux/include/dt-bindings/thermal/ |
| H A D | thermal_exynos.h | 3 * thermal_exynos.h - Samsung Exynos TMU device tree definitions
|