clk: meson: gxbb: fix wrong clock for SARADC/SANA
authorYixun Lan <yixun.lan@amlogic.com>
Tue, 7 Nov 2017 14:12:23 +0000 (22:12 +0800)
committerJerome Brunet <jbrunet@baylibre.com>
Mon, 27 Nov 2017 13:33:38 +0000 (14:33 +0100)
commit75eccf5ed83250c0aeaeeb76f7288254ac0a87b4
tree7603ed91f756fa2b47e2e6f05b64b7a0e35c7f9c
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
clk: meson: gxbb: fix wrong clock for SARADC/SANA

According to the datasheet, in Meson-GXBB/GXL series,
The clock gate bit for SARADC is HHI_GCLK_MPEG2 bit[22],
while clock gate bit for SANA is HHI_GCLK_MPEG0 bit[10].

Test passed at gxl-s905x-p212 board.

The following published datasheets are wrong and should be updated
[1] GXBB v1.1.4
[2] GXL v0.3_20170314

Fixes: 738f66d3211d ("clk: gxbb: add AmLogic GXBB clk controller driver")
Tested-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/gxbb.c