Home
last modified time | relevance | path

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

/drivers/hwmon/
Daspeed-pwm-tacho.c174 int pwm_port; member
243 enum pwm_port { PWMA, PWMB, PWMC, PWMD, PWME, PWMF, PWMG, PWMH }; enum
401 static void aspeed_set_pwm_port_enable(struct regmap *regmap, u8 pwm_port, in aspeed_set_pwm_port_enable() argument
404 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_enable()
405 pwm_port_params[pwm_port].pwm_en, in aspeed_set_pwm_port_enable()
406 enable ? pwm_port_params[pwm_port].pwm_en : 0); in aspeed_set_pwm_port_enable()
410 u8 pwm_port, u8 type) in aspeed_set_pwm_port_type() argument
412 u32 reg_value = (type & 0x1) << pwm_port_params[pwm_port].type_part1; in aspeed_set_pwm_port_type()
414 reg_value |= (type & 0x2) << pwm_port_params[pwm_port].type_part2; in aspeed_set_pwm_port_type()
416 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_type()
[all …]
Dnpcm750-pwm-fan.c185 int pwm_port; member
810 ret = npcm7xx_pwm_config_set(cdev->data, cdev->pwm_port, in npcm7xx_pwm_cz_set_cur_state()
825 u32 pwm_port, u8 num_levels) in npcm7xx_create_pwm_cooling() argument
847 pwm_port); in npcm7xx_create_pwm_cooling()
855 cdev->pwm_port = pwm_port; in npcm7xx_create_pwm_cooling()
857 data->cdev[pwm_port] = cdev; in npcm7xx_create_pwm_cooling()
867 u32 pwm_port; in npcm7xx_en_pwm_fan() local
871 ret = of_property_read_u32(child, "reg", &pwm_port); in npcm7xx_en_pwm_fan()
875 data->pwm_present[pwm_port] = true; in npcm7xx_en_pwm_fan()
876 ret = npcm7xx_pwm_config_set(data, pwm_port, in npcm7xx_en_pwm_fan()
[all …]