Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/drivers/mediatek/afe/afe-memif.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ static int memif_get_attribute(struct dma *dma, uint32_t type, uint32_t *value)
*value = 4;
break;
case DMA_ATTR_BUFFER_ADDRESS_ALIGNMENT:
*value = 16;
*value = DCACHE_LINE_SIZE;
break;
case DMA_ATTR_BUFFER_PERIOD_COUNT:
*value = 4;
Expand Down
2 changes: 1 addition & 1 deletion src/platform/mt8196/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define VECTOR_SIZE 0x700
#define SRAM_START (SRAM_BASE + VECTOR_SIZE)

#define DRAM_BASE 0x90000000
#define DRAM_BASE 0x92200000
#define DRAM0_SIZE 0x500000
#define MAILBOX_BASE (DRAM_BASE + DRAM0_SIZE)
#define DSP_SYS_SIZE 0xA00000
Expand Down
7 changes: 3 additions & 4 deletions src/platform/mt8196/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ const struct xthal_MPU_entry __xt_mpu_init_table[] __section(".ResetVector.text"
XTHAL_MPU_ENTRY(0x1a110000, 1, XTHAL_AR_RWXrwx, XTHAL_MEM_DEVICE), // audio
XTHAL_MPU_ENTRY(0x4e100000, 1, XTHAL_AR_RWXrwx, XTHAL_MEM_WRITEBACK), // sram
XTHAL_MPU_ENTRY(0x4e180000, 1, XTHAL_AR_NONE, XTHAL_MEM_DEVICE), // unused
XTHAL_MPU_ENTRY(0x90000000, 1, XTHAL_AR_RWXrwx, XTHAL_MEM_WRITEBACK), // dram
XTHAL_MPU_ENTRY(0x90500000, 1, XTHAL_AR_RWXrwx, XTHAL_MEM_NON_CACHEABLE), // dram
XTHAL_MPU_ENTRY(0x90900000, 1, XTHAL_AR_NONE, XTHAL_MEM_DEVICE), // unused
XTHAL_MPU_ENTRY(0x92200000, 1, XTHAL_AR_RWXrwx, XTHAL_MEM_WRITEBACK), // dram
XTHAL_MPU_ENTRY(0x92700000, 1, XTHAL_AR_RWXrwx, XTHAL_MEM_NON_CACHEABLE), // dram
XTHAL_MPU_ENTRY(0x92b00000, 1, XTHAL_AR_NONE, XTHAL_MEM_DEVICE), // unused
};

const unsigned int __xt_mpu_init_table_size __section(".ResetVector.text") =
Expand Down Expand Up @@ -214,4 +214,3 @@ void platform_wait_for_interrupt(int level)
{
arch_wait_for_interrupt(level);
}

Loading