clk: rockchip: Handle clock tree for rk3288w variant
authorMylène Josserand <mylene.josserand@collabora.com>
Tue, 2 Jun 2020 08:06:43 +0000 (10:06 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 17 Jun 2020 08:52:46 +0000 (10:52 +0200)
commit1627f683636df70fb25358b0a7b39a24e8fce5bf
tree6ca4ad162e21e9911ee7e1931ce1ff86bca9f114
parent7f6ffbb885d147557bdca471c37b7b1204005798
clk: rockchip: Handle clock tree for rk3288w variant

The revision rk3288w has a different clock tree about "hclk_vio"
clock, according to the BSP kernel code.

This patch handles this difference by detecting which device-tree
we are using. If it is a "rockchip,rk3288-cru", let's register
the clock tree as it was before. If the device-tree node is
"rockchip,rk3288w-cru", we will apply the difference with this
version of this SoC.

Noticed that this new device-tree compatible must be handled in
bootloader such as u-boot.

Signed-off-by: Mylène Josserand <mylene.josserand@collabora.com>
Link: https://lore.kernel.org/r/20200602080644.11333-2-mylene.josserand@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-rk3288.c