Scott Duplichan | a649a96 | 2011-02-24 05:00:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2011 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> |
| 28 | //#include <southbridge/amd/sb800/sb800.h> |
| 29 | #include "chip.h" |
| 30 | |
| 31 | //#define SMBUS_IO_BASE 0x6000 |
| 32 | |
| 33 | /** |
| 34 | * TODO |
| 35 | * SB CIMx callback |
| 36 | */ |
| 37 | void set_pcie_reset(void) |
| 38 | { |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * TODO |
| 43 | * mainboard specific SB CIMx callback |
| 44 | */ |
| 45 | void set_pcie_dereset(void) |
| 46 | { |
| 47 | } |
| 48 | |
Scott Duplichan | a649a96 | 2011-02-24 05:00:33 +0000 | [diff] [blame] | 49 | |
| 50 | /************************************************* |
Scott Duplichan | 63896e7 | 2011-02-26 17:49:49 +0000 | [diff] [blame] | 51 | * enable the dedicated function in e350m1 board. |
Scott Duplichan | a649a96 | 2011-02-24 05:00:33 +0000 | [diff] [blame] | 52 | *************************************************/ |
Scott Duplichan | 63896e7 | 2011-02-26 17:49:49 +0000 | [diff] [blame] | 53 | static void e350m1_enable(device_t dev) |
Scott Duplichan | a649a96 | 2011-02-24 05:00:33 +0000 | [diff] [blame] | 54 | { |
Scott Duplichan | 63896e7 | 2011-02-26 17:49:49 +0000 | [diff] [blame] | 55 | printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); |
Kyösti Mälkki | 55fff930 | 2012-07-11 08:02:39 +0300 | [diff] [blame] | 56 | setup_uma_memory(); |
Scott Duplichan | a649a96 | 2011-02-24 05:00:33 +0000 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | int add_mainboard_resources(struct lb_memory *mem) |
| 60 | { |
Scott Duplichan | a649a96 | 2011-02-24 05:00:33 +0000 | [diff] [blame] | 61 | return 0; |
| 62 | } |
| 63 | struct chip_operations mainboard_ops = { |
Scott Duplichan | 63896e7 | 2011-02-26 17:49:49 +0000 | [diff] [blame] | 64 | CHIP_NAME(CONFIG_MAINBOARD_VENDOR " " CONFIG_MAINBOARD_PART_NUMBER " Mainboard") |
| 65 | .enable_dev = e350m1_enable, |
Scott Duplichan | a649a96 | 2011-02-24 05:00:33 +0000 | [diff] [blame] | 66 | }; |