Merge "clk: qcom: gpucc-cliffs: Add support for freq limiter reset"

This commit is contained in:
qctecmdr 2023-11-08 01:21:06 -08:00 committed by Gerrit - the friendly Code Review server
commit 6b42209175
2 changed files with 5 additions and 0 deletions

View File

@ -580,6 +580,7 @@ static const struct qcom_reset_map gpu_cc_cliffs_resets[] = {
[GPUCC_GPU_CC_GX_BCR] = { 0x9030 },
[GPUCC_GPU_CC_RBCPR_BCR] = { 0x9118 },
[GPUCC_GPU_CC_XO_BCR] = { 0x9000 },
[GPUCC_GPU_CC_FREQUENCY_LIMITER_IRQ_CLEAR] = { 0x9538, 0 },
};
static const struct regmap_config gpu_cc_cliffs_regmap_config = {
@ -626,6 +627,9 @@ static int gpu_cc_cliffs_probe(struct platform_device *pdev)
regmap_update_bits(regmap, 0x9004, BIT(0), BIT(0));
regmap_update_bits(regmap, 0x900c, BIT(0), BIT(0));
/* Enable frequency limiter irq */
regmap_write(regmap, 0x9534, 0x0);
ret = qcom_cc_really_probe(pdev, &gpu_cc_cliffs_desc, regmap);
if (ret) {
dev_err(&pdev->dev, "Failed to register GPU CC clocks\n");

View File

@ -46,5 +46,6 @@
#define GPUCC_GPU_CC_GX_BCR 7
#define GPUCC_GPU_CC_RBCPR_BCR 8
#define GPUCC_GPU_CC_XO_BCR 9
#define GPUCC_GPU_CC_FREQUENCY_LIMITER_IRQ_CLEAR 10
#endif