clk: tm2: add CLK_IGNORE_UNUSED flag for pcie gates [1/1]

PD#SWPL-7855

Problem:
pcie A does not work when enable alone

---hcsl_r_exen[bit29]---pcie A gate [bit3]
                     |
                     ---pcie B gate [bit28]

bit29/bit28: HHI_PCIE0_PLL_CNTL1
bit3: HHI_PCIE0_PLL_CNTL5

clk core will disable unused clock, So
CLK_IGNORE_UNUSED flag is necessary for
the three gates to avoid closing.

Solution:
add CLK_IGNORE_UNUSED flag for pcie gates

Verify:
test passed on tm2 ab31

Change-Id: I1121c75ab8fb847ec2ba1f7a0975619b36b0938e
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
This commit is contained in:
Jian Hu
2019-04-28 18:54:39 +08:00
committed by Jianxin Pan
parent 6a03ffcf5f
commit cb24e1ba5e

View File

@@ -28,7 +28,7 @@
#include "tm2.h"
static const struct pll_rate_table tm2_pcie_pll_rate_table[] = {
PLL_RATE(100000000, 100, 1, 6),
PLL_RATE(100000000, 200, 1, 12),
{ /* sentinel */ },
};
@@ -74,7 +74,7 @@ static struct clk_gate tm2_pcie01_enable = {
.ops = &clk_gate_ops,
.parent_names = (const char *[]){ "pcie_pll" },
.num_parents = 1,
.flags = CLK_SET_RATE_PARENT,
.flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
},
};
@@ -87,7 +87,7 @@ static struct clk_gate tm2_pcie0_gate = {
.ops = &clk_gate_ops,
.parent_names = (const char *[]){ "tm2_pcie01" },
.num_parents = 1,
.flags = CLK_SET_RATE_PARENT,
.flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
},
};
@@ -100,7 +100,7 @@ static struct clk_gate tm2_pcie1_gate = {
.ops = &clk_gate_ops,
.parent_names = (const char *[]){ "tm2_pcie01" },
.num_parents = 1,
.flags = CLK_SET_RATE_PARENT,
.flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
},
};