All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] cris: add arch/cris/include/asm/serial.h
@ 2011-08-05  5:46 xiyou.wangcong
  0 siblings, 0 replies; only message in thread
From: xiyou.wangcong @ 2011-08-05  5:46 UTC (permalink / raw)
  To: linux-kernel
  Cc: akpm, WANG Cong, Mikael Starvik, Jesper Nilsson, linux-cris-kernel

This fixes the following build errors:

src/drivers/tty/serial/8250_early.c:160: error: 'BASE_BAUD' undeclared (first use in this function): 1 errors in 1 logs
        v3.0/cris/cris-allyesconfig
src/drivers/tty/serial/8250_early.c:160: error: (Each undeclared identifier is reported only once: 1 errors in 1 logs
        v3.0/cris/cris-allyesconfig
src/drivers/tty/serial/8250_early.c:160: error: for each function it appears in.): 1 errors in 1 logs
        v3.0/cris/cris-allyesconfig
src/drivers/tty/serial/8250_early.c:37:24: error: asm/serial.h: No such file or directory: 1 errors in 1 logs
        v3.0/cris/cris-allyesconfig

I am not sure if (1843200 / 16) is suitable for cris, but
most of other arch's define it as this value.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>

---
diff --git a/arch/cris/include/asm/serial.h b/arch/cris/include/asm/serial.h
new file mode 100644
index 0000000..7380876
--- /dev/null
+++ b/arch/cris/include/asm/serial.h
@@ -0,0 +1,10 @@
+#ifndef _ASM_SERIAL_H
+#define _ASM_SERIAL_H
+
+/*
+ * This assumes you have a 1.8432 MHz clock for your UART.
+ */
+#define BASE_BAUD (1843200 / 16)
+
+#endif /* _ASM_SERIAL_H */
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-05  5:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05  5:46 [Patch] cris: add arch/cris/include/asm/serial.h xiyou.wangcong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.