blob: b18e5a6ad5d04ecb7b80128695f0fa56d649bc0e [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.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#include <console/console.h>
21#include <device/device.h>
22#include <device/pci.h>
23#include <arch/io.h>
24#include <boot/tables.h>
25#include <cpu/x86/msr.h>
26#include <cpu/amd/mtrr.h>
27#include <device/pci_def.h>
efdesign9800c8c4a2011-07-20 12:37:58 -060028#include "southbridge/amd/sb700/sb700.h"
29#include "southbridge/amd/sb700/smbus.h"
Marc Jones738347e2010-09-13 19:24:38 +000030#include "chip.h"
31
Marc Jones738347e2010-09-13 19:24:38 +000032void set_pcie_dereset(void);
33void set_pcie_reset(void);
34u8 is_dev3_present(void);
35/* TODO - Need to find GPIO for PCIE slot.
36 * Kino uses GPIO ? as PCIe slot reset, GPIO? as GFX slot reset. We need to
37 * pull it up before training the slot.
38 ***/
39void set_pcie_dereset()
40{
41 /* PCIE slot not yet supported.*/
42}
43
44void set_pcie_reset()
45{
46 /* PCIE slot not yet supported.*/
47}
48
49u8 is_dev3_present(void)
50{
51 return 0;
52}
53
54/*************************************************
55* enable the dedicated function in kino board.
56* This function called early than rs780_enable.
57*************************************************/
58static void kino_enable(device_t dev)
59{
60 printk(BIOS_INFO, "Mainboard Kino Enable. dev=0x%p\n", dev);
61
Kyösti Mälkki231f2612012-07-11 08:02:57 +030062 setup_uma_memory();
Marc Jones738347e2010-09-13 19:24:38 +000063
64 set_pcie_dereset();
65 /* get_ide_dma66(); */
66}
67
68int add_mainboard_resources(struct lb_memory *mem)
69{
Marc Jones738347e2010-09-13 19:24:38 +000070 return 0;
71}
72
73struct chip_operations mainboard_ops = {
74 CHIP_NAME("IEI Kino-780AM2 Mainboard")
75 .enable_dev = kino_enable,
76};