Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pwm/
H A Dpwm-microchip-core.c366 mutex_lock(&mchp_core_pwm->lock); in mchp_core_pwm_apply()
372 mutex_unlock(&mchp_core_pwm->lock); in mchp_core_pwm_apply()
385 mutex_lock(&mchp_core_pwm->lock); in mchp_core_pwm_get_state()
455 mchp_core_pwm = devm_kzalloc(&pdev->dev, sizeof(*mchp_core_pwm), GFP_KERNEL); in mchp_core_pwm_probe()
456 if (!mchp_core_pwm) in mchp_core_pwm_probe()
460 if (IS_ERR(mchp_core_pwm->base)) in mchp_core_pwm_probe()
464 if (IS_ERR(mchp_core_pwm->clk)) in mchp_core_pwm_probe()
472 mutex_init(&mchp_core_pwm->lock); in mchp_core_pwm_probe()
476 mchp_core_pwm->chip.npwm = 16; in mchp_core_pwm_probe()
478 mchp_core_pwm->channel_enabled = readb_relaxed(mchp_core_pwm->base + MCHPCOREPWM_EN(0)); in mchp_core_pwm_probe()
[all …]