diff options
author | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-06-17 15:33:31 +0200 |
---|---|---|
committer | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-09-27 20:57:23 +0200 |
commit | a1a5511b287099c75e2118912ff087b88e9762b6 (patch) | |
tree | e826bfe84a7cd8bc01cf1bc1e89815b36e699728 | |
parent | d56fb5f89b1501dd7922c1c6d3c97f963df7a4af (diff) |
rk3368: grf: Switch PWM to RK_PWM.
The RK3368's GRF has the bit 'pwm_sel' in GRF_SOC_CON15,
which defines the active PWM controller.
By default this is the DW_PWM block.
Contrary to that the DTSI only lists the RK_PWM block.
The effect of that is, that PWM does not work as expected on the RK3368.
Although the PWM counter registers shows that the PWM controller is
working as expected, there is no PWM output on the corresponding PWM pin.
This patch switches the PWM source to the RK_PWM block during bootup
with the effect, that the RK_PWM block can be used (as specified in the
DTSI).
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
-rw-r--r-- | drivers/soc/rockchip/grf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/rockchip/grf.c b/drivers/soc/rockchip/grf.c index 5705f5c5bdcf..dba3380c1c20 100644 --- a/drivers/soc/rockchip/grf.c +++ b/drivers/soc/rockchip/grf.c @@ -119,6 +119,7 @@ static const struct rockchip_grf_info rk3308_grf __initconst = { static const struct rockchip_grf_value rk3368_defaults[] __initconst = { { "jtag switching", RK3368_GRF_SOC_CON15, HIWORD_UPDATE(0, 1, 13) }, + { "pwm switching", RK3368_GRF_SOC_CON15, HIWORD_UPDATE(1, 1, 12) }, }; static const struct rockchip_grf_info rk3368_grf __initconst = { |