Home
last modified time | relevance | path

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

/linux/drivers/hwmon/
H A Daspeed-g6-pwm-tach.c90 #define TACH_ASPEED_CTRL(ch) (((ch) * 0x10) + 0x08) macro
276 writel(readl(priv->base + TACH_ASPEED_CTRL(tach_ch)) | in aspeed_tach_ch_enable()
278 priv->base + TACH_ASPEED_CTRL(tach_ch)); in aspeed_tach_ch_enable()
280 writel(readl(priv->base + TACH_ASPEED_CTRL(tach_ch)) & in aspeed_tach_ch_enable()
282 priv->base + TACH_ASPEED_CTRL(tach_ch)); in aspeed_tach_ch_enable()
326 reg_val = readl(priv->base + TACH_ASPEED_CTRL(channel)); in aspeed_tach_hwmon_read()
349 reg_val = readl(priv->base + TACH_ASPEED_CTRL(channel)); in aspeed_tach_hwmon_write()
353 writel(reg_val, priv->base + TACH_ASPEED_CTRL(channel)); in aspeed_tach_hwmon_write()
412 val = readl(priv->base + TACH_ASPEED_CTRL(ch)); in aspeed_present_fan_tach()
420 writel(val, priv->base + TACH_ASPEED_CTRL(ch)); in aspeed_present_fan_tach()