]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
clk: rockchip: Make rkpwm a critical clock on rk3288
authorDouglas Anderson <dianders@chromium.org>
Tue, 9 Apr 2019 20:47:06 +0000 (13:47 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 13 Aug 2019 12:11:36 +0000 (14:11 +0200)
commit48842c9b27ce33814999df091382e2bc41948b05
tree925a4e21ebcd9b933e9d705207afed972525292b
parentb89c31a45e90f87f9cc7a85af5a22b0383b1d7cf
clk: rockchip: Make rkpwm a critical clock on rk3288

BugLink: https://bugs.launchpad.net/bugs/1837517
[ Upstream commit dfe7fb21cd9e730230d55a79bc72cf2ece67cdd5 ]

Most rk3288-based boards are derived from the EVB and thus use a PWM
regulator for the logic rail.  However, most rk3288-based boards don't
specify the PWM regulator in their device tree.  We'll deal with that
by making it critical.

NOTE: it's important to make it critical and not just IGNORE_UNUSED
because all PWMs in the system share the same clock.  We don't want
another PWM user to turn the clock on and off and kill the logic rail.

This change is in preparation for actually having the PWMs in the
rk3288 device tree actually point to the proper PWM clock.  Up until
now they've all pointed to the clock for the old IP block and they've
all worked due to the fact that rkpwm was IGNORE_UNUSED and that the
clock rates for both clocks were the same.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/clk/rockchip/clk-rk3288.c