From d3c58861a8859346946b92510e5415a84560c923 Mon Sep 17 00:00:00 2001 From: QiaoChong Date: Fri, 27 Sep 2019 15:03:46 +0800 Subject: [PATCH] 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 --- Targets/Bonito3a3000_7a/Bonito/loongson3_fixup.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Targets/Bonito3a3000_7a/Bonito/loongson3_fixup.S b/Targets/Bonito3a3000_7a/Bonito/loongson3_fixup.S index ba3a7bbb..091c8ffb 100644 --- a/Targets/Bonito3a3000_7a/Bonito/loongson3_fixup.S +++ b/Targets/Bonito3a3000_7a/Bonito/loongson3_fixup.S @@ -848,14 +848,22 @@ reset_ht0: sd t0, 0x28(t2) dli t0, 0x00001c0000000000 sd t0, 0x68(t2) +#if defined(MULTI_CHIP) && !defined(LS7A_2WAY_CONNECT) && defined(LS7A_1WAY_CLK) + dli t0, 0x00001c00000000f0 +#else dli t0, 0x00001c00000000f7 +#endif sd t0, 0xa8(t2) dli t0, 0x0000200000000000 sd t0, 0x30(t2) dli t0, 0x0000200000000000 sd t0, 0x70(t2) +#if defined(MULTI_CHIP) && !defined(LS7A_2WAY_CONNECT) && defined(LS7A_1WAY_CLK) + dli t0, 0x00002000000000f0 +#else dli t0, 0x00002000000000f7 +#endif sd t0, 0xb0(t2) dli t0, 0x000000fdf8000000