| .. | .. |
|---|
| 335 | 335 | return IRQ_NONE; |
|---|
| 336 | 336 | if ((val & PWM_CH_POL(id)) == 0) { |
|---|
| 337 | 337 | temp_hpr = readl_relaxed(ddata->base + PWM_REG_HPR); |
|---|
| 338 | | - DBG("hpr=%d\n", temp_hpr); |
|---|
| 338 | + writel_relaxed(0, ddata->base + PWM_REG_HPR); |
|---|
| 339 | 339 | temp_lpr = readl_relaxed(ddata->base + PWM_REG_LPR); |
|---|
| 340 | + writel_relaxed(0, ddata->base + PWM_REG_LPR); |
|---|
| 341 | + DBG("hpr=%d\n", temp_hpr); |
|---|
| 340 | 342 | DBG("lpr=%d\n", temp_lpr); |
|---|
| 343 | + |
|---|
| 341 | 344 | temp_period = ddata->pwm_freq_nstime * temp_lpr / 1000; |
|---|
| 342 | 345 | if (temp_period > RK_PWM_TIME_BIT0_MIN) { |
|---|
| 343 | 346 | ddata->period = ddata->temp_period |
|---|