Browse Source

add delay after usb/sata PHY de-reset to fixup the device sometimes access error.

Change-Id: I08d82ef68b260d4ec7fac0d8c34e6c84a5aaec52
master
zhangbaoqi 7 years ago
parent
commit
0dc7b4917d
  1. 35
      pmon/arch/mips/ls7a/ls7a_init.S

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

@ -754,6 +754,13 @@
not t2, t2 not t2, t2
and t1, t1, t2 and t1, t1, t2
sw t1, 0x740(t0) sw t1, 0x740(t0)
//delay a while
li t1, 0x1000000
1:
subu t1, t1, 1
bnez t1, 1b
nop
#endif #endif
//deassert cntl reset //deassert cntl reset
lw t1, (CONF_SB_OFFSET+4)(t0) lw t1, (CONF_SB_OFFSET+4)(t0)
@ -825,6 +832,13 @@
not t2, t2 not t2, t2
and t1, t1, t2 and t1, t1, t2
sw t1, 0x750(t0) sw t1, 0x750(t0)
//delay a while
li t1, 0x1000000
1:
subu t1, t1, 1
bnez t1, 1b
nop
#endif #endif
//deassert cntl reset //deassert cntl reset
lw t1, (CONF_SB_OFFSET+4)(t0) lw t1, (CONF_SB_OFFSET+4)(t0)
@ -896,6 +910,13 @@
not t2, t2 not t2, t2
and t1, t1, t2 and t1, t1, t2
sw t1, 0x760(t0) sw t1, 0x760(t0)
//delay a while
li t1, 0x1000000
1:
subu t1, t1, 1
bnez t1, 1b
nop
#endif #endif
//deassert cntl reset //deassert cntl reset
lw t1, (CONF_SB_OFFSET+4)(t0) lw t1, (CONF_SB_OFFSET+4)(t0)
@ -949,6 +970,13 @@
and t1, t1, t2 and t1, t1, t2
sw t1, (CONF_SB_OFFSET+0)(t0) sw t1, (CONF_SB_OFFSET+0)(t0)
//delay a while
li t1, 0x1000000
1:
subu t1, t1, 1
bnez t1, 1b
nop
//deassert cntl reset //deassert cntl reset
lw t1, (CONF_SB_OFFSET+0)(t0) lw t1, (CONF_SB_OFFSET+0)(t0)
li t2, (1 << 8) li t2, (1 << 8)
@ -979,6 +1007,13 @@
and t1, t1, t2 and t1, t1, t2
sw t1, (CONF_SB_OFFSET+0)(t0) sw t1, (CONF_SB_OFFSET+0)(t0)
//delay a while
li t1, 0x1000000
1:
subu t1, t1, 1
bnez t1, 1b
nop
//deassert cntl reset //deassert cntl reset
lw t1, (CONF_SB_OFFSET+0)(t0) lw t1, (CONF_SB_OFFSET+0)(t0)
li t2, (1 << 12) li t2, (1 << 12)

Loading…
Cancel
Save