Skip to contentSkip to conversation

MIPS: Initial support of vt82686b south bridge used by fulong mini pc

PATCH Superseded Huacai Chen 1 participant 1 message Jun 5, 2010 Kbuild

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 2/7 MIPS: Initial support of vt82686b south bridge used by fulong mini pc

---
 Makefile.target |    2 +-
 hw/pci_ids.h    |    8 +
 hw/vt82c686.c   |  567 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/vt82c686.h   |   11 +
 4 files changed, 587 insertions(+), 1 deletions(-)
 create mode 100644 hw/vt82c686.c
 create mode 100644 hw/vt82c686.h
Makefile.target +1 -1
index ac36e2c..92ba282 100644
@@ -221,7 +221,7 @@ obj-mips-y += vga.o i8259.o
 obj-mips-y += g364fb.o jazz_led.o
 obj-mips-y += gt64xxx.o mc146818rtc.o
 obj-mips-y += piix4.o cirrus_vga.o
-obj-mips-$(CONFIG_FULONG) += bonito.o
+obj-mips-$(CONFIG_FULONG) += bonito.o vt82c686.o
 
 obj-microblaze-y = petalogix_s3adsp1800_mmu.o
 
hw/pci_ids.h +8 -0
index fe7a121..39e9f1d 100644
@@ -78,6 +78,14 @@
 
 #define PCI_VENDOR_ID_XILINX             0x10ee
 
+#define PCI_VENDOR_ID_VIA                0x1106
+#define PCI_DEVICE_ID_VIA_ISA_BRIDGE     0x0686
+#define PCI_DEVICE_ID_VIA_IDE            0x0571
+#define PCI_DEVICE_ID_VIA_UHCI           0x3038
+#define PCI_DEVICE_ID_VIA_ACPI           0x3057
+#define PCI_DEVICE_ID_VIA_AC97           0x3058
+#define PCI_DEVICE_ID_VIA_MC97           0x3068
+
 #define PCI_VENDOR_ID_MARVELL            0x11ab
 
 #define PCI_VENDOR_ID_ENSONIQ            0x1274
hw/vt82c686.c new file +567 -0

567 lines not on this page · raw message

hw/vt82c686.h new file +11 -0
new file mode 100644
index 0000000..e3270ca
@@ -0,0 +1,11 @@
+#ifndef HW_VT82C686_H
+#define HW_VT82C686_H
+
+/* vt82c686.c */
+int vt82c686b_init(PCIBus * bus, int devfn);
+void vt82c686b_ac97_init(PCIBus *bus, int devfn);
+void vt82c686b_mc97_init(PCIBus *bus, int devfn);
+i2c_bus *vt82c686b_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,
+            qemu_irq sci_irq);
+
+#endif
Signature · 1 line
1.7.0.4