Browse Source

LS3A7a: fix ls3a7a unused port setup when 3a multi chip, only one cpu connect 7a, only one 7a ht has clock.

If cpu1 ht1 not connected with 7a, and cpu1 ht1 does not has clk, we can not route ununsed cpu unused ht access
to cpu1's ht1, now route cpu1 unused ht1 address to scache.

Change-Id: I7a63f6bb0c4fb6507c7f809c854b0c6e82bae2c0
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 5 years ago
parent
commit
d3c58861a8
  1. 8
      Targets/Bonito3a3000_7a/Bonito/loongson3_fixup.S

8
Targets/Bonito3a3000_7a/Bonito/loongson3_fixup.S

@ -848,14 +848,22 @@ reset_ht0:
sd t0, 0x28(t2) sd t0, 0x28(t2)
dli t0, 0x00001c0000000000 dli t0, 0x00001c0000000000
sd t0, 0x68(t2) sd t0, 0x68(t2)
#if defined(MULTI_CHIP) && !defined(LS7A_2WAY_CONNECT) && defined(LS7A_1WAY_CLK)
dli t0, 0x00001c00000000f0
#else
dli t0, 0x00001c00000000f7 dli t0, 0x00001c00000000f7
#endif
sd t0, 0xa8(t2) sd t0, 0xa8(t2)
dli t0, 0x0000200000000000 dli t0, 0x0000200000000000
sd t0, 0x30(t2) sd t0, 0x30(t2)
dli t0, 0x0000200000000000 dli t0, 0x0000200000000000
sd t0, 0x70(t2) sd t0, 0x70(t2)
#if defined(MULTI_CHIP) && !defined(LS7A_2WAY_CONNECT) && defined(LS7A_1WAY_CLK)
dli t0, 0x00002000000000f0
#else
dli t0, 0x00002000000000f7 dli t0, 0x00002000000000f7
#endif
sd t0, 0xb0(t2) sd t0, 0xb0(t2)
dli t0, 0x000000fdf8000000 dli t0, 0x000000fdf8000000

Loading…
Cancel
Save