blob: ebb0e20adb1c6425624d5246121e6e6f562656a1 [file] [log] [blame]
Marc Jones738347e2010-09-13 19:24:38 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2010 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; version 2 of the License.
9 *
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.
Marc Jones738347e2010-09-13 19:24:38 +000014 */
15
16#include <console/console.h>
17#include <device/device.h>
18#include <device/pci.h>
19#include <arch/io.h>
Marc Jones738347e2010-09-13 19:24:38 +000020#include <cpu/x86/msr.h>
21#include <cpu/amd/mtrr.h>
22#include <device/pci_def.h>
efdesign9800c8c4a2011-07-20 12:37:58 -060023#include "southbridge/amd/sb700/sb700.h"
24#include "southbridge/amd/sb700/smbus.h"
Marc Jones738347e2010-09-13 19:24:38 +000025
Marc Jones738347e2010-09-13 19:24:38 +000026void set_pcie_dereset(void);
27void set_pcie_reset(void);
28u8 is_dev3_present(void);
29/* TODO - Need to find GPIO for PCIE slot.
30 * Kino uses GPIO ? as PCIe slot reset, GPIO? as GFX slot reset. We need to
31 * pull it up before training the slot.
32 ***/
33void set_pcie_dereset()
34{
35 /* PCIE slot not yet supported.*/
36}
37
38void set_pcie_reset()
39{
40 /* PCIE slot not yet supported.*/
41}
42
43u8 is_dev3_present(void)
44{
45 return 0;
46}
47
48/*************************************************
49* enable the dedicated function in kino board.
50* This function called early than rs780_enable.
51*************************************************/
Paul Menzel528640d2013-02-23 21:31:23 +010052static void mainboard_enable(device_t dev)
Marc Jones738347e2010-09-13 19:24:38 +000053{
54 printk(BIOS_INFO, "Mainboard Kino Enable. dev=0x%p\n", dev);
55
Marc Jones738347e2010-09-13 19:24:38 +000056 set_pcie_dereset();
57 /* get_ide_dma66(); */
58}
59
Marc Jones738347e2010-09-13 19:24:38 +000060struct chip_operations mainboard_ops = {
Paul Menzel528640d2013-02-23 21:31:23 +010061 .enable_dev = mainboard_enable,
Marc Jones738347e2010-09-13 19:24:38 +000062};