summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
Diffstat (limited to 'src/console')
-rw-r--r--src/console/uart8250_console.c3
1 files changed, 2 insertions, 1 deletions
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