clk: tm2: add CLK_IGNORE_UNUSED flag for pcie gates [1/1]
authorJian Hu <jian.hu@amlogic.com>
Sun, 28 Apr 2019 10:54:39 +0000 (18:54 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sun, 5 May 2019 03:53:57 +0000 (20:53 -0700)
commitcb24e1ba5eef6cbe0ebe50fad3c1dca0fd755b8f
treea4b3a03f6a01121816dd7f88662ca1fd144a51e0
parent6a03ffcf5f3b60e593d98b5632222e289e959ef2
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>
drivers/amlogic/clk/tm2/tm2.c