Bingxun Shi | fb1fddb | 2007-02-09 00:26:10 +0000 | [diff] [blame] | 1 | /* |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | * This file is part of the coreboot project. |
Bingxun Shi | fb1fddb | 2007-02-09 00:26:10 +0000 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2006 MSI |
| 5 | * Written by Bingxun Shi <bingxunshi@gmail.com> for MSI. |
Stefan Reinauer | b24d07c | 2010-08-14 17:45:54 +0000 | [diff] [blame] | 6 | * Copyright (C) 2007-2009 coresystems GmbH |
Bingxun Shi | fb1fddb | 2007-02-09 00:26:10 +0000 | [diff] [blame] | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
Stefan Reinauer | b24d07c | 2010-08-14 17:45:54 +0000 | [diff] [blame] | 10 | * the Free Software Foundation; version 2 of the License. |
Bingxun Shi | fb1fddb | 2007-02-09 00:26:10 +0000 | [diff] [blame] | 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
Paul Menzel | a46a712 | 2013-02-23 18:37:27 +0100 | [diff] [blame^] | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Bingxun Shi | fb1fddb | 2007-02-09 00:26:10 +0000 | [diff] [blame] | 20 | */ |
| 21 | |
| 22 | #include <console/console.h> |
| 23 | #include <device/device.h> |
| 24 | #include <device/pci.h> |
| 25 | #include <device/pci_ids.h> |
| 26 | #include <device/pci_ops.h> |
Uwe Hermann | 397ff68 | 2010-12-17 18:04:26 +0000 | [diff] [blame] | 27 | // #include "hda_verb.h" |
Bingxun Shi | fb1fddb | 2007-02-09 00:26:10 +0000 | [diff] [blame] | 28 | |
Stefan Reinauer | b24d07c | 2010-08-14 17:45:54 +0000 | [diff] [blame] | 29 | static void verb_setup(void) |
| 30 | { |
Uwe Hermann | 397ff68 | 2010-12-17 18:04:26 +0000 | [diff] [blame] | 31 | /* TODO: Add a correct hda_verb.h file for this board. */ |
| 32 | // cim_verb_data = mainboard_cim_verb_data; |
| 33 | // cim_verb_data_size = sizeof(mainboard_cim_verb_data); |
Stefan Reinauer | b24d07c | 2010-08-14 17:45:54 +0000 | [diff] [blame] | 34 | } |
| 35 | |
Stefan Reinauer | 5ff7c13 | 2011-10-31 12:56:45 -0700 | [diff] [blame] | 36 | static void mainboard_enable(device_t dev) |
Stefan Reinauer | b24d07c | 2010-08-14 17:45:54 +0000 | [diff] [blame] | 37 | { |
| 38 | verb_setup(); |
| 39 | } |
| 40 | |
Carl-Daniel Hailfinger | 7ad11e8 | 2009-02-18 20:41:57 +0000 | [diff] [blame] | 41 | struct chip_operations mainboard_ops = { |
Stefan Reinauer | b24d07c | 2010-08-14 17:45:54 +0000 | [diff] [blame] | 42 | .enable_dev = mainboard_enable, |
Bingxun Shi | fb1fddb | 2007-02-09 00:26:10 +0000 | [diff] [blame] | 43 | }; |