Merge "clk: msm: clock-gpu-8998: Program the Droop Detector gfx_pdn"
This commit is contained in:
commit
4cc397ff6d
2 changed files with 10 additions and 0 deletions
|
@ -622,6 +622,7 @@ int msm_gfxcc_8998_probe(struct platform_device *pdev)
|
|||
struct device_node *of_node = pdev->dev.of_node;
|
||||
int rc;
|
||||
struct regulator *reg;
|
||||
u32 regval;
|
||||
bool is_v2 = 0, is_vq = 0;
|
||||
|
||||
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cc_base");
|
||||
|
@ -697,6 +698,14 @@ int msm_gfxcc_8998_probe(struct platform_device *pdev)
|
|||
*/
|
||||
clk_set_flags(&gpucc_gfx3d_clk.c, CLKFLAG_RETAIN_PERIPH);
|
||||
|
||||
/*
|
||||
* Program the droop detector's gfx_pdn to 1'b1 in order to reduce
|
||||
* leakage between the graphics and CX rails.
|
||||
*/
|
||||
regval = readl_relaxed(virt_base_gfx + GPUCC_GPU_DD_WRAP_CTRL);
|
||||
regval |= BIT(0);
|
||||
writel_relaxed(regval, virt_base_gfx + GPUCC_GPU_DD_WRAP_CTRL);
|
||||
|
||||
dev_info(&pdev->dev, "Completed registering all GPU clocks\n");
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -242,6 +242,7 @@
|
|||
#define GPUCC_RBCPR_CBCR 0x01054
|
||||
#define GPU_GX_BCR 0x01090
|
||||
#define GPUCC_GX_DOMAIN_MISC 0x00130
|
||||
#define GPUCC_GPU_DD_WRAP_CTRL 0x00430
|
||||
#define GPUCC_DEBUG_CLK_CTL 0x00120
|
||||
|
||||
#define MMSS_PLL_VOTE_APCS 0x001E0
|
||||
|
|
Loading…
Add table
Reference in a new issue