mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: xiyou.wangcong@gmail.com
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, WANG Cong <xiyou.wangcong@gmail.com>,
	Mikael Starvik <starvik@axis.com>,
	Jesper Nilsson <jesper.nilsson@axis.com>,
	linux-cris-kernel@axis.com
Subject: [Patch] cris: add arch/cris/include/asm/serial.h
Date: Fri,  5 Aug 2011 13:46:00 +0800	[thread overview]
Message-ID: <1312523160-30345-1-git-send-email-xiyou.wangcong@gmail.com> (raw)

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 */
+

                 reply	other threads:[~2011-08-05  5:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1312523160-30345-1-git-send-email-xiyou.wangcong@gmail.com \
    --to=xiyou.wangcong@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=jesper.nilsson@axis.com \
    --cc=linux-cris-kernel@axis.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=starvik@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®