Skip to content

Commit

Permalink
drivers: intel_adsp_gpdma: Fix typo in reg name
Browse files Browse the repository at this point in the history
The correct short name for Dynamic Clock Gating Disable register is DCGD,
not DGCD.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
  • Loading branch information
serhiy-katsyuba-intel authored and nashif committed Jun 20, 2023
1 parent e59f6a8 commit 6c9a360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/dma/dma_intel_adsp_gpdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#define GPDMA_CTL_OFFSET 0x0004
#define GPDMA_CTL_FDCGB BIT(0)
#define GPDMA_CTL_DGCD BIT(30)
#define GPDMA_CTL_DCGD BIT(30)

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

if (IS_ENABLED(CONFIG_SOC_SERIES_INTEL_ACE)) {
val = sys_read32(reg) | GPDMA_CTL_DGCD;
val = sys_read32(reg) | GPDMA_CTL_DCGD;
} else {
val = GPDMA_CTL_FDCGB;
}
Expand All @@ -261,7 +261,7 @@ static void intel_adsp_gpdma_clock_disable(const struct device *dev)
#ifdef CONFIG_SOC_SERIES_INTEL_ACE
const struct intel_adsp_gpdma_cfg *const dev_cfg = dev->config;
uint32_t reg = dev_cfg->shim + GPDMA_CTL_OFFSET;
uint32_t val = sys_read32(reg) & ~GPDMA_CTL_DGCD;
uint32_t val = sys_read32(reg) & ~GPDMA_CTL_DCGD;

sys_write32(val, reg);
#endif
Expand Down

0 comments on commit 6c9a360

Please sign in to comment.