07b6a1dfe6ddc05379d4a1f39969680439858458
[coreboot.git] / src / southbridge / amd / cs5536 / chip.h
1 /*
2  * This file is part of the LinuxBIOS project.
3  *
4  * Copyright (C) 2007 Advanced Micro Devices, Inc.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19  */
20
21 #ifndef _SOUTHBRIDGE_AMD_CS5536
22 #define _SOUTHBRIDGE_AMD_CS5536
23
24 #define MAX_UNWANTED_VPCI 8             /* increase if needed */
25
26 extern struct chip_operations southbridge_amd_cs5536_ops;
27
28 struct southbridge_amd_cs5536_config {
29         unsigned int lpc_serirq_enable;                 /* interrupt enables for LPC bus; each bit is an irq 0-15 */
30         unsigned int lpc_serirq_polarity;               /* LPC IRQ polarity; each bit is an irq 0-15 */
31         unsigned char lpc_serirq_mode;                  /* 0:Continuous 1:Quiet */
32         unsigned int enable_gpio_int_route;             /* GPIO(0-0x20) for INT D:C:B:A, 0xFF=none. See virtual pci spec... */
33         unsigned char enable_ide_nand_flash;    /* 0:IDE 1:FLASH, if you are using nand flash instead of IDE drive */
34         unsigned char enable_USBP4_device;              /* Enable USB Port 4 0:host 1:device */
35         unsigned int enable_USBP4_overcurrent;  /* 0:off, xxxx:overcurrent setting, e.g. 0x3FEA CS5536 - Data Book (pages 380-381) */
36         unsigned char com1_enable;                              /* enable COM1 */
37         unsigned int com1_address;                              /* e.g. 0x3F8 */
38         unsigned int com1_irq;                                  /* e.g. 4 */
39         unsigned char com2_enable;                              /* enable COM2 */
40         unsigned int com2_address;                              /* e.g. 0x2F8 */
41         unsigned int com2_irq;                                  /* e.g. 3 */
42         unsigned int unwanted_vpci[MAX_UNWANTED_VPCI];  /* the following allow you to disable unwanted virtualized PCI devices */
43
44 };
45
46 #endif  /* _SOUTHBRIDGE_AMD_CS5536 */