mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 2/3] MIPS: qemu-malta: debug_ll: fix serial port speed
Date: Fri, 13 Feb 2015 08:53:13 +0300	[thread overview]
Message-ID: <1423806794-23881-3-git-send-email-antonynpavlov@gmail.com> (raw)
In-Reply-To: <1423806794-23881-1-git-send-email-antonynpavlov@gmail.com>

qemu-malta.dts uses clock-frequency = <1843200>,
but debug_ll.h for Malta uses another value.

This patch fixes this inconsistency.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/mips/boards/qemu-malta/include/board/debug_ll.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/mips/boards/qemu-malta/include/board/debug_ll.h b/arch/mips/boards/qemu-malta/include/board/debug_ll.h
index 1e56040..abeee53 100644
--- a/arch/mips/boards/qemu-malta/include/board/debug_ll.h
+++ b/arch/mips/boards/qemu-malta/include/board/debug_ll.h
@@ -22,6 +22,9 @@
 
 #define DEBUG_LL_UART_ADDR	MALTA_PIIX4_UART0
 #define DEBUG_LL_UART_SHIFT	0
-#define DEBUG_LL_UART_DIVISOR 1843200 /* no matter for emulated port */
+
+#define DEBUG_LL_UART_CLK       1843200
+#define DEBUG_LL_UART_BPS       CONFIG_BAUDRATE
+#define DEBUG_LL_UART_DIVISOR   (DEBUG_LL_UART_CLK / DEBUG_LL_UART_BPS)
 
 #endif /* __INCLUDE_BOARD_DEBUG_LL_QEMU_MALTA_H__ */
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2015-02-13  5:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13  5:53 [PATCH 0/3] MIPS Malta serial port fixups Antony Pavlov
2015-02-13  5:53 ` [PATCH 1/3] MIPS: qemu-malta_defconfig: set BAUDRATE=38400 Antony Pavlov
2015-02-13  5:53 ` Antony Pavlov [this message]
2015-02-13  5:53 ` [PATCH 3/3] MIPS: add gxemul-malta_defconfig Antony Pavlov
2015-02-16  5:32 ` [PATCH 0/3] MIPS Malta serial port fixups Sascha Hauer
2015-02-16 10:02   ` Antony Pavlov

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=1423806794-23881-3-git-send-email-antonynpavlov@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /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