Trivial. Cleaning up about the blank line.
Signed-off-by: Zheng Bao <zheng.bao@amd.com> Acked-by: Zheng Bao <zheng.bao@amd.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5634 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -143,6 +143,7 @@ void sb700_enable(device_t dev)
|
|||||||
vendorid = dev->vendor;
|
vendorid = dev->vendor;
|
||||||
deviceid = dev->device;
|
deviceid = dev->device;
|
||||||
}
|
}
|
||||||
|
|
||||||
bus_dev = dev->bus->dev;
|
bus_dev = dev->bus->dev;
|
||||||
if ((bus_dev->vendor == PCI_VENDOR_ID_ATI) &&
|
if ((bus_dev->vendor == PCI_VENDOR_ID_ATI) &&
|
||||||
(bus_dev->device == PCI_DEVICE_ID_ATI_SB700_PCI)) {
|
(bus_dev->device == PCI_DEVICE_ID_ATI_SB700_PCI)) {
|
||||||
@ -156,7 +157,6 @@ void sb700_enable(device_t dev)
|
|||||||
case 5 << 3:
|
case 5 << 3:
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,7 +58,6 @@ static void lpc_init(device_t dev)
|
|||||||
byte = pci_read_config8(dev, 0x78);
|
byte = pci_read_config8(dev, 0x78);
|
||||||
byte &= ~(1 << 1);
|
byte &= ~(1 << 1);
|
||||||
pci_write_config8(dev, 0x78, byte);
|
pci_write_config8(dev, 0x78, byte);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sb700_lpc_read_resources(device_t dev)
|
static void sb700_lpc_read_resources(device_t dev)
|
||||||
@ -100,7 +99,6 @@ static void sb700_lpc_set_resources(struct device *dev)
|
|||||||
/* Specical case. SPI Base Address. The SpiRomEnable should be set. */
|
/* Specical case. SPI Base Address. The SpiRomEnable should be set. */
|
||||||
res = find_resource(dev, 0xA0);
|
res = find_resource(dev, 0xA0);
|
||||||
pci_write_config32(dev, 0xA0, res->base | 1 << 1);
|
pci_write_config32(dev, 0xA0, res->base | 1 << 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,7 +72,6 @@ static void sm_init(device_t dev)
|
|||||||
dword |= 1 << 13;
|
dword |= 1 << 13;
|
||||||
pci_write_config16(dev, 0x64, dword);
|
pci_write_config16(dev, 0x64, dword);
|
||||||
|
|
||||||
|
|
||||||
/* rrg:K8 INTR Enable (BIOS should set this bit after PIC initialization) */
|
/* rrg:K8 INTR Enable (BIOS should set this bit after PIC initialization) */
|
||||||
/* rpr 2.1 Enabling Legacy Interrupt */
|
/* rpr 2.1 Enabling Legacy Interrupt */
|
||||||
dword = pci_read_config8(dev, 0x62);
|
dword = pci_read_config8(dev, 0x62);
|
||||||
@ -282,6 +281,7 @@ static int lsmbus_write_byte(device_t dev, u8 address, u8 val)
|
|||||||
|
|
||||||
return do_smbus_write_byte(res->base, device, address, val);
|
return do_smbus_write_byte(res->base, device, address, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct smbus_bus_operations lops_smbus_bus = {
|
static struct smbus_bus_operations lops_smbus_bus = {
|
||||||
.recv_byte = lsmbus_recv_byte,
|
.recv_byte = lsmbus_recv_byte,
|
||||||
.send_byte = lsmbus_send_byte,
|
.send_byte = lsmbus_send_byte,
|
||||||
@ -335,10 +335,9 @@ static void sb700_sm_read_resources(device_t dev)
|
|||||||
res->gran = 8;
|
res->gran = 8;
|
||||||
res->flags = IORESOURCE_IO | IORESOURCE_FIXED;
|
res->flags = IORESOURCE_IO | IORESOURCE_FIXED;
|
||||||
|
|
||||||
|
|
||||||
compact_resources(dev);
|
compact_resources(dev);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sb700_sm_set_resources(struct device *dev)
|
static void sb700_sm_set_resources(struct device *dev)
|
||||||
{
|
{
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
@ -346,7 +345,6 @@ static void sb700_sm_set_resources(struct device *dev)
|
|||||||
|
|
||||||
pci_dev_set_resources(dev);
|
pci_dev_set_resources(dev);
|
||||||
|
|
||||||
|
|
||||||
/* rpr2.14: Make HPET MMIO decoding controlled by the memory enable bit in command register of LPC ISA bridage */
|
/* rpr2.14: Make HPET MMIO decoding controlled by the memory enable bit in command register of LPC ISA bridage */
|
||||||
byte = pm_ioread(0x52);
|
byte = pm_ioread(0x52);
|
||||||
byte |= 1 << 6;
|
byte |= 1 << 6;
|
||||||
@ -365,6 +363,7 @@ static void sb700_sm_set_resources(struct device *dev)
|
|||||||
static struct pci_operations lops_pci = {
|
static struct pci_operations lops_pci = {
|
||||||
.set_subsystem = pci_dev_set_subsystem,
|
.set_subsystem = pci_dev_set_subsystem,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct device_operations smbus_ops = {
|
static struct device_operations smbus_ops = {
|
||||||
.read_resources = sb700_sm_read_resources,
|
.read_resources = sb700_sm_read_resources,
|
||||||
.set_resources = sb700_sm_set_resources,
|
.set_resources = sb700_sm_set_resources,
|
||||||
@ -374,6 +373,7 @@ static struct device_operations smbus_ops = {
|
|||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
.ops_smbus_bus = &lops_smbus_bus,
|
.ops_smbus_bus = &lops_smbus_bus,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct pci_driver smbus_driver __pci_driver = {
|
static const struct pci_driver smbus_driver __pci_driver = {
|
||||||
.ops = &smbus_ops,
|
.ops = &smbus_ops,
|
||||||
.vendor = PCI_VENDOR_ID_ATI,
|
.vendor = PCI_VENDOR_ID_ATI,
|
||||||
|
@ -42,7 +42,6 @@ static void usb_init(struct device *dev)
|
|||||||
byte |= 0xFF;
|
byte |= 0xFF;
|
||||||
pci_write_config8(sm_dev, 0x68, byte);
|
pci_write_config8(sm_dev, 0x68, byte);
|
||||||
|
|
||||||
|
|
||||||
/* RPR 6.2 Enables the USB PME Event,Enable USB resume support */
|
/* RPR 6.2 Enables the USB PME Event,Enable USB resume support */
|
||||||
byte = pm_ioread(0x61);
|
byte = pm_ioread(0x61);
|
||||||
byte |= 1 << 6;
|
byte |= 1 << 6;
|
||||||
@ -188,7 +187,6 @@ static void usb_set_resources(struct device *dev)
|
|||||||
set_ehci_base(base);
|
set_ehci_base(base);
|
||||||
report_resource_stored(dev, res, "");
|
report_resource_stored(dev, res, "");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct device_operations usb_ops = {
|
static struct device_operations usb_ops = {
|
||||||
@ -205,6 +203,7 @@ static const struct pci_driver usb_0_driver __pci_driver = {
|
|||||||
.vendor = PCI_VENDOR_ID_ATI,
|
.vendor = PCI_VENDOR_ID_ATI,
|
||||||
.device = PCI_DEVICE_ID_ATI_SB700_USB_18_0,
|
.device = PCI_DEVICE_ID_ATI_SB700_USB_18_0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct pci_driver usb_1_driver __pci_driver = {
|
static const struct pci_driver usb_1_driver __pci_driver = {
|
||||||
.ops = &usb_ops,
|
.ops = &usb_ops,
|
||||||
.vendor = PCI_VENDOR_ID_ATI,
|
.vendor = PCI_VENDOR_ID_ATI,
|
||||||
|
Reference in New Issue
Block a user