Chong Qiao
a8cc915704
delay 200ms before usb port rescan to wait usb ready.
Change-Id: If0200010610a71dfa02f2c7361b703d6f56f4e70
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
Chong Qiao
f1afb4f7be
pmon usb rescan retry only twice.
Change-Id: I2a8fd672ae533a5d84620d2d99cc9aeb993d6fa7
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
Chong Qiao
a2cffdb4ed
xhci need enable used interfaces when xhci_set_configuration, fix me.
Change-Id: Id961de9fa8f6b828e3c107e8077927f77ac23e29
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
qiaochong
b17fb32d70
prohibit usb read exceed disk size.
Change-Id: I3323119a9735b78129a2db9fba9ace3bf2861f6e
Signed-off-by: qiaochong <qiaochong@loongson.cn>
10 years ago
Chong Qiao
f88cba79cf
add usb_stop_xhci when g.
Change-Id: I35c8e28bbb6b09f461191ecc877abd3a52b5beb4
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
Chong Qiao
b64d57e5c7
xhci add int handler process.
Change-Id: I8dc482e6080ecf66b82685b6024013accc829822
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
Chong Qiao
c16a1f3664
add xhci support.
Change-Id: Ie98bdf0222f4ab8af903d17672f3b2ccb24b88fc
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
Chong Qiao
df3068d31e
del u64 typedef, has been defined sys/linux/types.h.
Change-Id: I9c32efee30a4a95adcff4dff316dca81de13f5fd
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
Chong Qiao
3b799eff47
fix lahci, inited probe_ent.
Change-Id: Ia9a57bf79fb96da269b8fa2a2fdeec63d6bfd655
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
Chong Qiao
18ee33a692
fix ohci roothub intpipe test, del noused code.
Change-Id: I2517ec20339adbd36d9810fd4affc940724b310f
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
Chong Qiao
fe4f77fe2d
add nvme support.
Change-Id: I57d5924535c504bff6f538e0accf0b871eea4d73
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
Chong Qiao
bb7e04849e
fix ohci stop code.
Change-Id: I829e8e9dc646d9cd057f2157d3b35728c1c5363d
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
4 years ago
zhangbaoqi
75c695d4de
Add LS3A4000+LS7A support
Change-Id: I75c3fd7abe373364f4f61003bb7b659497f766c4
4 years ago
FengSiYuan
ef94574634
Modify: igb1 get macaddr from nvm
Change-Id: I083c59cbe13ca8941a598efb941649d55f2c5c58
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
5 years ago
Chong Qiao
fd26956285
fix txgbe, free iob after packet sent.
Change-Id: Ic95972c2ab45aa8655a114b8485b2435246944e1
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
5 years ago
Chong Qiao
88219a2b96
fix ngbe, free iob after packet sent.
Change-Id: I70e826d8782b8697fdcbcec5dd04366021d185d6
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
5 years ago
Chong Qiao
fb1e467f74
pmon wait_ms use get_timer.
Change-Id: I2926ea1b5e8ebb16492aeb0c44aed1430767bee6
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
5 years ago
Chong Qiao
18c6f4e7ea
fix pmon ahci port init, 0x1b4b/0x9170 pcie ahci support ok.
The main different is
1: ahci_enable_ahci after ahci_reset.
2: disable ahci interrupt, interrupt may cause pcie stuck.
.
Change-Id: I569a90452e5501b3ff13a6af278bd1afd6547130
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
5 years ago
QiaoChong
da1ece64fa
ahci: matched by pciclass, fix port calculation, port info passed by function args.
ahci match according pci class, fix ahci port reg calculation, port info passed by function args.
Change-Id: If05fc8f3fcba3d5770e4d78aaea98a23bed5b769
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
5 years ago
QiaoChong
478787be6c
ahci reset check 10ms once, mac 1s for fast boot.
Change-Id: I475421b2da036d5c94f585b3016725f2588a1a42
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
QiaoChong
7097a89979
add AHCI_PORT macro for fast boot.
Change-Id: I2c17520001b70169935db045cef828990046cef7
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
6 years ago
Chong Qiao
bc7869faab
ls2k pcie: pcie port secbus has only one device, return directly if device large then 0.
pcie port secbus has only one device.
here check ls2k pcie port, return -1 if device large than 0.
Change-Id: I2053a2abcae280c3be5b578d2ca03c53d070bee7
Signed-off-by: Chong Qiao <qiaochong@loongson.cn>
5 years ago
niupj
302d345796
Modify the type of paramer for ahci_cdrom to avoid the function error
Change-Id: I1ba552b548a0b01d95503925e98fb3ea79e0d00b
Signed-off-by: niupj <niupengju@loongson.cn>
5 years ago
QiaoChong
d789428dbc
usbnet need send ZLP or extra byte if packet size is multiple maxpacket.
otherwise usb net adpater does not know this is the last usb packet of net packet.
Change-Id: I7f0df6099332a2665b91d1b72730db6ea70dd79a
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
c375a6dd90
add txgbe driver.
Change-Id: I961e26e2f18ce7122f53c2ac43d5b7fdf803c2f3
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
adccb7609f
gmac add IFF_BROADCAST flag to support broadcast.
Change-Id: Id3ace069c444aa220ef33428327e3fd05b446a33
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
07303a9b87
usbnet memcpy change to bcmp to fix compile.
Change-Id: I352279e84599b9e67f71b8810fdc9d4c73620150
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
acb43e042d
usb every endpoint has a irq handle handler.
Change-Id: I259c6799f9d6b8338d622f1d7fb862a247ce1762
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
5bbb78f208
Revert "usb every endpoint has a irq handle handler."
some usb device in endpoint and out endpoint is same.
so we need process ed_num and urb according to endpoint and dircetion
This reverts commit 54be7a3ab2
.
Change-Id: Iab70199077e8a1a5c7056a56200f575fa4e62c86
5 years ago
QiaoChong
4f392d6c2f
add wangxun ngbe net adapter driver.
Change-Id: I679b845146409ea39595747a6cda14b85c6300e6
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
39eca94f12
usbnet: update usb cdc ether driver use irq_handle_ep.
Change-Id: I38c842e910187342a7f6c33072c7d702c9bd7178
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
54be7a3ab2
usb every endpoint has a irq handle handler.
Change-Id: I2ff1cab63e5764c2ab4267db06b71043d540daa3
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
c34bd82b5f
ohci use common hc_interruppt process.
Change-Id: I1fcffd5516a22cb28d6956e69e182f2edd4d0a14
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
5 years ago
QiaoChong
488b8e83ee
ohci use get_timer to cacaulate delay.
Change-Id: I4e235206fe35bac8ee882d377deb24b642f1ddb4
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
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
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
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
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
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
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
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
ef316685bc
Fix a mis-delete in PCI device BAR allocation because of poor comment.
Change-Id: Id6f5b8d10f73772ce306d1d76c819f87edcf6a97
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
zhangbaoqi
d4a83e8a1e
update usb driver by reference embed code.
Change-Id: I5ab1ebd2931bcbac0ec389a18dd21fd855af954e
7 years ago