mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
* initial console entries in Kconfig
* small warnings fixes Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@93 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
791e590dea
commit
464f4cb19d
4 changed files with 31 additions and 3 deletions
1
Kconfig
1
Kconfig
|
@ -11,3 +11,4 @@ source arch/Kconfig
|
|||
|
||||
source lib/Kconfig
|
||||
|
||||
source console/Kconfig
|
||||
|
|
27
console/Kconfig
Normal file
27
console/Kconfig
Normal file
|
@ -0,0 +1,27 @@
|
|||
#
|
||||
#
|
||||
#
|
||||
|
||||
menu "Console"
|
||||
|
||||
config CONSOLE_SERIAL
|
||||
boolean "Support serial console (default)"
|
||||
default y
|
||||
---help---
|
||||
Send LinuxBIOS output to serial console
|
||||
|
||||
|
||||
config CONSOLE_VGA
|
||||
boolean "Support VGA console"
|
||||
---help---
|
||||
Send LinuxBIOS output to VGA console as soon as VGA
|
||||
is initialized.
|
||||
|
||||
config CONSOLE_USB
|
||||
boolean "Support USB2 debug console"
|
||||
---help---
|
||||
Send LinuxBIOS output to USB debug console. Note: This requires
|
||||
a USB2 controller which supports the debug capability.
|
||||
|
||||
endmenu
|
||||
|
|
@ -404,7 +404,7 @@ void compute_allocate_resource(
|
|||
|
||||
}
|
||||
|
||||
#if CONFIG_CONSOLE_VGA == 1
|
||||
#if defined(CONFIG_CONSOLE_VGA) && CONFIG_CONSOLE_VGA == 1
|
||||
struct device * vga_pri = 0;
|
||||
static void allocate_vga_resource(void)
|
||||
{
|
||||
|
@ -763,7 +763,7 @@ void dev_phase4(void)
|
|||
mem->flags |= IORESOURCE_ASSIGNED;
|
||||
mem->flags &= ~IORESOURCE_STORED;
|
||||
|
||||
#if CONFIG_CONSOLE_VGA == 1
|
||||
#if defined(CONFIG_CONSOLE_VGA) && CONFIG_CONSOLE_VGA == 1
|
||||
/* Allocate the VGA I/O resource.. */
|
||||
allocate_vga_resource();
|
||||
#endif
|
||||
|
|
|
@ -450,7 +450,7 @@ const char *resource_type(struct resource *resource)
|
|||
void report_resource_stored(struct device * dev, struct resource *resource, const char *comment)
|
||||
{
|
||||
if (resource->flags & IORESOURCE_STORED) {
|
||||
unsigned char buf[10];
|
||||
char buf[10];
|
||||
unsigned long long base, end;
|
||||
base = resource->base;
|
||||
end = resource_end(resource);
|
||||
|
|
Loading…
Add table
Reference in a new issue