* Data are ready to be read after 628 usec from POWERDOWN signal
* (PDN) = 1
*/
- *temp = (readl(stdev->thermal_base) & 0x7F) * MD_FACTOR;
+ *temp = (readl_relaxed(stdev->thermal_base) & 0x7F) * MD_FACTOR;
return 0;
}
unsigned int actual_mask = 0;
/* Disable SPEAr Thermal Sensor */
- actual_mask = readl(stdev->thermal_base);
- writel(actual_mask & ~stdev->flags, stdev->thermal_base);
+ actual_mask = readl_relaxed(stdev->thermal_base);
+ writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base);
clk_disable(stdev->clk);
dev_info(dev, "Suspended.\n");
}
/* Enable SPEAr Thermal Sensor */
- actual_mask = readl(stdev->thermal_base);
- writel(actual_mask | stdev->flags, stdev->thermal_base);
+ actual_mask = readl_relaxed(stdev->thermal_base);
+ writel_relaxed(actual_mask | stdev->flags, stdev->thermal_base);
dev_info(dev, "Resumed.\n");
}
stdev->flags = pdata->thermal_flags;
- writel(stdev->flags, stdev->thermal_base);
+ writel_relaxed(stdev->flags, stdev->thermal_base);
spear_thermal = thermal_zone_device_register("spear_thermal", 0,
stdev, &ops, 0, 0, 0, 0);
platform_set_drvdata(pdev, NULL);
/* Disable SPEAr Thermal Sensor */
- actual_mask = readl(stdev->thermal_base);
- writel(actual_mask & ~stdev->flags, stdev->thermal_base);
+ actual_mask = readl_relaxed(stdev->thermal_base);
+ writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base);
clk_disable(stdev->clk);
clk_put(stdev->clk);