/* chip_info refers to the data stored in struct sof_dev_desc's chip_info */ #define get_chip_info(sdev)\
((conststruct imx_chip_info *)((sdev)->pdata->desc->chip_info))
/* chip_pdata refers to the data stored in struct imx_common_data's chip_pdata */ #define get_chip_pdata(sdev)\
(((struct imx_common_data *)((sdev)->pdata->hw_pdata))->chip_pdata)
/* to be used alongside IMX_SOF_DEV_DESC() */ #define IMX_SOF_DEV_DESC_NAME(mach_name) sof_of_##mach_name##_desc
/* dai driver entry w/ playback and capture caps. If one direction is missing *thensetthechannelsto0.
*/ #define IMX_SOF_DAI_DRV_ENTRY(dai_name, pb_cmin, pb_cmax, cap_cmin, cap_cmax) \
{ \
.name = dai_name, \
.playback = { \
.channels_min = pb_cmin, \
.channels_max = pb_cmax, \
}, \
.capture = { \
.channels_min = cap_cmin, \
.channels_max = cap_cmax, \
}, \
}
/* use if playback and capture have the same min/max channel count */ #define IMX_SOF_DAI_DRV_ENTRY_BIDIR(dai_name, cmin, cmax)\
IMX_SOF_DAI_DRV_ENTRY(dai_name, cmin, cmax, cmin, cmax)
struct imx_ipc_info { /* true if core is able to write a panic code to the debug box */ bool has_panic_code; /* offset to mailbox in which firmware initially writes FW_READY */ int boot_mbox_offset; /* offset to region at which the mailboxes start */ int window_offset;
};
struct imx_chip_ops { /* called after clocks and PDs are enabled */ int (*probe)(struct snd_sof_dev *sdev); /* used directly by the SOF core */ int (*core_kick)(struct snd_sof_dev *sdev); /* called during suspend()/remove() before clocks are disabled */ int (*core_shutdown)(struct snd_sof_dev *sdev); /* used directly by the SOF core */ int (*core_reset)(struct snd_sof_dev *sdev);
};
struct imx_chip_info { struct imx_ipc_info ipc_info; /* does the chip have a reserved memory region for DMA? */ bool has_dma_reserved; struct imx_memory_info *memory; struct snd_soc_dai_driver *drv; int num_drv; /* optional */ conststruct imx_chip_ops *ops;
};
struct imx_common_data { struct platform_device *ipc_dev; struct imx_dsp_ipc *ipc_handle; /* core may have no clocks */ struct clk_bulk_data *clks; int clk_num; /* core may have no PDs */ struct dev_pm_domain_list *pd_list; void *chip_pdata;
};
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet am 2026-09-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.