Disable USB2 in AMD8111 and remove ide hardcode io addr

ron minnich rminnich at lanl.gov
Wed May 5 10:52:00 CEST 2004


On Wed, 5 May 2004, Li-Ta Lo wrote:

> On Tue, 2004-05-04 at 23:26, YhLu wrote:
> > Ron,
> > 
> > I'm going to add several lines in amd8111_enable of amd8111.c to disable
> > USB2 in amd8111. 
> > 
> >         /* disable usb2 in amd 8111 because it does not work awlays*/
> >         byte = pci_read_config8(lpc_dev, 0x47);
> >         byte |= (1<<7);
> >         pci_write_config8(lpc_dev, 0x47, byte);
> > 
> 
> isn't that what the on/off in the config file and this code in
> amd8111.c doing ?
> 
> 	reg = reg_old = pci_read_config16(lpc_dev, 0x48);
> 	reg &= ~(1 << index);
> 	if (dev->enabled) {
> 		reg |= (1 << index);
> 	}
> 	if (reg != reg_old) {
> 		pci_write_config16(lpc_dev, 0x48, reg);
> 	}

yes. 

ron




More information about the coreboot mailing list