This patch converts __FUNCTION__ to __func__, since __func__ is standard.
[coreboot.git] / src / mainboard / artecgroup / dbe61 / mainboard.c
1 /*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007 Advanced Micro Devices
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 version 2 as
8 * published by the Free Software Foundation.
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 <device/pci_ids.h>
24 #include <device/pci_ops.h>
25 #include <arch/io.h>
26 #include <cpu/x86/msr.h>
27 #include <cpu/amd/lxdef.h>
28 #include "../../../southbridge/amd/cs5536/cs5536.h"
29 #include "chip.h"
30
31 static void init_gpio()
32 {
33         msr_t msr;
34         printk_debug("Checking GPIO module...\n");
35
36         msr = rdmsr(MDD_LBAR_GPIO);
37         printk_debug("DIVIL_LBAR_GPIO set to 0x%08x 0x%08x\n", msr.hi, msr.lo);
38 }
39
40 static void init(struct device *dev)
41 {
42         // BOARD-SPECIFIC INIT
43         printk_debug("ARTECGROUP DBE61 ENTER %s\n", __func__);
44
45         init_gpio();
46
47         printk_debug("ARTECGROUP DBE61 EXIT %s\n", __func__);
48 }
49
50 static void enable_dev(struct device *dev)
51 {
52         dev->ops->init = init;
53 }
54
55 struct chip_operations mainboard_artecgroup_dbe61_ops = {
56         CHIP_NAME("Artec Group dbe61 Mainboard")
57         .enable_dev = enable_dev,
58 };