Disable USB2 in AMD8111 and remove ide hardcode io addr

Li-Ta Lo ollie at lanl.gov
Wed May 5 10:29:00 CEST 2004


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);
	}

Ollie





More information about the coreboot mailing list