From c02b4fc9db3c3c1e263027382697b566127f66bb Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 22 Mar 2010 11:42:32 +0000 Subject: printk_foo -> printk(BIOS_FOO, ...) Signed-off-by: Stefan Reinauer Acked-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5266 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/olpc/btest/mainboard.c | 16 ++++++++-------- src/mainboard/olpc/rev_a/mainboard.c | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src/mainboard/olpc') diff --git a/src/mainboard/olpc/btest/mainboard.c b/src/mainboard/olpc/btest/mainboard.c index 40e363f49a..6df993eca4 100644 --- a/src/mainboard/olpc/btest/mainboard.c +++ b/src/mainboard/olpc/btest/mainboard.c @@ -49,22 +49,22 @@ static void init_dcon(void) { unsigned short rev = 0; unsigned short iobase = _getsmbusbase(); - printk_debug("CHECKING FOR DCON (%x)\n", iobase); + printk(BIOS_DEBUG, "CHECKING FOR DCON (%x)\n", iobase); /* Get the IO base for the SMBUS */ rev = do_smbus_read_word(iobase, 0x0D << 1, 0x00); if (rev & 0xDC00) { - printk_debug("DCON FOUND - REV %x\n", rev); + printk(BIOS_DEBUG, "DCON FOUND - REV %x\n", rev); /* Enable the DCON */ ret = do_smbus_write_word(iobase, 0x0D << 1, 0x01, 0x0069); if (ret != 0) - printk_debug("DCON ENABLE FAILED\n", ret); + printk(BIOS_DEBUG, "DCON ENABLE FAILED\n", ret); } else - printk_debug("DCON NOT FOUND (%x)\n", rev); + printk(BIOS_DEBUG, "DCON NOT FOUND (%x)\n", rev); write_bit(rev > 0 ? 1 : 0); } @@ -104,18 +104,18 @@ static void init(struct device *dev) { unsigned char usbirq = 0xa; */ - printk_debug("OLPC BTEST ENTER %s\n", __func__); + printk(BIOS_DEBUG, "OLPC BTEST ENTER %s\n", __func__); #if 0 /* I can't think of any reason NOT to just set this. If it turns out we want this to be * conditional we can make it a config variable later. */ - printk_debug("%s (%x,%x)SET USB PCI interrupt line to %d\n", + printk(BIOS_DEBUG, "%s (%x,%x)SET USB PCI interrupt line to %d\n", __func__, bus, devfn, usbirq); usb = dev_find_slot(bus, devfn); if (! usb){ - printk_err("Could not find USB\n"); + printk(BIOS_ERR, "Could not find USB\n"); } else { pci_write_config8(usb, PCI_INTERRUPT_LINE, usbirq); } @@ -123,7 +123,7 @@ static void init(struct device *dev) { init_dcon(); init_cafe_irq(); - printk_debug("OLPC BTEST EXIT %s\n", __func__); + printk(BIOS_DEBUG, "OLPC BTEST EXIT %s\n", __func__); } static void enable_dev(struct device *dev) diff --git a/src/mainboard/olpc/rev_a/mainboard.c b/src/mainboard/olpc/rev_a/mainboard.c index 604f34ccfd..539603dab2 100644 --- a/src/mainboard/olpc/rev_a/mainboard.c +++ b/src/mainboard/olpc/rev_a/mainboard.c @@ -48,22 +48,22 @@ static void init_dcon(void) { unsigned short rev = 0; unsigned short iobase = _getsmbusbase(); - printk_debug("CHECKING FOR DCON (%x)\n", iobase); + printk(BIOS_DEBUG, "CHECKING FOR DCON (%x)\n", iobase); /* Get the IO base for the SMBUS */ rev = do_smbus_read_word(iobase, 0x0D << 1, 0x00); if (rev & 0xDC00) { - printk_debug("DCON FOUND - REV %x\n", rev); + printk(BIOS_DEBUG, "DCON FOUND - REV %x\n", rev); /* Enable the DCON */ ret = do_smbus_write_word(iobase, 0x0D << 1, 0x01, 0x0069); if (ret != 0) - printk_debug("DCON ENABLE FAILED\n", ret); + printk(BIOS_DEBUG, "DCON ENABLE FAILED\n", ret); } else - printk_debug("DCON NOT FOUND (%x)\n", rev); + printk(BIOS_DEBUG, "DCON NOT FOUND (%x)\n", rev); write_bit(rev > 0 ? 1 : 0); } @@ -76,25 +76,25 @@ static void init(struct device *dev) { unsigned char usbirq = 0xa; */ - printk_debug("OLPC REVA ENTER %s\n", __func__); + printk(BIOS_DEBUG, "OLPC REVA ENTER %s\n", __func__); #if 0 /* I can't think of any reason NOT to just set this. If it turns out we want this to be * conditional we can make it a config variable later. */ - printk_debug("%s (%x,%x)SET USB PCI interrupt line to %d\n", + printk(BIOS_DEBUG, "%s (%x,%x)SET USB PCI interrupt line to %d\n", __func__, bus, devfn, usbirq); usb = dev_find_slot(bus, devfn); if (! usb){ - printk_err("Could not find USB\n"); + printk(BIOS_ERR, "Could not find USB\n"); } else { pci_write_config8(usb, PCI_INTERRUPT_LINE, usbirq); } #endif init_dcon(); - printk_debug("OLPC REVA EXIT %s\n", __func__); + printk(BIOS_DEBUG, "OLPC REVA EXIT %s\n", __func__); } static void enable_dev(struct device *dev) -- cgit v1.2.3