Browse Source

Loongson2K ehci: disable usb prefetch to fixup hotplug fail.

Change-Id: Ib29dadfbe7951259b32513379e890ad0c7515f5a
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 6 years ago
parent
commit
6a4ecc0268
  1. 1
      Targets/LS2K/ls2k/tgt_machdep.c

1
Targets/LS2K/ls2k/tgt_machdep.c

@ -277,6 +277,7 @@ void tgt_devconfig()
extern struct pci_device *pcie_dev; extern struct pci_device *pcie_dev;
#endif #endif
#endif #endif
*(volatile unsigned int *)0xbfe10428 &= ~(1<<19); /*disable usb prefetch*/
val = *(unsigned int *)0xbfe10420; val = *(unsigned int *)0xbfe10420;
*(unsigned int *)0xbfe10420 = (val | 0xc000);//mtf, enable I2C1 *(unsigned int *)0xbfe10420 = (val | 0xc000);//mtf, enable I2C1

Loading…
Cancel
Save