intel_adsp: ace20_lnl: dmic: Add new DMIC shims to driver

Add initialization of new DMIC shims to driver for LNL
platform only.

Signed-off-by: Jaroslaw Stelter <Jaroslaw.Stelter@intel.com>
This commit is contained in:
Jaroslaw Stelter 2022-10-21 09:07:41 +02:00 committed by Anas Nashif
parent 3c54d7efc4
commit dc9f7b44fe
2 changed files with 8 additions and 0 deletions

View File

@ -885,6 +885,10 @@ static int dai_dmic_initialize_device(const struct device *dev)
}, \
.reg_base = DT_INST_REG_ADDR_BY_IDX(n, 0), \
.shim_base = DT_INST_PROP(n, shim), \
IF_ENABLED(DT_NODE_EXISTS(DT_NODELABEL(hdamlddmic)), \
(.hdamldmic_base = DT_REG_ADDR(DT_NODELABEL(hdamlddmic)),)) \
IF_ENABLED(DT_NODE_EXISTS(DT_NODELABEL(dmicvss)), \
(.vshim_base = DT_REG_ADDR(DT_NODELABEL(dmicvss)),)) \
.irq = DT_INST_IRQN(n), \
.fifo = \
{ \

View File

@ -562,6 +562,10 @@ struct dai_intel_dmic {
/* hardware parameters */
uint32_t reg_base;
uint32_t shim_base;
#ifdef CONFIG_SOC_INTEL_ACE20_LNL
uint32_t hdamldmic_base;
uint32_t vshim_base;
#endif
int irq;
uint32_t flags;
};