tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / supermicro / h8qgi / mainboard.c
blob0b1f00bc73011f05ae32c658b19d3df1f779776d
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 - 2012 Advanced Micro Devices, Inc.
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; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <console/console.h>
17 #include <device/device.h>
18 #include <device/pci.h>
19 #include <arch/io.h>
20 #include <cpu/x86/msr.h>
21 #include <cpu/amd/mtrr.h>
22 #include <device/pci_def.h>
23 #include <NbPlatform.h>
25 void set_pcie_dereset(void *nbconfig);
26 void set_pcie_reset(void *nbconfig);
28 /**
31 void set_pcie_reset(void *nbconfig)
35 /**
36 * Mainboard specific RD890 CIMx callback
37 * Release Resets to PCIe Links
38 * For Both SR56X0 chips, PCIE_RESET_GPIO1 to reset pcie
40 void set_pcie_dereset(void *nbconfig)
42 //u32 nb_dev = MAKE_SBDFO(0, 0x0, 0x0, 0x0, 0x0);
43 u32 i;
44 u32 val;
45 u32 nb_addr;
47 val = 0x00000007UL;
48 AMD_NB_CONFIG_BLOCK *pConfig = (AMD_NB_CONFIG_BLOCK*)nbconfig;
49 for (i = 0; i < MAX_NB_COUNT; i ++) {
50 nb_addr = pConfig->Northbridges[i].NbPciAddress.AddressValue | NB_HTIU_INDEX;
51 LibNbPciIndexRMW(nb_addr,
52 NB_HTIU_REGA8,
53 AccessS3SaveWidth32,
54 ~val,
55 val,
56 &(pConfig->Northbridges[i]));
61 /*************************************************
62 * enable the dedicated function in h8qgi board.
63 *************************************************/
64 static void mainboard_enable(device_t dev)
66 printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
69 struct chip_operations mainboard_ops = {
70 .enable_dev = mainboard_enable,