Skip to content

Commit 6c9a360

Browse files
serhiy-katsyuba-intelnashif
authored andcommitted
drivers: intel_adsp_gpdma: Fix typo in reg name
The correct short name for Dynamic Clock Gating Disable register is DCGD, not DGCD. Signed-off-by: Serhiy Katsyuba <[email protected]>
1 parent e59f6a8 commit 6c9a360

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/dma/dma_intel_adsp_gpdma.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define GPDMA_CTL_OFFSET 0x0004
1313
#define GPDMA_CTL_FDCGB BIT(0)
14-
#define GPDMA_CTL_DGCD BIT(30)
14+
#define GPDMA_CTL_DCGD BIT(30)
1515

1616
/* TODO make device tree defined? */
1717
#define GPDMA_CHLLPC_OFFSET(channel) (0x0010 + channel*0x10)
@@ -247,7 +247,7 @@ static void intel_adsp_gpdma_clock_enable(const struct device *dev)
247247
uint32_t val;
248248

249249
if (IS_ENABLED(CONFIG_SOC_SERIES_INTEL_ACE)) {
250-
val = sys_read32(reg) | GPDMA_CTL_DGCD;
250+
val = sys_read32(reg) | GPDMA_CTL_DCGD;
251251
} else {
252252
val = GPDMA_CTL_FDCGB;
253253
}
@@ -261,7 +261,7 @@ static void intel_adsp_gpdma_clock_disable(const struct device *dev)
261261
#ifdef CONFIG_SOC_SERIES_INTEL_ACE
262262
const struct intel_adsp_gpdma_cfg *const dev_cfg = dev->config;
263263
uint32_t reg = dev_cfg->shim + GPDMA_CTL_OFFSET;
264-
uint32_t val = sys_read32(reg) & ~GPDMA_CTL_DGCD;
264+
uint32_t val = sys_read32(reg) & ~GPDMA_CTL_DCGD;
265265

266266
sys_write32(val, reg);
267267
#endif

0 commit comments

Comments
 (0)