clk: tm2: fix pcie A and B clock [1/1]
authorJian Hu <jian.hu@amlogic.com>
Sun, 28 Apr 2019 04:27:39 +0000 (12:27 +0800)
committerJian Hu <jian.hu@amlogic.com>
Sun, 28 Apr 2019 04:27:39 +0000 (12:27 +0800)
PD#SWPL-7855

Problem:
pcie A does not equal 100M when enable alone,
enable pcie A and B together works well.

Solution:
correct pcie A and B clock describetion

Verify:
test passed on tm2 ab3100

Change-Id: I9483efe00cc157c3ff5a9ff4d3a03e0dc50e4fdc
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
drivers/amlogic/clk/tm2/tm2.c

index 529d42d..2ff1dc2 100644 (file)
@@ -79,8 +79,8 @@ static struct clk_gate tm2_pcie01_enable = {
 };
 
 static struct clk_gate tm2_pcie0_gate = {
-       .reg = (void *)HHI_PCIE_PLL_CNTL1,
-       .bit_idx = 28,
+       .reg = (void *)HHI_PCIE_PLL_CNTL5,
+       .bit_idx = 3,
        .lock = &clk_lock,
        .hw.init = &(struct clk_init_data){
                .name = "tm2_pcie0_gate",
@@ -92,8 +92,8 @@ static struct clk_gate tm2_pcie0_gate = {
 };
 
 static struct clk_gate tm2_pcie1_gate = {
-       .reg = (void *)HHI_PCIE_PLL_CNTL5,
-       .bit_idx = 3,
+       .reg = (void *)HHI_PCIE_PLL_CNTL1,
+       .bit_idx = 28,
        .lock = &clk_lock,
        .hw.init = &(struct clk_init_data){
                .name = "tm2_pcie1_gate",