Browse Source

make ls7a dma keep order.

Change-Id: Ic2acc1e6a350943145ac58d1ce9ea43ca421a789
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
master
Chong Qiao 4 years ago
parent
commit
b0af0089c4
  1. 1
      pmon/arch/mips/ls7a/ls7a_define.h
  2. 5
      pmon/arch/mips/ls7a/ls7a_init.S

1
pmon/arch/mips/ls7a/ls7a_define.h

@ -43,6 +43,7 @@
#define TEMP_GMEM_ADDR 0x40000000
#define LS7A_GMEM_TEMP_ADDR (HT1_MEM_BASE_ADDR | TEMP_GMEM_ADDR)
//confbus address
#define CONF_HT_DMA_ORDER 0x414
#define CONF_HT_CLKEN_OFFSET 0x418
#define CONF_HT_ROUTE_OFFSET 0x41c
#define CONF_NB_OFFSET 0x420

5
pmon/arch/mips/ls7a/ls7a_init.S

@ -5,6 +5,11 @@
// DO NOT touch this file!
dli t0, LS7A_CONFBUS_BASE_ADDR
/*0x414: bit 0-18, clear to make each device dma keep order*/
lw t1, CONF_HT_DMA_ORDER(t0)
li t2, ~0x7ffff
and t1, t2
sw t1, CONF_HT_DMA_ORDER(t0)
lw t1, CONF_HT_ROUTE_OFFSET(t0)
li t2, (0xf | (0xf << 16))

Loading…
Cancel
Save