Skip to content

Commit

Permalink
Merge pull request #480 from tlauda/topic/ssp-pm-fix
Browse files Browse the repository at this point in the history
pm_runtime: fix clock gating for SSP 4 & 5
  • Loading branch information
lgirdwood authored Oct 11, 2018
2 parents 12ecadc + 30e7613 commit cc3fb1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/intel/cavs/pm_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static inline void cavs_pm_runtime_dis_ssp_clk_gating(uint32_t index)
shim_write(SHIM_CLKCTL, shim_read(SHIM_CLKCTL) |
(index < DAI_NUM_SSP_BASE ?
SHIM_CLKCTL_I2SFDCGB(index) :
SHIM_CLKCTL_I2SEFDCGB(index)));
SHIM_CLKCTL_I2SEFDCGB(index - DAI_NUM_SSP_BASE)));

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

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

0 comments on commit cc3fb1e

Please sign in to comment.