All of lore.kernel.org
 help / color / mirror / Atom feed
From: ynezz@true.cz (Petr Štetiar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/5] ARM: ep93xx: increase NR_BANKS to 16 for support of 128MB RAM
Date: Sun, 12 Jun 2011 17:04:58 +0200	[thread overview]
Message-ID: <1307891100-31123-4-git-send-email-ynezz@true.cz> (raw)
In-Reply-To: <1307891100-31123-1-git-send-email-ynezz@true.cz>

I've got hands on one ts-7300 board, which is equiped with 128MB RAM in two
64MB memory chips, so it's 16 banks/8MB each. Without this patch, the bootmem
init code complains about small NR_BANKS number and only lower 64MB is
accessible.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Petr ?tetiar <ynezz@true.cz>
---
 arch/arm/include/asm/setup.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h
index ee2ad8a..b13720d 100644
--- a/arch/arm/include/asm/setup.h
+++ b/arch/arm/include/asm/setup.h
@@ -192,7 +192,11 @@ static struct tagtable __tagtable_##fn __tag = { tag, fn }
 /*
  * Memory map description
  */
-#define NR_BANKS 8
+#ifdef CONFIG_ARCH_EP93XX
+# define NR_BANKS 16
+#else
+# define NR_BANKS 8
+#endif
 
 struct membank {
 	phys_addr_t start;
-- 
1.7.1

  parent reply	other threads:[~2011-06-12 15:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-12 15:04 [PATCH v2 0/5] ep93xx/ts72xx patches Petr Štetiar
2011-06-12 15:04 ` [PATCH v2 1/5] ARM: ep93xx: use more reliable CPLD watchdog for reset on ts72xx Petr Štetiar
2011-06-13 17:39   ` H Hartley Sweeten
2011-06-12 15:04 ` [PATCH v2 2/5] ARM: ep93xx: add model detection for ts-7300 and ts-7400 boards Petr Štetiar
2011-06-13 17:40   ` H Hartley Sweeten
2011-06-12 15:04 ` Petr Štetiar [this message]
2011-06-13 17:43   ` [PATCH v2 3/5] ARM: ep93xx: increase NR_BANKS to 16 for support of 128MB RAM H Hartley Sweeten
2011-06-17 10:32     ` Petr Štetiar
2011-07-09  8:20       ` Petr Štetiar
2011-07-09  8:20         ` Russell King - ARM Linux
2011-06-12 15:04 ` [PATCH v2 4/5] ARM: ep93xx: fix inverted RTS/DTR signals on uart1 Petr Štetiar
2011-06-13 17:38   ` H Hartley Sweeten
2011-06-12 15:05 ` [PATCH v2 5/5] ARM: ep93xx: ts72xx: fix board model detection Petr Štetiar
2011-06-13 17:47   ` H Hartley Sweeten

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=1307891100-31123-4-git-send-email-ynezz@true.cz \
    --to=ynezz@true.cz \
    --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 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.