Skip to content

Commit

Permalink
imx93_a55: include: cleanup: Remove unused definitions
Browse files Browse the repository at this point in the history
With the transition to the native Zephyr drivers and the
timer domain, some definitions from the headers found in
the src/platform/imx93_a55/include hierarchy are no longer
needed. As such, this commit removes them.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 committed Feb 1, 2024
1 parent a981309 commit 3ae68ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
13 changes: 1 addition & 12 deletions src/platform/imx93_a55/include/platform/lib/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,7 @@
#ifndef __PLATFORM_LIB_DMA_H__
#define __PLATFORM_LIB_DMA_H__

/* i.MX93 uses dummy DMA and EDMA */
#define PLATFORM_NUM_DMACS 2

#define DMA_ID_EDMA2 0
#define DMA_ID_HOST 1

/* TODO: this is already defined with EDMA2_CHAN_MAX */
#define PLATFORM_MAX_DMA_CHAN 64

/* TODO: required by Zephyr DMA domain to work */
#define dma_chan_irq_name(dma, chan) dma_irq_name(dma)
#define dma_chan_irq(dma, chan) ((int *)(dma)->plat_data.drv_plat_data)[chan]
/* TODO: remove me whenever possible */

#endif /* __PLATFORM_LIB_DMA_H__ */

Expand Down
7 changes: 0 additions & 7 deletions src/platform/imx93_a55/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@
/* SOF uses A side of the WAKEUPMIX MU */
#define MU_BASE 0x42430000ULL

/* SOF uses EDMA2 (a.k.a EDMA4 in the TRM) */
#define EDMA2_BASE 0x42010000
#define EDMA2_CHAN_SIZE 0x8000

/* WM8962 is connected to SAI3 */
#define SAI3_BASE 0x42660000

static inline void *platform_shared_get(void *ptr, int bytes)
{
return ptr;
Expand Down

0 comments on commit 3ae68ab

Please sign in to comment.