* 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:
Stefan Reinauer 2007-02-23 11:33:02 +00:00
parent 791e590dea
commit 464f4cb19d
4 changed files with 31 additions and 3 deletions

View file

@ -11,3 +11,4 @@ source arch/Kconfig
source lib/Kconfig
source console/Kconfig

27
console/Kconfig Normal file
View 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

View file

@ -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

View file

@ -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);