Searched refs:thermal_base (Results 1 – 2 of 2) sorted by relevance
168 void __iomem *thermal_base; member317 val = readl(mt->thermal_base + PTPCORESEL); in mtk_thermal_get_bank()320 writel(val, mt->thermal_base + PTPCORESEL); in mtk_thermal_get_bank()351 raw = readl(mt->thermal_base + conf->msr[i]); in mtk_thermal_bank_temperature()410 writel(TEMP_MONCTL1_PERIOD_UNIT(12), mt->thermal_base + TEMP_MONCTL1); in mtk_thermal_init_bank()418 mt->thermal_base + TEMP_MONCTL2); in mtk_thermal_init_bank()422 mt->thermal_base + TEMP_AHBPOLL); in mtk_thermal_init_bank()425 writel(0x0, mt->thermal_base + TEMP_MSRCTL0); in mtk_thermal_init_bank()428 writel(0xffffffff, mt->thermal_base + TEMP_AHBTO); in mtk_thermal_init_bank()431 writel(0x0, mt->thermal_base + TEMP_MONIDET0); in mtk_thermal_init_bank()[all …]
33 void __iomem *thermal_base; member49 *temp = (readl_relaxed(stdev->thermal_base) & 0x7F) * MD_FACTOR; in thermal_get_temp()65 actual_mask = readl_relaxed(stdev->thermal_base); in spear_thermal_suspend()66 writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base); in spear_thermal_suspend()89 actual_mask = readl_relaxed(stdev->thermal_base); in spear_thermal_resume()90 writel_relaxed(actual_mask | stdev->flags, stdev->thermal_base); in spear_thermal_resume()119 stdev->thermal_base = devm_ioremap_resource(&pdev->dev, res); in spear_thermal_probe()120 if (IS_ERR(stdev->thermal_base)) in spear_thermal_probe()121 return PTR_ERR(stdev->thermal_base); in spear_thermal_probe()136 writel_relaxed(stdev->flags, stdev->thermal_base); in spear_thermal_probe()[all …]