mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	barebox@lists.infradead.org
Subject: Re: [PATCH 05/11] arm: mvebu: convert Armada 370/XP to common init
Date: Tue, 21 May 2013 08:47:26 +0200	[thread overview]
Message-ID: <20130521064726.GI32299@pengutronix.de> (raw)
In-Reply-To: <519B1662.7070502@gmail.com>

On Tue, May 21, 2013 at 08:38:26AM +0200, Sebastian Hesselbarth wrote:
> On 05/21/2013 08:33 AM, Sascha Hauer wrote:
> >On Tue, May 21, 2013 at 08:28:10AM +0200, Sascha Hauer wrote:
> >>Sebastian,
> >>
> >>>+static int armada_370_xp_init_soc(void)
> >>>  {
> >>>  	unsigned long phys_base, phys_size;
> >>>
> >>>-	mvebu_init_clocks();
> >>>+	armada_370_xp_init_clocks();
> >>>  	add_generic_device("mvebu-timer", DEVICE_ID_SINGLE, NULL,
> >>>-			   MVEBU_TIMER_BASE, 0x30, IORESOURCE_MEM,
> >>>-			   NULL);
> >>>-	mvebu_memory_find(&phys_base,&phys_size);
> >>>+			   (unsigned int)ARMADA_370_XP_TIMER_BASE, 0x30,
> >>>+			   IORESOURCE_MEM, NULL);
> >>>+	armada_370_xp_memory_find(&phys_base,&phys_size);
> >>>  	arm_add_mem_device("ram0", phys_base, phys_size);
> >>>+	armada_370_xp_add_uart();
> >>
> >>How do you want to support a board which uses another UART instead of
> >>uart0 when you call this from SoC code?
> >
> >Ok, I see. You use CONFIG_MVEBU_CONSOLE_UART to determine an UART base.
> >What's the rationale for doing this? We don't want to have compile time
> >decisions for things we know at runtime.
> 
> How do you know the UART console by runtime? It can be on any UART
> possible.

Well ok, you can't really know it at runtime, but you could use multiple
consoles or maybe you could register a specific uart based on a
configuration option in the environment or some bootstrap pin. These
are all not very common examples, but I think you shouldn't prevent them
in your SoC code.

> Anyway, as we are moving to DT with the next patches, all
> enabled uarts will be registered.
> 
> But leaves the question, how to get the correct UART for console?

Using the linux,stdout-path property in the chosen node.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

  reply	other threads:[~2013-05-21  6:47 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-19 18:23 [PATCH 00/11] arm: mvebu: SoC consolidation Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 01/11] arm: mvebu: add more visible SoC separators to Kconfig Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 02/11] arm: mvebu: introduce common lowlevel and early init Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 03/11] arm: mvebu: introduce common console UART config Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 04/11] arm: mvebu: convert Dove to common init Sebastian Hesselbarth
2013-05-21 13:49   ` Sascha Hauer
2013-05-21 15:24     ` Sebastian Hesselbarth
2013-05-21 17:49       ` Sascha Hauer
2013-05-19 18:23 ` [PATCH 05/11] arm: mvebu: convert Armada 370/XP " Sebastian Hesselbarth
2013-05-21  6:28   ` Sascha Hauer
2013-05-21  6:32     ` Sebastian Hesselbarth
2013-05-21  6:33     ` Sascha Hauer
2013-05-21  6:38       ` Sebastian Hesselbarth
2013-05-21  6:47         ` Sascha Hauer [this message]
2013-05-21  7:16           ` Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 06/11] arm: mvebu: convert Kirkwood " Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 07/11] arm: mvebu: convert SolidRun CuBox " Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 08/11] arm: mvebu: convert Globalscale Mirabox " Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 09/11] arm: mvebu: convert PlatHome OpenBlocks AX3 " Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 10/11] arm: mvebu: convert Marvell Armada XP GP board " Sebastian Hesselbarth
2013-05-19 18:23 ` [PATCH 11/11] arm: mvebu: convert Globalscale Guruplug " Sebastian Hesselbarth
2013-05-19 18:41 ` [PATCH 00/11] arm: mvebu: SoC consolidation Thomas Petazzoni
2013-05-19 18:42 ` Thomas Petazzoni

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=20130521064726.GI32299@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=thomas.petazzoni@free-electrons.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