提交 03489ad3 编写于 作者: B Baoqi Zhang 提交者: Hongchen Zhang

LS7A2000 : Add quirk for OHCI device rev 0x02

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

--------------------------------
Signed-off-by: NBaoqi Zhang <zhangbaoqi@loongson.cn>
Change-Id: I7d70a63b5a813551b81f60f07dfedbbcd01d4336
上级 5e50208e
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#define DEV_LS7A_CONF 0x7a10 #define DEV_LS7A_CONF 0x7a10
#define DEV_LS7A_GNET 0x7a13 #define DEV_LS7A_GNET 0x7a13
#define DEV_LS7A_EHCI 0x7a14 #define DEV_LS7A_EHCI 0x7a14
#define DEV_LS7A_OHCI 0x7a24
#define DEV_LS7A_DC2 0x7a36 #define DEV_LS7A_DC2 0x7a36
#define DEV_LS7A_HDMI 0x7a37 #define DEV_LS7A_HDMI 0x7a37
...@@ -129,6 +130,13 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON, ...@@ -129,6 +130,13 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON,
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON, DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON,
DEV_LS7A_HDMI, loongson_pci_pin_quirk); 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) static struct loongson_pci *pci_bus_to_loongson_pci(struct pci_bus *bus)
{ {
struct pci_config_window *cfg; struct pci_config_window *cfg;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册