allow TTYS0_DIV to be set explicitly

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1334 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Greg Watson 2004-01-14 17:08:14 +00:00
parent 696ba78a13
commit bf5b584801
2 changed files with 8 additions and 1 deletions

View File

@ -395,6 +395,12 @@ define TTYS0_BAUD
export always export always
comment "Default baud rate for serial console" comment "Default baud rate for serial console"
end end
define TTYS0_DIV
default none
format "%d"
export used
comment "Allow UART divisor to be set explicitly"
end
define TTYS0_LCS define TTYS0_LCS
default 0x3 default 0x3
format "0x%x" format "0x%x"

View File

@ -11,11 +11,12 @@
#define TTYS0_BAUD 115200 #define TTYS0_BAUD 115200
#endif #endif
#ifndef TTYS0_DIV
#if ((115200%TTYS0_BAUD) != 0) #if ((115200%TTYS0_BAUD) != 0)
#error Bad ttys0 baud rate #error Bad ttys0 baud rate
#endif #endif
#define TTYS0_DIV (115200/TTYS0_BAUD) #define TTYS0_DIV (115200/TTYS0_BAUD)
#endif
/* Line Control Settings */ /* Line Control Settings */
#ifndef TTYS0_LCS #ifndef TTYS0_LCS