pwm: sifive: Enable clk only after period check in .apply()
For the period check and the initial calculations of register values there is no hardware access needed. So delay enabling the clk a bit to simplify the code flow a bit. Signed-off-by:Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Tested-by:
Emil Renner Berthing <emil.renner.berthing@canonical.com> Signed-off-by:
Thierry Reding <thierry.reding@gmail.com>
Showing
Please register or sign in to comment