Home
last modified time | relevance | path

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

/linux/drivers/hwmon/
H A Daspeed-pwm-tacho.c175 int pwm_port; member
244 enum pwm_port { PWMA, PWMB, PWMC, PWMD, PWME, PWMF, PWMG, PWMH }; enum
402 static void aspeed_set_pwm_port_enable(struct regmap *regmap, u8 pwm_port, in aspeed_set_pwm_port_enable() argument
405 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_enable()
406 pwm_port_params[pwm_port].pwm_en, in aspeed_set_pwm_port_enable()
407 enable ? pwm_port_params[pwm_port].pwm_en : 0); in aspeed_set_pwm_port_enable()
411 u8 pwm_port, u8 type) in aspeed_set_pwm_port_type() argument
413 u32 reg_value = (type & 0x1) << pwm_port_params[pwm_port].type_part1; in aspeed_set_pwm_port_type()
415 reg_value |= (type & 0x2) << pwm_port_params[pwm_port].type_part2; in aspeed_set_pwm_port_type()
417 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_type()
[all …]
H A Dnpcm750-pwm-fan.c189 int pwm_port; member
827 ret = npcm7xx_pwm_config_set(cdev->data, cdev->pwm_port, in npcm7xx_pwm_cz_set_cur_state()
842 u32 pwm_port, u8 num_levels) in npcm7xx_create_pwm_cooling() argument
864 pwm_port); in npcm7xx_create_pwm_cooling()
872 cdev->pwm_port = pwm_port; in npcm7xx_create_pwm_cooling()
874 data->cdev[pwm_port] = cdev; in npcm7xx_create_pwm_cooling()
884 u32 pwm_port; in npcm7xx_en_pwm_fan() local
888 ret = of_property_read_u32(child, "reg", &pwm_port); in npcm7xx_en_pwm_fan()
892 data->pwm_present[pwm_port] = true; in npcm7xx_en_pwm_fan()
893 ret = npcm7xx_pwm_config_set(data, pwm_port, in npcm7xx_en_pwm_fan()
[all …]