Browse Source

ls3a2h add pcie msi window.

Change-Id: Ic2ebe3b849a71121433f7ed818592dee9b696761
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 9 years ago
committed by Chong Qiao
parent
commit
cf6c32b1bd
  1. 13
      Targets/Bonito3a2h/Bonito/loongson3_HT_init_2h.S
  2. 13
      Targets/Bonito3a82h/Bonito/loongson3_HT_init_2h.S

13
Targets/Bonito3a2h/Bonito/loongson3_HT_init_2h.S

@ -1339,12 +1339,13 @@ crc_checking:
set_L2_win(1, 5, 0xffffffffc0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
#PCIE window
set_L2_win(4, 0, 0x0000000000000000, 0xffffffffc0000000, 0x00000010800000f3) # 0~1G
set_L2_win(4, 1, 0x0000000040000000, 0xffffffffc0000000, 0x00000020800000f3) # 1~2G
set_L2_win(4, 2, 0x0000000080000000, 0xffffffffc0000000, 0x00000030800000f3) # 2~3G
set_L2_win(4, 3, 0x00000000c0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
set_L2_win(4, 4, 0xffffffff80000000, 0xffffffffc0000000, 0x00000030800000f3) # 2~3G
set_L2_win(4, 5, 0xffffffffc0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
set_L2_win(4, 0, 0x0000000000000000, 0xfffffffffffff000, 0x000000001fd00081) # lower 256M
set_L2_win(4, 1, 0x0000000000000000, 0xffffffffc0000000, 0x00000010800000f3) # 0~1G
set_L2_win(4, 2, 0x0000000040000000, 0xffffffffc0000000, 0x00000020800000f3) # 1~2G
set_L2_win(4, 3, 0x0000000080000000, 0xffffffffc0000000, 0x00000030800000f3) # 2~3G
set_L2_win(4, 4, 0x00000000c0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
set_L2_win(4, 5, 0xffffffff80000000, 0xffffffffc0000000, 0x00000030800000f3) # 2~3G
set_L2_win(4, 6, 0xffffffffc0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
#ifdef UMA_VRAM_MODE
set_L1_mas6(7, 0x0000000000000000, 0x0000000000000000, 0x00000000000000f0) # others, all to L2$

13
Targets/Bonito3a82h/Bonito/loongson3_HT_init_2h.S

@ -260,12 +260,13 @@
set_Xbar_win(0xbbd80000, 1, 5, 0xffffffffc0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
#PCIE window
set_Xbar_win(0xbbd80000, 4, 0, 0x0000000000000000, 0xffffffffc0000000, 0x00000010800000f3) # 0~1G
set_Xbar_win(0xbbd80000, 4, 1, 0x0000000040000000, 0xffffffffc0000000, 0x00000020800000f3) # 1~2G
set_Xbar_win(0xbbd80000, 4, 2, 0x0000000080000000, 0xffffffffc0000000, 0x00000030800000f3) # 2~3G
set_Xbar_win(0xbbd80000, 4, 3, 0x00000000c0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
set_Xbar_win(0xbbd80000, 4, 4, 0xffffffff80000000, 0xffffffffc0000000, 0x00000030800000f3) # 2~3G
set_Xbar_win(0xbbd80000, 4, 5, 0xffffffffc0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
set_Xbar_win(0xbbd80000, 4, 0, 0x0000000000000000, 0xfffffffffffff000, 0x000000001fd00081) # lower 256M
set_Xbar_win(0xbbd80000, 4, 1, 0x0000000000000000, 0xffffffffc0000000, 0x00000010800000f3) # 0~1G
set_Xbar_win(0xbbd80000, 4, 2, 0x0000000040000000, 0xffffffffc0000000, 0x00000020800000f3) # 1~2G
set_Xbar_win(0xbbd80000, 4, 3, 0x0000000080000000, 0xffffffffc0000000, 0x00000030800000f3) # 2~3G
set_Xbar_win(0xbbd80000, 4, 4, 0x00000000c0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
set_Xbar_win(0xbbd80000, 4, 5, 0xffffffff80000000, 0xffffffffc0000000, 0x00000030800000f3) # 2~3G
set_Xbar_win(0xbbd80000, 4, 6, 0xffffffffc0000000, 0xffffffffc0000000, 0x00000040800000f3) # 3~4G
#ifdef UMA_VRAM_MODE
set_Xbar_win(0xbbd82000, 6, 7, 0x0000000000000000, 0x0000000000000000, 0x00000000000000f0) # others, all to L2$

Loading…
Cancel
Save