
15 Jul
2004
15 Jul
'04
9:47 p.m.
The attached patch tweaks the configuration of the PCI device class that the host system seeof if this board. The change is very simple and affects only the JSE. Patch is attached.
CHANGELOG entry:
* Patch by Stephen Williams, 15 July 2004 Set the PCI class code as part of PCI interface setup
--
Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
Index: board/jse/host_bridge.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/board/jse/host_bridge.c,v
retrieving revision 1.1
diff -p -u -r1.1 host_bridge.c
--- board/jse/host_bridge.c 15 Apr 2004 23:14:49 -0000 1.1
+++ board/jse/host_bridge.c 15 Jul 2004 19:30:52 -0000
@@ -40,9 +40,12 @@ void host_bridge_init (void)
pci_dev_t dev = PCI_BDF (0, 10, 0);
int rc;
- u32 val32;
- rc = pci_read_config_dword (dev, 0, &val32);
+ /* Set PCI Class code --
+ The primary side sees this class code at 0x08 in the
+ primary config space. This must be something other then a
+ bridge, or MS Windows starts doing weird stuff to me. */
+ pci_write_config_dword (dev, 0x48, 0x04800000);
/* Set subsystem ID --
The primary side sees this value at 0x2c. We set it here so