• Home
  • Raw
  • Download

Lines Matching refs:pwm_port

174 	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()
417 pwm_port_params[pwm_port].type_mask, reg_value); in aspeed_set_pwm_port_type()
421 u8 pwm_port, u8 rising, in aspeed_set_pwm_port_duty_rising_falling() argument
425 pwm_port_params[pwm_port].duty_ctrl_rise_point); in aspeed_set_pwm_port_duty_rising_falling()
427 pwm_port_params[pwm_port].duty_ctrl_fall_point); in aspeed_set_pwm_port_duty_rising_falling()
429 regmap_update_bits(regmap, pwm_port_params[pwm_port].duty_ctrl_reg, in aspeed_set_pwm_port_duty_rising_falling()
430 pwm_port_params[pwm_port].duty_ctrl_rise_fall_mask, in aspeed_set_pwm_port_duty_rising_falling()
735 u8 pwm_port) in aspeed_create_pwm_port() argument
737 aspeed_set_pwm_port_enable(priv->regmap, pwm_port, true); in aspeed_create_pwm_port()
738 priv->pwm_present[pwm_port] = true; in aspeed_create_pwm_port()
740 priv->pwm_port_type[pwm_port] = TYPEM; in aspeed_create_pwm_port()
741 aspeed_set_pwm_port_type(priv->regmap, pwm_port, TYPEM); in aspeed_create_pwm_port()
743 priv->pwm_port_fan_ctrl[pwm_port] = INIT_FAN_CTRL; in aspeed_create_pwm_port()
744 aspeed_set_pwm_port_fan_ctrl(priv, pwm_port, INIT_FAN_CTRL); in aspeed_create_pwm_port()
795 cdev->priv->pwm_port_fan_ctrl[cdev->pwm_port] = in aspeed_pwm_cz_set_cur_state()
797 aspeed_set_pwm_port_fan_ctrl(cdev->priv, cdev->pwm_port, in aspeed_pwm_cz_set_cur_state()
812 u32 pwm_port, u8 num_levels) in aspeed_create_pwm_cooling() argument
834 snprintf(cdev->name, MAX_CDEV_NAME_LEN, "%pOFn%d", child, pwm_port); in aspeed_create_pwm_cooling()
842 cdev->pwm_port = pwm_port; in aspeed_create_pwm_cooling()
844 priv->cdev[pwm_port] = cdev; in aspeed_create_pwm_cooling()
854 u32 pwm_port; in aspeed_create_fan() local
857 ret = of_property_read_u32(child, "reg", &pwm_port); in aspeed_create_fan()
860 if (pwm_port >= ARRAY_SIZE(pwm_port_params)) in aspeed_create_fan()
862 aspeed_create_pwm_port(priv, (u8)pwm_port); in aspeed_create_fan()
867 ret = aspeed_create_pwm_cooling(dev, child, priv, pwm_port, in aspeed_create_fan()
884 aspeed_create_fan_tach_channel(priv, fan_tach_ch, count, pwm_port); in aspeed_create_fan()