From: Paul Mundt <lethal@linux-sh.org>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/7] [RFC] ARM: shmobile: remove unneeded hack to calculate zreladdr
Date: Tue, 14 Sep 2010 08:08:29 +0000 [thread overview]
Message-ID: <20100914080829.GI7336@linux-sh.org> (raw)
In-Reply-To: <1283507818-1573-2-git-send-email-u.kleine-koenig@pengutronix.de>
On Fri, Sep 03, 2010 at 11:56:53AM +0200, Uwe Kleine-K??nig wrote:
> -config MEMORY_START
> - hex "Physical memory start address"
> - default "0x50000000" if MACH_G3EVM
> - default "0x40000000" if MACH_G4EVM
> - default "0x40000000" if MACH_AP4EVB
> - default "0x00000000"
> - ---help---
> - Tweak this only when porting to a new machine which does not
> - already have a defconfig. Changing it from the known correct
> - value on any of the known systems will only lead to disaster.
> -
[snip]
> -#define PHYS_OFFSET UL(CONFIG_MEMORY_START)
> +#define SH7367_PHYS_OFFSET UL(0x50000000)
> +#define SH7372_PHYS_OFFSET UL(0x40000000)
> +#define SH7377_PHYS_OFFSET UL(0x40000000)
> +
> +#if !defined(CONFIG_RUNTIME_PHYS_OFFSET)
> +# if defined(CONFIG_ARCH_SH7367)
> +# define PHYS_OFFSET SH7367_PHYS_OFFSET
> +# elif defined(CONFIG_ARCH_SH7372)
> +# define PHYS_OFFSET SH7372_PHYS_OFFSET
> +# elif defined(CONFIG_ARCH_SH7377)
> +# define PHYS_OFFSET SH7377_PHYS_OFFSET
> +# endif
> +#endif /* if !defined(CONFIG_RUNTIME_PHYS_OFFSET) */
> +
You've taken a board-specific property and made it CPU-specific. There is
nothing about these CPUs that mandates memory starting here, it just
happens that for the moment we have 1 board per CPU, but that's not an
assumption we can really bank on.
next prev parent reply other threads:[~2010-09-14 8:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20100903095504.GC13643@pengutronix.de>
2010-09-03 9:56 ` [PATCH 2/7] [RFC] ARM: shmobile: remove unneeded hack to calculate zreladdr
2010-09-03 13:39 ` [PATCH 2/7] [RFC] ARM: shmobile: remove unneeded hack to Eric Miao
2010-09-03 18:53 `
2010-09-14 8:08 ` Paul Mundt [this message]
2010-09-14 12:23 `
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=20100914080829.GI7336@linux-sh.org \
--to=lethal@linux-sh.org \
--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).