Lots of lx fixes. CLeanup mainly. THings now build
Signed-off-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2430 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Ronald G. Minnich
parent
e8bfbb387c
commit
2ad85dbc65
@@ -1,11 +1,11 @@
|
||||
#ifndef _SOUTHBRIDGE_AMD_CS5536
|
||||
#define _SOUTHBRIDGE_AMD_CS5536
|
||||
#ifndef _SOUTHBRIDGE_AMD_CS5536_LX
|
||||
#define _SOUTHBRIDGE_AMD_CS5536_LX
|
||||
|
||||
#define MAX_UNWANTED_VPCI 10 /* increase if needed */
|
||||
|
||||
extern struct chip_operations southbridge_amd_cs5536_ops;
|
||||
extern struct chip_operations southbridge_amd_cs5536_lx_ops;
|
||||
|
||||
struct southbridge_amd_cs5536_config {
|
||||
struct southbridge_amd_cs5536_lx_config {
|
||||
/* interrupt enable for LPC bus */
|
||||
int lpc_serirq_enable; /* how to enable, e.g. 0x80 */
|
||||
int lpc_irq; /* what to enable, e.g. 0x18 */
|
||||
@@ -50,4 +50,4 @@ struct southbridge_amd_cs5536_config {
|
||||
unsigned long unwanted_vpci[MAX_UNWANTED_VPCI];
|
||||
};
|
||||
|
||||
#endif /* _SOUTHBRIDGE_AMD_CS5536 */
|
||||
#endif /* _SOUTHBRIDGE_AMD_CS5536_LX */
|
||||
|
@@ -158,7 +158,7 @@ void map_gpio_irq(unsigned int pin, unsigned int gpioirq, unsigned int irq, unsi
|
||||
|
||||
static void southbridge_init(struct device *dev)
|
||||
{
|
||||
struct southbridge_amd_cs5536_config *sb = (struct southbridge_amd_cs5536_config *)dev->chip_info;
|
||||
struct southbridge_amd_cs5536_lx_config *sb = (struct southbridge_amd_cs5536_lx_config *)dev->chip_info;
|
||||
msr_t msr;
|
||||
int i;
|
||||
|
||||
@@ -316,14 +316,14 @@ static struct device_operations southbridge_ops = {
|
||||
.scan_bus = scan_static_bus,
|
||||
};
|
||||
|
||||
static struct pci_driver cs5536_pci_driver __pci_driver = {
|
||||
static struct pci_driver cs5536_lx_pci_driver __pci_driver = {
|
||||
.ops = &southbridge_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_CS5536_ISA
|
||||
};
|
||||
|
||||
struct chip_operations southbridge_amd_cs5536_ops = {
|
||||
CHIP_NAME("AMD cs5536")
|
||||
struct chip_operations southbridge_amd_cs5536_lx_ops = {
|
||||
CHIP_NAME("AMD cs5536 (LX)")
|
||||
/* This only called when this device is listed in the
|
||||
* static device tree.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user