From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Hauke Mehrtens <hauke@hauke-m.de>
Cc: ralf@linux-mips.org, linux-mips@linux-mips.org
Subject: Re: [PATCH 2/2] MIPS: BCM47XX: add EARLY_PRINTK_8250 support
Date: Fri, 20 Sep 2013 02:08:16 +0400 [thread overview]
Message-ID: <523B75D0.7090709@cogentembedded.com> (raw)
In-Reply-To: <1379627091-30769-2-git-send-email-hauke@hauke-m.de>
Hello.
On 09/20/2013 01:44 AM, Hauke Mehrtens wrote:
> The BCM47xx SoCs have a 8250 serial compatible console at address
> 0xb8000300 and an other at 0xb8000400. On most devices 0xb8000300 is
> wired to some pins on the board, we should use that.
I think these are KSEG1 virtual addresses, not physical.
> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
> ---
> arch/mips/Kconfig | 2 ++
> arch/mips/bcm47xx/prom.c | 1 +
> 2 files changed, 3 insertions(+)
[...]
> diff --git a/arch/mips/bcm47xx/prom.c b/arch/mips/bcm47xx/prom.c
> index 99c3ce2..26f49f8 100644
> --- a/arch/mips/bcm47xx/prom.c
> +++ b/arch/mips/bcm47xx/prom.c
> @@ -97,6 +97,7 @@ static __init void prom_init_mem(void)
> void __init prom_init(void)
> {
> prom_init_mem();
> + setup_8250_early_printk_port(CKSEG1ADDR(0xb8000300), 0, 0);
Applying CKSEG1ADDR() to virtual address is wrong.
WBR, Sergei
prev parent reply other threads:[~2013-09-19 22:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-19 21:44 [PATCH 1/2] MIPS: BCM47XX: Remove CFE support Hauke Mehrtens
2013-09-19 21:44 ` [PATCH 2/2] MIPS: BCM47XX: add EARLY_PRINTK_8250 support Hauke Mehrtens
2013-09-19 22:08 ` Sergei Shtylyov [this message]
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=523B75D0.7090709@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=hauke@hauke-m.de \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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 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.