QiaoChong
bafe0e6195
LS3A7a: fix ls3a7a ht dma route dma_node_id_mask when LS7A_2WAY_CONNECT is not set.
dma_node_id_mask should be 1 for 2 node board, 3 for 4 node, 7 for 8 node, 15 for 16 node.
Change-Id: I36cfa266055bc642f14830e2876f379b39c8d306
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
SunChengLian
bf2029b7fc
Fix commnd "initrd (usb0,0)/xxx" cause mem leak problem when usb storage use fat fs.
Open() function calls fat_support() function to do replacement, which will malloc a (fnamelen - 5) + 2 + 1 length
buffer, and when we use (usb0,0)/xxx cmdline formate instead of /dev/fs/fat@usb0/xxx, fnamelen is shorter, in which
situation the strcpy to the buffer from dname will cause a mem leak, so delete '- 5' option to expand the buffer
size which can make sure the buffer is big enough for dname.
Change-Id: Ic661b22d422044f4368035be148d56ecf5f60f09
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
3ffe71465f
fix ints's OHCI_INTR_WDH is set, but ohci->hcca->done_head empty.
Change-Id: I09f1d50512313e30ef05846bdb1e3bc69512df9b
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
张宝祺
61daaf655f
Merge changes Ife43d603,I3bd3b152,Ibedc5347,I89583b21
* changes:
fix ymodem add_ram param type.
fix ramfile print format.
add cdc ether as usbnet driver, such as usb net card 0fe6:9900.
make ohci bulk support async finished, fix interface desc parse.
5 years ago
QiaoChong
d22f28be67
fix ymodem add_ram param type.
Change-Id: Ife43d603f0fd75941ae51cd733f51f5463c55f7d
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
b4be0673b9
fix ramfile print format.
Change-Id: I3bd3b1523e8732c8d529a13e6aa01cafb987500d
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
17e144dd01
add cdc ether as usbnet driver, such as usb net card 0fe6:9900.
Change-Id: Ibedc5347d4f04cdf25e92bf23165f5a693e0eaf8
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
b796b6ffb3
make ohci bulk support async finished, fix interface desc parse.
Change-Id: I89583b21539a96ef16e6cd045751e83aa0de31c9
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
张宝祺
f875cbab9a
Merge "Loongson3A7A: Fixup the config of HT0"
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
wusheng
adcaf1e22e
Loongson3A7A: Fix force enable pcie port
Configure X1 or X4 when forcing all ports to open
Change-Id: I39c74cd5c8302530ee785ef6035cc96e34a82f46
5 years ago
QiaoChong
64fa40e2e2
devfs: devfs add missing get_device, loopdev need this.
Change-Id: I45253566af1bcdd61ab3c54dbc5152d5a1fc4766
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
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
e5b78faddf
fix fatfs get chain last entry broken memory.
Change-Id: I8608ba1d97ab80c424c381bd9eb9f27fcc3f1dfa
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
QiaoChong
9eb8c98020
update loopdev code.
Change-Id: I3e326ef5cf279969b4ab77870a871cd2d8238b14
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
7 years ago
QiaoChong
d28aa96e76
make pmon compile without ohci, ahci happy.
Change-Id: I6f8791eac559105d75175423e80c855e04ef1dad
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
08a4334526
add bootdelay 0 support.
Change-Id: I919952155b1a6a78e717536d694b3a4f9985d155
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
20f0df7e0c
make pmon compile without ohci, ahci happy.
Change-Id: I43e7c192a23e41ad58069305d92d34cee86d06e3
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
278a0f9fb8
ls2k increate dma buffer size to 64k, old 4k is less than main+oob size.
Change-Id: Ief28bb8eb0aba6bf391ec3aedda8e1db6e165ba0
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
41dad7f9c9
fix mycmd m1/2/4/8,d1/2/4/8 addr alignment.
Change-Id: I5f630c7ae75a6ef78242f9381899182c3db2e5ba
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
wusheng
a982a1598d
Loongson3A7A: add 83627 superio driver for EVB_V1.3
Change-Id: I4dce57dfadbca86bec678501ad95d58ebbe0cbd0
6 years ago
QiaoChong
ff04046b3b
ext2fs: fix ext4fs to process sparse file with holes.
Change-Id: I597fd299981223813b429108cefebf4f0aafd381
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
zhangbaoqi
c2b3fc2af4
Loongson2k: fix sata load file error.
from commit ID: e3f665ae4e
Change-Id: I241625a81025612559d6d2620526da608d34708f
6 years ago
QiaoChong
f98687bef7
ext2fs: ext2fs bh reallocated if size is not enough for new inode.
Change-Id: I128cb157e263bc4c5180a1f7f70a3c92e2c7a166
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
bb57b2878b
add md5sum cmd.
Change-Id: Icb18c7b195de5ab54ca3b71b2ae80be56330d214
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
9 years ago
QiaoChong
686dc8b0d3
ext2fs: increase ext4fs read speed by read all blks in leaf node at one time, process file hole.
old method read only one blk every time and every time should file leaf node again.
new method read all leaf nodes at one time.
process file hole, read as zeros.
Change-Id: I2a383d18cf677c367acb4ca076ae326a3031a28c
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
qiaochong
b02b5161bf
ext2fs: add ext2/ext3 large file read support, fix ext2fs memset, just file size.
Change-Id: Idcabb7ae4bd6b684bc31f752d39665a4824d93ae
Signed-off-by: qiaochong <qiaochong@loongson.cn>
10 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
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