linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 01/06] ARM: shmobile: Introduce SHMOBILE_FIXUP() helper
Date: Wed, 05 Jun 2013 07:34:18 +0000	[thread overview]
Message-ID: <20130605073418.15758.93704.sendpatchset@w520> (raw)
In-Reply-To: <20130605073410.15758.37563.sendpatchset@w520>

From: Magnus Damm <damm@opensource.se>

Introduce SHMOBILE_FIXUP() as a helper function to
allow boards to specify their memory base and size.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/include/mach/common.h |   13 +++++++++++++
 1 file changed, 13 insertions(+)

--- 0001/arch/arm/mach-shmobile/include/mach/common.h
+++ work/arch/arm/mach-shmobile/include/mach/common.h	2013-06-04 13:01:40.000000000 +0900
@@ -37,4 +37,17 @@ static inline void __init shmobile_init_
 	shmobile_cpuidle_init();
 }
 
+#define SHMOBILE_FIXUP(boardname, mem_start, mem_size)			\
+static void __init boardname##_fixup(struct tag *tag, char **cmdline,	\
+				struct meminfo *mi)			\
+{									\
+	for (; tag->hdr.size; tag = tag_next(tag)) {			\
+		if (tag->hdr.tag = ATAG_MEM) {				\
+			tag->u.mem.start = (mem_start);			\
+			tag->u.mem.size = (mem_size);			\
+			break;						\
+		}							\
+	}								\
+}
+
 #endif /* __ARCH_MACH_COMMON_H */

  parent reply	other threads:[~2013-06-05  7:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05  7:34 [PATCH 00/06] ARM: shmobile: Per-board memory size fixups Magnus Damm
2013-06-05  7:31 ` Magnus Damm
2013-06-05  7:34 ` Magnus Damm [this message]
2013-06-05 19:20   ` [PATCH 01/06] ARM: shmobile: Introduce SHMOBILE_FIXUP() helper Russell King - ARM Linux
2013-06-05 23:47     ` Magnus Damm
2013-06-06 17:17       ` Arnd Bergmann
2013-06-10  7:22         ` Magnus Damm
2013-06-10 15:27           ` Arnd Bergmann
2013-06-06 16:53     ` Arnd Bergmann
2013-06-05  7:34 ` [PATCH 02/06] ARM: shmobile: AG5EVM memory size fixup Magnus Damm
2013-06-05  7:34 ` [PATCH 03/06] ARM: shmobile: AP4EVB " Magnus Damm
2013-06-05  7:34 ` [PATCH 04/06] ARM: shmobile: Bonito " Magnus Damm
2013-06-05  7:34 ` [PATCH 05/06] ARM: shmobile: Kota2 " Magnus Damm
2013-06-05  7:34 ` [PATCH 06/06] ARM: shmobile: Marzen " Magnus Damm

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=20130605073418.15758.93704.sendpatchset@w520 \
    --to=magnus.damm@gmail.com \
    --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).