From patchwork Wed Jun 5 07:34:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2665861 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id C87453FD4F for ; Wed, 5 Jun 2013 07:28:11 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uk87z-0005qR-Aa; Wed, 05 Jun 2013 07:27:28 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uk87p-0008Ni-37; Wed, 05 Jun 2013 07:27:17 +0000 Received: from mail-pb0-f48.google.com ([209.85.160.48]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uk87m-0008MW-Sk for linux-arm-kernel@lists.infradead.org; Wed, 05 Jun 2013 07:27:15 +0000 Received: by mail-pb0-f48.google.com with SMTP id md4so1387992pbc.35 for ; Wed, 05 Jun 2013 00:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=34JLkWDZmoKeYGjqz9+dOQjz5qJv5PXCiwdzxrLqo8k=; b=nmKHKofE0OcaNN8M1x7td/g/bWtdXwGAIL8GAHKGCvRHVIxnDV9/mhpsbjW/jwBOPz 02M5SjXogYMMxDr51edL46tFIi3hn71jFD2saB9bDl6UQbtUS9Lzy/oPzQGAEcL7i5FT GN/+SLHzaWejqIaoHELB2k4LHqwQkVKE0kKoKEuYqaMOHUTeCp3n+VTJg2lb1+0ZKvWV /sdKwnOLHPfHXyS5ILVrr4u1dGQ6y9t9zw9xNWelLRJk1I0BntXIBcDiAF5EK+5Hvyk4 JGWm5cCOgq0bVtmmsAM+ocfEcqUb/CmLibve/jh1otru9/3/ivl+3Pf8CnFQbHNXlgQO b6Og== X-Received: by 10.68.198.69 with SMTP id ja5mr32520257pbc.183.1370417210316; Wed, 05 Jun 2013 00:26:50 -0700 (PDT) Received: from [127.0.0.1] (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id ig4sm38709509pbc.18.2013.06.05.00.26.48 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 00:26:49 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Wed, 05 Jun 2013 16:34:18 +0900 Message-Id: <20130605073418.15758.93704.sendpatchset@w520> In-Reply-To: <20130605073410.15758.37563.sendpatchset@w520> References: <20130605073410.15758.37563.sendpatchset@w520> Subject: [PATCH 01/06] ARM: shmobile: Introduce SHMOBILE_FIXUP() helper X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130605_032715_000064_42369D32 X-CRM114-Status: UNSURE ( 9.02 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.48 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (magnus.damm[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: arnd@arndb.de, Magnus Damm , horms@verge.net.au, laurent.pinchart@ideasonboard.com, olof@lixom.net, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Magnus Damm Introduce SHMOBILE_FIXUP() as a helper function to allow boards to specify their memory base and size. Signed-off-by: Magnus Damm --- 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 */