printk_foo -> printk(BIOS_FOO, ...)
[coreboot.git] / src / southbridge / via / vt8237r / vt8237r_usb.c
index bc4c34f8f936839c33505f5c11f2822b4cc67b80..4bd33d6346f240d82db67144bcdabbfbc806785e 100644 (file)
@@ -2,10 +2,10 @@
  * This file is part of the coreboot project.
  *
  * Copyright (C) 2007, 2008 Rudolf Marek <r.marek@assembler.cz>
- * Copyright (C) 2009          Jon Harrison <bothlyn@blueyonder.co.uk>
+ * Copyright (C) 2009 Jon Harrison <bothlyn@blueyonder.co.uk>
  *
  * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License v2 as published by
+ * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation.
  *
  * This program is distributed in the hope that it will be useful,
 #include <device/pci_ids.h>
 #include "vt8237r.h"
 
-#ifdef CONFIG_EPIA_VT8237R_INIT
+#if CONFIG_EPIA_VT8237R_INIT
 u32 usb_io_addr[4] = {0xcc00, 0xd000, 0xd400, 0xd800};
 #endif
 
 static void usb_i_init(struct device *dev)
 {
 
-#ifdef CONFIG_EPIA_VT8237R_INIT
+#if CONFIG_EPIA_VT8237R_INIT
        u8 reg8;
 
-       printk_debug("Entering %s\n", __func__);
+       printk(BIOS_DEBUG, "Entering %s\n", __func__);
 
-       printk_spew("%s Read %02X from PCI Command Reg\n", dev_path(dev), reg8);
+       printk(BIOS_SPEW, "%s Read %02X from PCI Command Reg\n", dev_path(dev), reg8);
 
        reg8 = pci_read_config8(dev, 0x04);
 
        reg8 = reg8 | PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY;
        pci_write_config8(dev, 0x04, reg8);
 
-       printk_spew("%s Wrote %02X to PCI Command Reg\n", dev_path(dev), reg8);
+       printk(BIOS_SPEW, "%s Wrote %02X to PCI Command Reg\n", dev_path(dev), reg8);
 
        /* Set Cache Line Size and Latency Timer */
        pci_write_config8(dev, 0x0c, 0x08);
@@ -70,11 +70,11 @@ static void usb_i_init(struct device *dev)
 
 static void vt8237_usb_i_read_resources(struct device *dev)
 {
-#ifdef CONFIG_EPIA_VT8237R_INIT
+#if CONFIG_EPIA_VT8237R_INIT
        struct resource *res;
        u8 function = (u8) dev->path.pci.devfn & 0x7;
 
-       printk_spew("VT8237R Fixing USB 1.1 fn %d I/O resource = 0x%04X\n", function, usb_io_addr[function]);
+       printk(BIOS_SPEW, "VT8237R Fixing USB 1.1 fn %d I/O resource = 0x%04X\n", function, usb_io_addr[function]);
 
        /* Fix the I/O Resources of the USB1.1 Interfaces */
        /* Auto PCI probe seems to size the resources     */
@@ -95,10 +95,10 @@ static void vt8237_usb_i_read_resources(struct device *dev)
 
 static void usb_ii_init(struct device *dev)
 {
-#ifdef CONFIG_EPIA_VT8237R_INIT
+#if CONFIG_EPIA_VT8237R_INIT
        u8 reg8;
 
-       printk_debug("Entering %s\n", __func__);
+       printk(BIOS_DEBUG, "Entering %s\n", __func__);
 
        /* Set memory Write and Invalidate */
        reg8 = pci_read_config8(dev, 0x04);
@@ -117,7 +117,7 @@ static void usb_ii_init(struct device *dev)
 
 static void vt8237_usb_ii_read_resources(struct device *dev)
 {
-#ifdef CONFIG_EPIA_VT8237R_INIT
+#if CONFIG_EPIA_VT8237R_INIT
        struct resource *res;
 
        /* Fix the I/O Resources of the USB2.0 Interface */