Commit 53fea3a3 authored by Baoqi Zhang's avatar Baoqi Zhang Committed by Hongchen Zhang
Browse files

LS7A2000: Add quirk for OHCI device rev 0x02

LoongArch inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8H2OZ



--------------------------------

Signed-off-by: default avatarBaoqi Zhang <zhangbaoqi@loongson.cn>
parent 80971b57
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
#define DEV_LS7A_CONF	0x7a10
#define DEV_LS7A_GNET	0x7a13
#define DEV_LS7A_EHCI	0x7a14
#define DEV_LS7A_OHCI	0x7a24
#define DEV_LS7A_DC2	0x7a36
#define DEV_LS7A_HDMI	0x7a37

@@ -127,6 +128,13 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON,
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON,
			DEV_LS7A_HDMI, loongson_pci_pin_quirk);

static void loongson_ohci_quirk(struct pci_dev *dev)
{
	if (dev->revision == 0x2)
		dev->resource[0].start += 0x1000;
}
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON, DEV_LS7A_OHCI, loongson_ohci_quirk);

static struct loongson_pci *pci_bus_to_loongson_pci(struct pci_bus *bus)
{
	struct pci_config_window *cfg;