From b98ac9d0bf40e5dc76a380012c3b6a0f1606d481 Mon Sep 17 00:00:00 2001 From: WANG Cong Date: Thu, 25 Aug 2011 09:46:11 +1000 Subject: [PATCH] Fix 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 other arch's define it as this value. Signed-off-by: WANG Cong Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Andrew Morton --- arch/cris/include/asm/serial.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/cris/include/asm/serial.h diff --git a/arch/cris/include/asm/serial.h b/arch/cris/include/asm/serial.h new file mode 100644 index 00000000000..7380876ac64 --- /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 */ + -- 2.11.4.GIT