| 47 | } |
| 48 | |
| 49 | void console_init(void) |
| 50 | { |
| 51 | init_log_level(); |
| 52 | |
| 53 | if (CONFIG(DEBUG_CONSOLE_INIT)) |
| 54 | console_inited = 1; |
| 55 | |
| 56 | if (CONFIG(EARLY_PCI_BRIDGE) && (ENV_BOOTBLOCK || ENV_SEPARATE_ROMSTAGE)) |
| 57 | pci_early_bridge_init(); |
| 58 | |
| 59 | console_hw_init(); |
| 60 | |
| 61 | console_inited = 1; |
| 62 | |
| 63 | if (ENV_BOOTBLOCK && CONFIG(CONSOLE_CBMEM_PRINT_PRE_BOOTBLOCK_CONTENTS)) |
| 64 | cbmem_dump_console(); |
| 65 | |
| 66 | printk(BIOS_NOTICE, "\n\ncoreboot-%s%s %s " ENV_ARCH " " ENV_STRING " starting (log level: %i)...\n", |
| 67 | coreboot_version, coreboot_extra_version, coreboot_build, get_log_level()); |
| 68 | } |
no test coverage detected