linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/3] ARM: PRIMA2: make mach-prima2 common for all SiRF series SoC
Date: Tue, 21 Aug 2012 07:57:32 +0000	[thread overview]
Message-ID: <201208210757.32852.arnd@arndb.de> (raw)
In-Reply-To: <CAGsJ_4ynJjm6WuA6NGZdOgj80Xc=ZxKcRatQuEacVW=EXuxh=w@mail.gmail.com>

On Tuesday 21 August 2012, Barry Song wrote:
> for the moment, that is needed just because the DEBUG UART base
> address is difficult for different SoC. debug-macro.S is very early,
> it depends on the SIRFSOC_UART1_PA_BASE.
> 
>  /* UART-1: used as serial debug port */
>  #ifdef CONFIG_ARCH_PRIMA2
> #define SIRFSOC_UART1_PA_BASE          0xb0060000
>  #elif defined(CONFIG_ARCH_MARCO)
> #define SIRFSOC_UART1_PA_BASE          0xcc060000
> #endif
> otherwise, PRIMA2 and MARCO can co-exist.

Ok, I see.

> i think i can find some ways to set the rp dynamically according to chip type.
>          .macro  addruart, rp, rv, tmp
>          ldr     \rp, =SIRFSOC_UART1_PA_BASE             @ physical
>          ldr     \rv, =SIRFSOC_UART1_VA_BASE             @ virtual
>          .endm

The most common way to do this is to have multiple entries in
arch/arm/Kconfig.debug in the "Kernel low-level debugging port"
menu. For production kernels, you would just leave out DEBUG_LL
while for debugging you have to pick one UART.

	Arnd

  reply	other threads:[~2012-08-21  7:57 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-20  8:19 [PATCH 0/3] ARM: PRIMA2: some patches prepared to support new SiRF SoCs Barry Song
2012-08-20  8:19 ` [PATCH 1/3] ARM: PRIMA2: use DT_MACHINE_START and convert to generic board Barry Song
2012-08-20 20:56   ` Arnd Bergmann
2012-08-21  1:49     ` Barry Song
2012-08-21  7:53       ` Arnd Bergmann
2012-08-21  8:26         ` Barry Song
2012-08-21  8:44           ` Arnd Bergmann
2012-08-20  8:19 ` [PATCH 2/3] ARM: PRIMA2: make mach-prima2 common for all SiRF series SoC Barry Song
2012-08-20 21:06   ` Arnd Bergmann
2012-08-21  1:56     ` Barry Song
2012-08-21  7:57       ` Arnd Bergmann [this message]
2012-08-21  9:16         ` Barry Song
2012-08-21  9:20           ` Arnd Bergmann
2012-08-28  6:15             ` Barry Song
2012-08-28  8:08               ` Barry Song
2012-08-28 14:28                 ` Stephen Warren
2012-08-28 14:57                   ` Barry Song
2012-08-21  9:29       ` Barry Song
2012-08-21 10:16         ` Arnd Bergmann
2012-08-21  2:06     ` Barry Song
2012-08-21  7:55       ` Arnd Bergmann
2012-08-20  8:19 ` [PATCH 3/3] ARM: SIRF: make sirf irqchip driver selectable since new SoCs will have GIC Barry Song

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=201208210757.32852.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).