diff options
author | Greg Watson <jarrah@users.sourceforge.net> | 2004-01-14 17:08:14 +0000 |
---|---|---|
committer | Greg Watson <jarrah@users.sourceforge.net> | 2004-01-14 17:08:14 +0000 |
commit | bf5b58480129dcd6a770f3f2b237511fb295918e (patch) | |
tree | 6d0ee07365f6e9377bcb6c65c013eb2b2cc9b730 /src | |
parent | 696ba78a1359b311b85c55aead4511f76a1b1607 (diff) |
allow TTYS0_DIV to be set explicitly
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1334 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r-- | src/config/Options.lb | 6 | ||||
-rw-r--r-- | src/console/uart8250_console.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/config/Options.lb b/src/config/Options.lb index e0ee437c9b..ef59a779e8 100644 --- a/src/config/Options.lb +++ b/src/config/Options.lb @@ -395,6 +395,12 @@ define TTYS0_BAUD export always comment "Default baud rate for serial console" end +define TTYS0_DIV + default none + format "%d" + export used + comment "Allow UART divisor to be set explicitly" +end define TTYS0_LCS default 0x3 format "0x%x" diff --git a/src/console/uart8250_console.c b/src/console/uart8250_console.c index 6eeeb6aa55..bb51d0f363 100644 --- a/src/console/uart8250_console.c +++ b/src/console/uart8250_console.c @@ -11,11 +11,12 @@ #define TTYS0_BAUD 115200 #endif +#ifndef TTYS0_DIV #if ((115200%TTYS0_BAUD) != 0) #error Bad ttys0 baud rate #endif - #define TTYS0_DIV (115200/TTYS0_BAUD) +#endif /* Line Control Settings */ #ifndef TTYS0_LCS |