blob: e3444582e0ce710463c60e15bb9af3d7c09cba10 [file] [log] [blame]
Stefan Reinauerdebb11f2008-10-29 04:46:52 +00001/*
2 * This file is part of the coreboot project.
3 *
Stefan Reinauera8e11682009-03-11 14:54:18 +00004 * Copyright (C) 2008-2009 coresystems GmbH
Stefan Reinauerdebb11f2008-10-29 04:46:52 +00005 *
Stefan Reinauera8e11682009-03-11 14:54:18 +00006 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
9 * the License.
Stefan Reinauerdebb11f2008-10-29 04:46:52 +000010 *
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.
Stefan Reinauerdebb11f2008-10-29 04:46:52 +000015 */
16
17#include <console/console.h>
18#include <device/device.h>
19#include <device/pci.h>
20#include "i82801gx.h"
21
Kyösti Mälkki8aa7e832013-07-26 08:52:10 +030022#if !CONFIG_MMCONF_SUPPORT_DEFAULT
23#error ICH7 requires CONFIG_MMCONF_SUPPORT_DEFAULT
24#endif
25
Stefan Reinauerdebb11f2008-10-29 04:46:52 +000026void i82801gx_enable(device_t dev)
27{
Stefan Reinauera8e11682009-03-11 14:54:18 +000028 u32 reg32;
29
30 /* Enable SERR */
31 reg32 = pci_read_config32(dev, PCI_COMMAND);
32 reg32 |= PCI_COMMAND_SERR;
33 pci_write_config32(dev, PCI_COMMAND, reg32);
Stefan Reinauerdebb11f2008-10-29 04:46:52 +000034}
35
36struct chip_operations southbridge_intel_i82801gx_ops = {
37 CHIP_NAME("Intel ICH7/ICH7-M (82801Gx) Series Southbridge")
38 .enable_dev = i82801gx_enable,
39};