summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/cs5536/chip.h
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@amd.com>2007-05-04 19:05:36 +0000
committerStefan Reinauer <stepan@openbios.org>2007-05-04 19:05:36 +0000
commita67d4fd1ffffc76c328717f2519e3d7e7792f2b8 (patch)
tree566e8ba329f1b25bcddb3e0406c7a02aca4ce823 /src/southbridge/amd/cs5536/chip.h
parent734daf699ceb8603f53003ab36eb85b8a76e3cf9 (diff)
downloadcoreboot-a67d4fd1ffffc76c328717f2519e3d7e7792f2b8.tar.xz
This patch re-implements support for the CS5536 companion chip for the
AMD GX and LX processors. This aguments the previous code, which was very specific to the OLPC platform with general purpose support and better integration with the VSA and CPUs. Signed-off-by: Marc Jones <marc.jones@amd.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2631 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/amd/cs5536/chip.h')
-rw-r--r--src/southbridge/amd/cs5536/chip.h40
1 files changed, 22 insertions, 18 deletions
diff --git a/src/southbridge/amd/cs5536/chip.h b/src/southbridge/amd/cs5536/chip.h
index 6bd87430fd..7c8a249872 100644
--- a/src/southbridge/amd/cs5536/chip.h
+++ b/src/southbridge/amd/cs5536/chip.h
@@ -1,28 +1,32 @@
+/*
+*
+* Copyright (C) 2007 Advanced Micro Devices
+*
+*/
+
#ifndef _SOUTHBRIDGE_AMD_CS5536
#define _SOUTHBRIDGE_AMD_CS5536
-#define MAX_UNWANTED_VPCI 10 /* increase if needed */
+#define MAX_UNWANTED_VPCI 8 /* increase if needed */
extern struct chip_operations southbridge_amd_cs5536_ops;
struct southbridge_amd_cs5536_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 */
- int enable_gpio0_inta; /* almost always will be true */
- int enable_ide_nand_flash; /* if you are using nand flash instead of IDE drive */
- int enable_uarta; /* internal uarta interrupt enable */
- int enable_USBP4_host; /* Enable USB Port 4 as a host */
- /* following are IRQ numbers for various southbridge resources. */
- /* I have guessed at some things, as I still don't have an lspci from anyone */
- int ide_irq; /* f.2 */
- int audio_irq; /* f.3 */
- int usbf4_irq; /* f.4 */
- int usbf5_irq; /* f.5 */
- int usbf6_irq; /* f.6 */
- int usbf7_irq; /* f.7 */
- /* the following allow you to disable unwanted virtualized PCI devices */
- unsigned long unwanted_vpci[MAX_UNWANTED_VPCI];
+ unsigned int lpc_serirq_enable; /* interrupt enables for LPC bus; each bit is an irq 0-15 */
+ unsigned int lpc_serirq_polarity; /* LPC IRQ polarity; each bit is an irq 0-15 */
+ unsigned char lpc_serirq_mode; /* 0:Continuous 1:Quiet */
+ unsigned int enable_gpio_int_route; /* GPIO(0-0x20) for INT D:C:B:A, 0xFF=none. See virtual pci spec... */
+ unsigned char enable_ide_nand_flash; /* 0:IDE 1:FLASH, if you are using nand flash instead of IDE drive */
+ unsigned char enable_USBP4_device; /* Enable USB Port 4 0:host 1:device */
+ unsigned int enable_USBP4_overcurrent; /* 0:off, xxxx:overcurrent setting, e.g. 0x3FEA CS5536 - Data Book (pages 380-381) */
+ unsigned char com1_enable; /* enable COM1 */
+ unsigned int com1_address; /* e.g. 0x3F8 */
+ unsigned int com1_irq; /* e.g. 4 */
+ unsigned char com2_enable; /* enable COM2 */
+ unsigned int com2_address; /* e.g. 0x2F8 */
+ unsigned int com2_irq; /* e.g. 3 */
+ unsigned int unwanted_vpci[MAX_UNWANTED_VPCI]; /* the following allow you to disable unwanted virtualized PCI devices */
+
};
#endif /* _SOUTHBRIDGE_AMD_CS5536 */