mirror of https://gitee.com/openkylin/linux.git
clk: qcom: mmcc-msm8998: Add hardware clockgating registers to some clks
Hardware clock gating is supported on some of the clocks declared in there: ignoring that it does exist may lead to unstabilities on some firmwares. Add the HWCG registers where applicable to stop potential crashes. This was verified on a smartphone shipped with a recent MSM8998 firmware, which will experience random crashes without this change. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> Link: https://lore.kernel.org/r/20210114221059.483390-9-angelogioacchino.delregno@somainline.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
292f75ecff
commit
fa92f3b093
|
@ -1211,6 +1211,8 @@ static struct clk_rcg2 vfe1_clk_src = {
|
|||
|
||||
static struct clk_branch misc_ahb_clk = {
|
||||
.halt_reg = 0x328,
|
||||
.hwcg_reg = 0x328,
|
||||
.hwcg_bit = 1,
|
||||
.clkr = {
|
||||
.enable_reg = 0x328,
|
||||
.enable_mask = BIT(0),
|
||||
|
@ -1241,6 +1243,8 @@ static struct clk_branch video_core_clk = {
|
|||
|
||||
static struct clk_branch video_ahb_clk = {
|
||||
.halt_reg = 0x1030,
|
||||
.hwcg_reg = 0x1030,
|
||||
.hwcg_bit = 1,
|
||||
.clkr = {
|
||||
.enable_reg = 0x1030,
|
||||
.enable_mask = BIT(0),
|
||||
|
@ -1315,6 +1319,8 @@ static struct clk_branch video_subcore1_clk = {
|
|||
|
||||
static struct clk_branch mdss_ahb_clk = {
|
||||
.halt_reg = 0x2308,
|
||||
.hwcg_reg = 0x2308,
|
||||
.hwcg_bit = 1,
|
||||
.clkr = {
|
||||
.enable_reg = 0x2308,
|
||||
.enable_mask = BIT(0),
|
||||
|
@ -2496,6 +2502,8 @@ static struct clk_branch mnoc_ahb_clk = {
|
|||
|
||||
static struct clk_branch bimc_smmu_ahb_clk = {
|
||||
.halt_reg = 0xe004,
|
||||
.hwcg_reg = 0xe004,
|
||||
.hwcg_bit = 1,
|
||||
.clkr = {
|
||||
.enable_reg = 0xe004,
|
||||
.enable_mask = BIT(0),
|
||||
|
@ -2511,6 +2519,8 @@ static struct clk_branch bimc_smmu_ahb_clk = {
|
|||
|
||||
static struct clk_branch bimc_smmu_axi_clk = {
|
||||
.halt_reg = 0xe008,
|
||||
.hwcg_reg = 0xe008,
|
||||
.hwcg_bit = 1,
|
||||
.clkr = {
|
||||
.enable_reg = 0xe008,
|
||||
.enable_mask = BIT(0),
|
||||
|
|
Loading…
Reference in New Issue