QiaoChong
6b0a36dee5
load dtb add highmem begin at 0x90000000 and size large than 2G support.
Change-Id: I89e5cf2aafb5776f376fc8eb21117f05d95a0e0f
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
b829c81e03
loongson2k memory param 0x330 bit40 set to 1 to enable prefetch and resend to increase dc memory bandwidth.
Change-Id: I5b5d7e35f4deb888221f06d74eb9596be7fec37d
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
ZhangBaoQi
ede70905b4
3a7a add str support.
Change-Id: I6bbc7afce778ac4ec2c6dfac8ec099f27d180bed
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
08d1b044d9
loongson2k args passing to kernel use cached address before start.
uncached param may be covered by dummy data when cacheline is dirty and is flushed out.
Change-Id: I38769cdff5ee581cd0fdf56f1b41ce697ab17a95
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
d3c58861a8
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>
5 years ago
wusheng
19312bcc3d
Optimise config of sil9022 Default enabling Audio Interface of S/PDIF
Add some display mode
Target: 3A3000_7A
Signed-off-by: DuXiaojie<duxiaojie@loongson.cn>
Signed-off-by: WuSheng<wusheng@loongson.cn>
Change-Id: I96a2b221367a6c73bf143039423878aea3a887cc
5 years ago
wusheng
5f6f79d105
Optimise pcie signal test
Target: 3A3000_7A
1.You should make sure the phy is not power down if you do pcietest cmd
by define LS7A_PCIE_NO_POWERDOWN
2.If you test X4 port by X1 mode or X8 port by X4 mode,
you need force enable PortN by define such as FORCE_ENABLE_PCIE_F0_P123、FORCE_ENABLE_PCIE_F1_P1 and so on
Change-Id: I23afcc4bd12361c3fabcf60247379b73c3a8008f
5 years ago
wusheng
7e18ccd1f5
Add slt test cmd
Target: 3A3000_7A and 2K1000
Change-Id: Ia23737c0bb0d30f8c5d9f858eaf33335dda9079d
5 years ago
ZHAO Xuefeng
ee30225c7b
Loongson3A7A: Fixup the config of HT0
Change-Id: I201333f42187b1faf62ac832bb0078d54b822a21
5 years ago
zhangbaoqi
54a68eda78
Add HDA verb table configure function.
Target: 3A3000_7A
Change-Id: Ibd1fd1a43b2b50bed3c6d7b85b68799bb22b190e
5 years ago
QiaoChong
72d10f1b6c
Loongson2k dtb check: fix dtb nonexist device io mem minimal size check.
Change-Id: If20e8165fad0c2d83d47f8c3c2e009bda6020d08
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
4441d37492
Loongson2K: add gmac macaddr saved in env and saved in dtb support.
Change-Id: Ie3b0fe6217c6902e89ce48e8e5079a80c574b375
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
648c099066
Loongson2k ddr: disable ddr prefetch otherwise dc may hung.
Change-Id: Iadbc9539d069fc51a73149d41d636b1f2fa65b67
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
zhangbaoqi
bf84369a7a
Fixup ls7a irq number config code.
Target: 3A3000_7A
Change-Id: I61e8c12d4b11d67d1e0fec34d9875723d0ee4714
5 years ago
QiaoChong
d90b7e2a6a
ls2k add sdcard support.
Change-Id: I5d5aabb77471564d99cddc6db10c5be3c51aea82
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
7 years ago
wusheng
a982a1598d
Loongson3A7A: add 83627 superio driver for EVB_V1.3
Change-Id: I4dce57dfadbca86bec678501ad95d58ebbe0cbd0
6 years ago
zhangbaoqi
c2b3fc2af4
Loongson2k: fix sata load file error.
from commit ID: e3f665ae4e
Change-Id: I241625a81025612559d6d2620526da608d34708f
6 years ago
QiaoChong
32d34aa9c7
Loongson2k: pci_probe_only default set to 2, pmon alloc pci resources, update into dtb and pass to kernel.
Change-Id: I709b1364215c83071b5c139814ef9d01517b1aac
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
Huangshuai
e3f665ae4e
add sigtest for 2K and update pcie/sata phy config to 7A version
Change-Id: I4138663995b3c68c1e780b994bee13e99577d598
6 years ago
Huangshuai
42a93ea011
optimise 7A pcie signal and signal_test.c
Change-Id: Ia03db7a0866b49a30c5bba6b878647048fe7d50b
6 years ago
QiaoChong
5e5e520ef3
Loongson2K: fix gmac dtb path when update mac address.
gmac0, gmac1 pci address has been changed in dts, but update gmac code still use old path. fix it.
Change-Id: Ia5058a9a1f319d5b16c2d3f9d68dadf7cce9acb4
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
Wang Huandong
e9493c88b2
Target: 3A3000_7A
use the HPET counter to calculate CPU frequency,
boot faster and make the frequency more accuracy.
This method should be implied to all other targets.
by whd.
Change-Id: I3f29322310c77f93b45e4fda52cca027176dc588
6 years ago
QiaoChong
bf3c9ffd20
Loongson2k dts: add ethernet0, ethernet1 aliases for new version stmmac kernel driver.
Change-Id: Ia0a0375ca03af671917873ad038bb5e1de0a6c3a
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
6340e84cfc
Loongson2k: exchange two gmacs and otg address to fix otg address align.
Otg size is 0x40000. old pmon config bar0 addr to 0x40020000.
In fact bar0 addr changes to 0x40000000, because bar size limit.
0x40000000 is conflict with gmac0. gmac1 address.
So we exchange gmac0, gmac1 address to make them all happy.
Change-Id: Ide1fdd9d757395c265be10d1c6f17103650b7ef7
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
zhangbaoqi
36307d34a2
disable vcache to improve system stability
Target: LS2G5
Change-Id: I9485dd14773c7759cf37a20402c23bffb98a51ad
Signed-off-by: ZhangBaoqi <zhangbaoqi@loongson.cn>
6 years ago
QiaoChong
4acb4e452e
Loongson2k dtb: ls2k dtb dc use low memory if does not use gpu.
Change-Id: I5f2e14eb6f4cc9e3149083e793f5fa6cc1398fa6
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
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
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
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
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
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
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