mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-16 12:57:49 +07:00
bfin-dma: only use MDMA3 on bf609
Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
This commit is contained in:
parent
a75b3c06c1
commit
e70f466067
@ -45,7 +45,7 @@ static int __init blackfin_dma_init(void)
|
|||||||
atomic_set(&dma_ch[i].chan_status, 0);
|
atomic_set(&dma_ch[i].chan_status, 0);
|
||||||
dma_ch[i].regs = dma_io_base_addr[i];
|
dma_ch[i].regs = dma_io_base_addr[i];
|
||||||
}
|
}
|
||||||
#ifdef CH_MEM_STREAM3_SRC
|
#if defined(CH_MEM_STREAM3_SRC) && defined(CONFIG_BF60x)
|
||||||
/* Mark MEMDMA Channel 3 as requested since we're using it internally */
|
/* Mark MEMDMA Channel 3 as requested since we're using it internally */
|
||||||
request_dma(CH_MEM_STREAM3_DEST, "Blackfin dma_memcpy");
|
request_dma(CH_MEM_STREAM3_DEST, "Blackfin dma_memcpy");
|
||||||
request_dma(CH_MEM_STREAM3_SRC, "Blackfin dma_memcpy");
|
request_dma(CH_MEM_STREAM3_SRC, "Blackfin dma_memcpy");
|
||||||
@ -361,7 +361,7 @@ void __init early_dma_memcpy_done(void)
|
|||||||
__builtin_bfin_ssync();
|
__builtin_bfin_ssync();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CH_MEM_STREAM3_SRC
|
#if defined(CH_MEM_STREAM3_SRC) && defined(CONFIG_BF60x)
|
||||||
#define bfin_read_MDMA_S_CONFIG bfin_read_MDMA_S3_CONFIG
|
#define bfin_read_MDMA_S_CONFIG bfin_read_MDMA_S3_CONFIG
|
||||||
#define bfin_write_MDMA_S_CONFIG bfin_write_MDMA_S3_CONFIG
|
#define bfin_write_MDMA_S_CONFIG bfin_write_MDMA_S3_CONFIG
|
||||||
#define bfin_write_MDMA_S_START_ADDR bfin_write_MDMA_S3_START_ADDR
|
#define bfin_write_MDMA_S_START_ADDR bfin_write_MDMA_S3_START_ADDR
|
||||||
|
Loading…
Reference in New Issue
Block a user