clk: mediatek: Add configurable pcw_chg_reg to mtk_pll_data
authorWeiyi Lu <weiyi.lu@mediatek.com>
Tue, 5 Mar 2019 05:05:44 +0000 (13:05 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 11 Apr 2019 20:20:16 +0000 (13:20 -0700)
commit23fe31dedb7b1836cc23666afc1a9c67ed7de775
tree24ba1d4b58213f552c8679fff0278fb261da5db4
parentd90240bc073eccec5fffa80e7038460350c6f073
clk: mediatek: Add configurable pcw_chg_reg to mtk_pll_data

In previous MediaTek PLL design, it assumes the pcw change control
is always on the CON1 register.
However, the pcw change bit on MT8183 was moved onto CON0 because
the the PCW length of audio PLLs are extended to 32-bit.
Add configurable pcw_chg_reg to set the pcw change control register
address or using the default control register CON1 if without
setting in pll data.

Signed-off-by: Weiyi Lu <weiyi.lu@mediatek.com>
Reviewed-by: James Liao <jamesjj.liao@mediatek.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mtk.h
drivers/clk/mediatek/clk-pll.c