Skip to content

Commit 30e7613

Browse files
committed
pm_runtime: fix clock gating for SSP 4 & 5
Fixes clock gating switching for SSP 4 and 5. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
1 parent 7996f1a commit 30e7613

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/platform/intel/cavs/pm_runtime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static inline void cavs_pm_runtime_dis_ssp_clk_gating(uint32_t index)
7676
shim_write(SHIM_CLKCTL, shim_read(SHIM_CLKCTL) |
7777
(index < DAI_NUM_SSP_BASE ?
7878
SHIM_CLKCTL_I2SFDCGB(index) :
79-
SHIM_CLKCTL_I2SEFDCGB(index)));
79+
SHIM_CLKCTL_I2SEFDCGB(index - DAI_NUM_SSP_BASE)));
8080

8181
trace_event(TRACE_CLASS_POWER,
8282
"dis-ssp-clk-gating index %d CLKCTL %08x",
@@ -90,7 +90,7 @@ static inline void cavs_pm_runtime_en_ssp_clk_gating(uint32_t index)
9090
shim_write(SHIM_CLKCTL, shim_read(SHIM_CLKCTL) &
9191
~(index < DAI_NUM_SSP_BASE ?
9292
SHIM_CLKCTL_I2SFDCGB(index) :
93-
SHIM_CLKCTL_I2SEFDCGB(index)));
93+
SHIM_CLKCTL_I2SEFDCGB(index - DAI_NUM_SSP_BASE)));
9494

9595
trace_event(TRACE_CLASS_POWER,
9696
"en-ssp-clk-gating index %d CLKCTL %08x",

0 commit comments

Comments
 (0)