QiaoChong
c1aca713f6
dtb: make dtb compile dtb according config file.
Change-Id: Ida9529551bca09d39cdef49fdb98cb19bf4281eb
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
Juxin Gao
574879c7e2
Loongson2k: Update LS2K.dts according to kernel's .dts for ls2k.
Change-Id: Id8f16211e38eb7478cda8a3b4f00995348223607
Signed-off-by: Juxin Gao <gaojuxin@loongson.cn>
6 years ago
QiaoChong
dc5dfa9757
dtb: add precompile before make dtb.
Change-Id: I91de0c8b0a1e0fbb64ab9e1e3fc52814bac290b9
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
8072d8098c
Loongson2k: fix pcie probe only process when dtb deleted this port.
Change-Id: I1af1cefbb4e0df284a3053571127b11f462e4138
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
845f45cba5
Loongson2k: auto fixup memory info into dtb.
Change-Id: I5bcbebbc5f647b9ffba7f8e72a1de5ce285eeb6f
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
张宝祺
54a3b033df
Merge "pciconf: pci bridge' special alignment only for register mem base/limit and io base/limit."
6 years ago
张宝祺
5f0e38d677
Merge "Loongson2K: add pci probe only to support card need large pci spaces."
6 years ago
QiaoChong
2b23688f94
pciconf: pci bridge' special alignment only for register mem base/limit and io base/limit.
Change-Id: Iaa5958060b82f04d9c81961a7bf5e80991b6dab4
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
b8809cd0a9
Loongson2K: add pci probe only to support card need large pci spaces.
verify_dtb add pci bridge check for PCI_PROBE_ONLY.
Change-Id: I3a2d961390e2f3d74c61a4ff360c353731534d62
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
wusheng
aa722348f7
Fix bug caused by commit 22dd2d1001
Change-Id: Ib75baece483d367f807d82455c75b8277fc449a5
6 years ago
wusheng
22dd2d1001
Add config of CORE_FREQ
Change-Id: I386081d12a10b105a9b9d17edd428d9b38bbbe40
6 years ago
wusheng
fbd695c9c6
Change calculation of DDR_FREQ
Change-Id: I49d84f731d242364ab5f27ed9967b258be22c322
6 years ago
张宝祺
edba7ec327
Merge "Fix bug caused by commit 2dec78933f
3a3000 tRFC reconfig and other leveling modified"
6 years ago
wusheng
ed090ea5ce
Fix bug caused by commit 2dec78933f
3a3000 tRFC reconfig and other leveling modified
Change-Id: Ia91782cb5f3d81f21d7595be479c9f320db89b64
6 years ago
QiaoChong
1bfc51ca42
LS2K pci: printf warning info if resource in dtb not enough or not aligned.
Change-Id: I4e25071feb2d902a0fdf9e96793395ac09d6a308
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
c8bf94f026
LS2K pci: ls2k does not need fix mem nand bus no not before enter kernel now, remove it.
Change-Id: I71d43c7d259d2b36d90266a899efd453bec1595a
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
526b7223fd
LS2K pci: pci resource allocate address same as pmon.
Change-Id: Ibfbb95b42fa96b2009345be28302e41e82d3bd5e
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
075e7b2f77
pci: _pci_alloc_io, _pci_alloc_mem call weak function pci_alloc_fixmemio first, to be redefined for ls2k.
Change-Id: I558a4fc4fcc470de41b71524c4c264d47c08016f
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
0d15f79e19
pci: bridge mem alrealy allocated aligned, parent's next resource should only been changed in _pci_allocate_mem/io.
Change-Id: Ib80c63c270920aa3fae890d059a5cb19cc17f04a
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
f17dbad313
pci: pmon not update first bridge bus PCI_PRIBUS_1, which is a dummy device.
Change-Id: I5d62d461d612728423d06ccfd28c7558258463a7
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
wusheng
c6b08d78f7
Clear the pcie internal port useless irq ,otherwise it maybe cause the linked device irq error in kernel.
Change-Id: I308a61b60a196b2a59e58bf67ecb8b67bee4c7d6
6 years ago
baoqingyuan
81583ec073
abnormal type ddr manually config define
Change-Id: I54390ebcabbf5158c88524aafa04c2c0a7122fd0
6 years ago
张宝祺
e72d9bc154
Merge "3a3000 tRFC reconfig and other leveling modified"
6 years ago
baoqingyuan
2dec78933f
3a3000 tRFC reconfig and other leveling modified
Change-Id: Ie6252dbf28a1e8f9914dc594fb3dd774733a2bc6
6 years ago
QiaoChong
767729d8c5
Loongson2k pci: make pci device bus no is equal to dts.
some pci device can not support bus no be changed.
Change-Id: Ice50547a171b1377e6e5e0cccc866bdef2dd0525
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
c4dbf0b056
pci: add pci_get_busno to get next busno will be used to support board such as 2k.
Change-Id: Ia2b6e8e1c224dc44a8c142e28b404d367f5836bc
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
94f0f61ced
Loongson2k dts: fix pcie0 port0 io size, add 0x1000 offset into io base.
linux kerel does not allow resource start is 0, so add 0x1000 to io base.
Otherwise driver request io resource will fail.
Change-Id: I2f0c2175860c60dc1988862df208f8145aa97f62
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
e5ca36382c
Loongson2k pci: fix ls2k pci io base and limit config.
ls2k io space size is 32M.
io base, io limit, io upper base, io upper limit's value in pci config space need in 32M.
Change-Id: I8ceffbaa684eadc32df96f4d960176281e851f1d
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
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