BaoQingYuan
452ced32a9
Loongson2k ddr: fixup trfc caculate.
trfc should be caculated acording to chip capacity.
Change-Id: If53e4cd3efc3d2fc1f02cce43ea9714e034f1bc3
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
6536c6e1ce
Loongson2k: fix pcie init array no.
Change-Id: I8a8e59bfa9d1a6501ac82d3aa298f2d646e0c3b0
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
c31d1c17b6
Loongson2k: fix pcie init 0,0xd,0 io base address, del extra 0,0xe,0 init.
Change-Id: Ie5daa7461b5317826e903840a5cf5ec4484ca5cf
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
43a30bfbe5
Loongson3a92h: fix ls2h rtc month verify code.
Change-Id: I9a45a70aaedecbfe0ae8ccb777e1e8e97eb12d7f
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
c2b3b8d994
Loongson3a82h: fix ls2h rtc month verify code.
mon in reg is 1 to 12, tm_mon is 0 to 11.
Change-Id: If2464d94547bb11be53c9f22cbc91bb828e891e8
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
6d61a832cb
Loongson3A7A: fix up serial clock freq to 50M.
Change-Id: Ib8f7bca49ffda252e2df7dc97e49d26cc9732cb9
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
934f3964fe
Loongson2K: not reserve memory if no gpu.
Change-Id: I210e55f5f81fe0a9383404b7040e5dc867ccde7c
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
a28a5bc411
Gmac:make code clean.
Change-Id: I817bcd41528bae30ca1cc49f889616f619b86c32
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
49256565e8
Gmac: use gmac mac register to check link status.
Change-Id: I63be374fba78ee3673b32f4021ea64417fdb0d2f
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
wusheng
c65380ae70
Loongson2K: 1.Change frame buffer to cached address
2.Delete a useless function call
Change-Id: I895bd79997debd5b59d57e4e0053ea8ef6182944
6 years ago
Huang Shuai
80b20091f7
2K:set attr&td to 0 for PCIE MEM and CFG access and set no-datalength-mismatch check
Change-Id: Iaf90f780a11ec2663e8f12bee30a05c5c6e8e7b3
6 years ago
Huang Shuai
c0b6372751
set attr&td to 0 for PCIE MEM and CFG access and set no-datalength-mismatch check
Change-Id: I96db3aa93d00f8eeac5450638683d3a3c614a8bc
6 years ago
baoqingyuan
8e44a309d9
2k trfc and tref update
Change-Id: I5abaa0b0551b77ac696942665b3edae43f3a9c62
6 years ago
NingLiChen
43905861d6
Loongson2K: fix pcie1 port0's io size to 1M in dts.
Change-Id: Ic0d489d9f620f656e10e0c393b40ee88faa1db1b
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
76b9bcca2c
Loongson2k: fix tlbrefill exception install from TLB_MISS_VEC to XTLB_MISS_VEC.
Change-Id: I5a3a627961f801b19670edd4eb6685eb9782e2e9
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
Huang Shuai
141cd086bb
fix bug caused by misuse of t3 reg, which will lead to panic
Change-Id: Ibe2485ff6c5cc58d9d2db4b6d395aba00a9a4891
6 years ago
Huang Shuai
56abab4f20
Loongson7A: fix pcie td = 0 and remove length check of pcie controller
Change-Id: I2c5a9b50d9c3316abcc847a74b4c862afa486603
6 years ago
Huang Shuai
5d30151190
Loongson2k: update pcie phy amplitude from 7A
Change-Id: I1a64e459406f48175e20d7def54839935363eddf
6 years ago
QiaoChong
8b4ecb7ffe
Loongson2k: fix pcitlb init index decreased to -1 error.
Change-Id: I46d5e4f9ab83aa5bd0b49825e32596aa8abbf926
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
6a4ecc0268
Loongson2K ehci: disable usb prefetch to fixup hotplug fail.
Change-Id: Ib29dadfbe7951259b32513379e890ad0c7515f5a
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
wuze
0d0fc82b61
1.if 7A spi not have 7aVbios,use default Vbios
2.modify 7A board name
Change-Id: Ie17bbde96b03a8245e397460ca136e4975c19033
6 years ago
wuze
1398fb7a27
fix bug caused by 2872dd1ceb
Change-Id: If1e28ee4ef293384e3b87d717df096087d76f7fe
6 years ago
wuze
2872dd1ceb
3a3000 leveling file update,add some dll training program
Change-Id: I47cfe6c611726be19a2110027619e18662c2cc75
6 years ago
Chen Xinke
b110c9119d
Disable 7A misc device uncache acc to fix hardware unexpected behaviour(for example, false interrupt).
Change-Id: I0ba4ffd6a2f1ebbbe89b651b49c59970f27935ce
6 years ago
zhangbaoqi
0ba3770554
fix up the SATA CD-ROM sometimes can not load file on 7A and 2K
Change-Id: Ib9d709187c8fefb705f993e39b8c2397374d9b89
6 years ago
WANG Yulong
447eb2c984
Improve the speed of hard disk reading
Machine hard disk and SSD are ok.
Change-Id: I4e55e37747c51b34ff02dacc441d4c30feb0efd0
6 years ago
Chen Xinke
416d95f599
Add pcie signal test cmd and improve ls7a_dbg.c
Change-Id: I3f024828bb6e78019385eb265d7ba554e9f99e36
6 years ago
Chen Xinke
32430c2c2d
stability improvement.
1. increase SATA/USB cntl freq to improve sata read performance.
2. reduce GPU/GMEM freq to 400M/533M for mass product.
3. enhance pcie signal quality.
Change-Id: I77abde0636e7b694dd41167d859db4b981b8fe03
6 years ago
Chen Xinke
f61db5f888
Increase HT performance by enlarge HT cmd buffer num.
Change-Id: I6947ddaac1072b0b3cfae9c301f892b148c5a9a2
6 years ago
Chen Xinke
09f5481a93
modify CPU freq to 1.4GHz and inter-connect HT0 freq to 2.0G for 3a3000-7A 2way.
Change-Id: I896362b25a57925c0e83b9d700c1684707802265
6 years ago
Chen Xinke
fb7b5f6aad
Add signal test and ls7a_dbg for Bonito3a3000_7a.
1. signal test support for usbtest and satatest cmd.
2. ls7a_dbg support phy_cfg cmd. notice that: make sure the phy to be configured is not powerdown.
Change-Id: Ib86ba06b5554c87cb92bbd6c12e1f96d47683fa7
6 years ago
Chen Xinke
4883d1361e
Modify PCIE init code to support board using outside ref clk for partial PCIE ports.
Notice that: 7A only support use inner or outer ref clk for all PCIE ports.
If you want to use outer ref clk for some ports, you must disable others by code..
Change-Id: Ie54ee937bd9321f817315da725f3f0ef47cac32d
6 years ago
Chen Xinke
056c160be4
Add X8 PCIE clock phase calibration.
This patch can fix some PCIE x8 device be recognized to PCIE x4 problem.
Change-Id: I9a109845aa1abd93010b35314cbc1501eeaa8ae5
6 years ago
Chen Xinke
1f204a8814
Fix 3A30007A1000 dev board PCIE-to-USB3.0 device recognize fail problem.
The time interval for PCIE device twice reset need be enlarged.
Change-Id: I9679ab8a2ca2d1dde2dfa26d5f41f4382b799b28
6 years ago
Chen Xinke
10e52e89b3
PCIE bug fix.
1. Fix PCIE PHY voltage configure which can fix some PCIE unstable problem.
2. Fix x8 PCIE powerdown bug.
3. Add option to NOT powerdown PCIE for debug.
Change-Id: I0223885259d0eab4138e322e83d0d47f5f066822
6 years ago
xuwenrui
c8c73848ff
Add LS7A fdt support, dts file is Targets/Bonito3a3000_7a/conf/Bonito3a3000_7a.dts
cmd "make dtb" can create dtb file: Bonito3a3000_7a.dtb, and link with gzrom.bin to create gzrom-dtb.bin
rename Targets/LS2K/conf/ls2k.dts to Targets/LS2K/conf/LS2K.dts
Change-Id: I8ba7dcd6b0e8cc875324666d5774cfd8fa9a10f6
6 years ago
Chen Xinke
ab664ebe71
Fix PCI device scan bug when using some PCIE switches.
Our PCIE controller return 0 instead of -1 for non-existent PCIE device, so we
should add != 0 condition for null device.
And we also translate 0 to -1 for null device ID although PMON does not care.
Change-Id: I5d1d3f458ec3d0a54b02ba36e221b87f77b7b3f5
6 years ago
QiaoChong
d9842975a7
ls2k map_gpu printf change to tgt_printf, otherwise sys will halt in poll because pci mem changed.
ls2k map_gpu printf change to tgt_printf.
Because pci mem has been chanaged, can not call any driver.
printf will call all poll function, which will cause sys halt.
Change-Id: Ia956fb1c5257e19ca8f29dabeda026330d088322
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
3d8a391efa
fix ls2k cache lock addr.
Change-Id: Ic977ba13d952d5820895b874fd44cc82dcf1b4ad
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
Chen Xinke
09e37faa99
bug fix and code optimize.
1. Fix PCIE controller mode switch introduced PCIE device abnormal.
2. Add GMAC disable option.
Change-Id: Ie9c783e0fb9e13c944db8bcc7ccd4b0c2c5cc8e9
6 years ago
Chen Xinke
ef316685bc
Fix a mis-delete in PCI device BAR allocation because of poor comment.
Change-Id: Id6f5b8d10f73772ce306d1d76c819f87edcf6a97
6 years ago
Chen Xinke
139a974775
Fix FORCE_ENABLE_PCIE_H/G0/G1_P1 misplace bug in ls7a_init.c
Notice that: our configure registers address sequence are: F0,F1,H,G0,G1.
But PCI device number sequence are: F0,F1,G0,G1,H.
Change-Id: Ib9ab3068b975277cafce5f0fc61a6730f0e5ba75
6 years ago
wuze
d3d767cad3
Add function finding xhci device to increase availability
Change-Id: I068fb6763cf8722980a4be90c33010c1f8443631
6 years ago
wuze
6e0e1b4b88
fix bug caused by commit 948ae332cf
Change-Id: I0b67ba1aaf5f941c3155b6067a0260f03e35c05a
6 years ago
xuwenrui
21460b17a0
Set HT-access cache/uncache before goto kernel
Target:LS3A8 LS3A9
Change-Id: If6f56ed90ee6911391ca4886ad7abf0ac956beb6
6 years ago
xuwenrui
620a632168
Add more cmds to support fdt operation, cmd "fdt" can show all of them;
Check the mac addr in dtb & eeprom after boot, or after load_dtb;
If mem size in dtb is larger than max mem size, abort cmd "g";
Change-Id: I7b122658199915493a79cc99812485f43dc08c35
6 years ago
xuwenrui
63012b2872
Add codes that copy from qiaochong, "make dtb" compile the dtb and gzrom.bin together,
and create a new file: gzrom-dtb.bin
Change-Id: I5a5e2eba3ff3f603419cc4be7b66c207b57189f6
6 years ago
zhangbaoqi
479807a22d
fixup ls7a and ls2k CD driver error.
Change-Id: I66b1adb43d7b7874a634f3d97307d09a573cf08c
6 years ago
wuze
948ae332cf
1.configuring syn0, syn1 mac from ls7a spi 0-5 Byte, 16-21 Byte respectively
2.add a function set_mac to update ls7a spi mac address
Change-Id: Icdf38805c6ad6fce752c69ba31773a4090a1ffa6
6 years ago
baoqingyuan
2b10ae1fb9
3a2000 dll clk loop test trainning
Change-Id: I81b81bad270d8080efcd89171d879e4cc093d9c2
7 years ago