1d2752f4ee
Add R-Car Gen3 PWM driver. Clock diviser is automatically adjusted according to requested period and duty-cycle in order to obtain as much accuracy as possible. Indeed, in order to improve PWM accurancy, the PWM clock has to fit the requested period. So use the given period_cycle to define if the clock as to be adapted. In such case, increase/decrease the clock diviser to adapt the period_cycle and be sure that it fits into the 10 bits counter of the PWM controller. Tested on H3ULCB on pwm0 and pwm4. Signed-off-by: Pierre Marzin <pierre.marzin@iot.bzh>
13 lines
284 B
Plaintext
13 lines
284 B
Plaintext
# Reneas R-Car PWM configuration options
|
|
|
|
# Copyright (c) 2022 IoT.bzh
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config PWM_RCAR
|
|
bool "Renesas R-Car PWM Driver"
|
|
default y
|
|
depends on SOC_FAMILY_RCAR
|
|
depends on DT_HAS_RENESAS_PWM_RCAR_ENABLED
|
|
help
|
|
Enable Renesas R-Car PWM Driver.
|