blob: f5411c04f2e2f07a9267ed3183f7ef459edefd1f [file] [log] [blame]
Marc Jonesa67d4fd2007-05-04 19:05:36 +00001/*
Stefan Reinauer7e61e452008-01-18 10:35:56 +00002 * This file is part of the coreboot project.
Jordan Crouse4fcb3ba2007-05-10 17:58:11 +00003 *
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.
Jordan Crouse4fcb3ba2007-05-10 17:58:11 +000015 */
Marc Jonesa67d4fd2007-05-04 19:05:36 +000016
Li-Ta Lo5d698962006-04-20 21:31:47 +000017#ifndef _SOUTHBRIDGE_AMD_CS5536
18#define _SOUTHBRIDGE_AMD_CS5536
19
Jordan Crouse2a133f72007-05-10 18:43:57 +000020#define MAX_UNWANTED_VPCI 8 /* increase if needed */
Ronald G. Minnichda7ee9f2006-07-21 19:21:38 +000021
Li-Ta Lo5d698962006-04-20 21:31:47 +000022struct southbridge_amd_cs5536_config {
Jordan Crouse2a133f72007-05-10 18:43:57 +000023 unsigned int lpc_serirq_enable; /* interrupt enables for LPC bus; each bit is an irq 0-15 */
24 unsigned int lpc_serirq_polarity; /* LPC IRQ polarity; each bit is an irq 0-15 */
25 unsigned char lpc_serirq_mode; /* 0:Continuous 1:Quiet */
26 unsigned int enable_gpio_int_route; /* GPIO(0-0x20) for INT D:C:B:A, 0xFF=none. See virtual pci spec... */
Marc Jonesa67d4fd2007-05-04 19:05:36 +000027 unsigned char enable_ide_nand_flash; /* 0:IDE 1:FLASH, if you are using nand flash instead of IDE drive */
Jordan Crouse2a133f72007-05-10 18:43:57 +000028 unsigned char enable_USBP4_device; /* Enable USB Port 4 0:host 1:device */
Marc Jonesa67d4fd2007-05-04 19:05:36 +000029 unsigned int enable_USBP4_overcurrent; /* 0:off, xxxx:overcurrent setting, e.g. 0x3FEA CS5536 - Data Book (pages 380-381) */
Jordan Crouse2a133f72007-05-10 18:43:57 +000030 unsigned char com1_enable; /* enable COM1 */
31 unsigned int com1_address; /* e.g. 0x3F8 */
32 unsigned int com1_irq; /* e.g. 4 */
33 unsigned char com2_enable; /* enable COM2 */
34 unsigned int com2_address; /* e.g. 0x2F8 */
35 unsigned int com2_irq; /* e.g. 3 */
Marc Jonesa67d4fd2007-05-04 19:05:36 +000036 unsigned int unwanted_vpci[MAX_UNWANTED_VPCI]; /* the following allow you to disable unwanted virtualized PCI devices */
Li-Ta Lo5d698962006-04-20 21:31:47 +000037};
38
Edward O'Callaghan309a7ff2014-08-09 21:38:56 +100039#endif /* _SOUTHBRIDGE_AMD_CS5536 */