Marc Jones | 738347e | 2010-09-13 19:24:38 +0000 | [diff] [blame] | 1 | /* |
| 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 Jones | 738347e | 2010-09-13 19:24:38 +0000 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <console/console.h> |
| 17 | #include <device/device.h> |
| 18 | #include <device/pci.h> |
| 19 | #include <arch/io.h> |
Marc Jones | 738347e | 2010-09-13 19:24:38 +0000 | [diff] [blame] | 20 | #include <cpu/x86/msr.h> |
| 21 | #include <cpu/amd/mtrr.h> |
| 22 | #include <device/pci_def.h> |
efdesign98 | 00c8c4a | 2011-07-20 12:37:58 -0600 | [diff] [blame] | 23 | #include "southbridge/amd/sb700/sb700.h" |
| 24 | #include "southbridge/amd/sb700/smbus.h" |
Marc Jones | 738347e | 2010-09-13 19:24:38 +0000 | [diff] [blame] | 25 | |
Marc Jones | 738347e | 2010-09-13 19:24:38 +0000 | [diff] [blame] | 26 | void set_pcie_dereset(void); |
| 27 | void set_pcie_reset(void); |
| 28 | u8 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 | ***/ |
| 33 | void set_pcie_dereset() |
| 34 | { |
| 35 | /* PCIE slot not yet supported.*/ |
| 36 | } |
| 37 | |
| 38 | void set_pcie_reset() |
| 39 | { |
| 40 | /* PCIE slot not yet supported.*/ |
| 41 | } |
| 42 | |
| 43 | u8 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 Menzel | 528640d | 2013-02-23 21:31:23 +0100 | [diff] [blame] | 52 | static void mainboard_enable(device_t dev) |
Marc Jones | 738347e | 2010-09-13 19:24:38 +0000 | [diff] [blame] | 53 | { |
| 54 | printk(BIOS_INFO, "Mainboard Kino Enable. dev=0x%p\n", dev); |
| 55 | |
Marc Jones | 738347e | 2010-09-13 19:24:38 +0000 | [diff] [blame] | 56 | set_pcie_dereset(); |
| 57 | /* get_ide_dma66(); */ |
| 58 | } |
| 59 | |
Marc Jones | 738347e | 2010-09-13 19:24:38 +0000 | [diff] [blame] | 60 | struct chip_operations mainboard_ops = { |
Paul Menzel | 528640d | 2013-02-23 21:31:23 +0100 | [diff] [blame] | 61 | .enable_dev = mainboard_enable, |
Marc Jones | 738347e | 2010-09-13 19:24:38 +0000 | [diff] [blame] | 62 | }; |