Message ID | 54931602.9070807@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDMZP7MEUMLRBIFMZSSAKGQEIVHL4UI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7C25426C6B for <linaro@patches.linaro.org>; Thu, 18 Dec 2014 18:00:01 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id gd6sf1151332lab.8 for <linaro@patches.linaro.org>; Thu, 18 Dec 2014 10:00:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:organization :user-agent:mime-version:to:subject:cc:precedence:reply-to:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=Gr4NMbWK5vM7bwOx0ZFlCBNdR5w0+KfWnoqHEu/bdzI=; b=ALVzzCsC6b5a4Hc9IB547O2Tacps2BTTyvzRmiMd+EMCECUj5bnSMgzmUK1xYz2co2 uh1IhXyjzblxoyHmSZI5729h0Hw2+aORB4UKMcy4AJB6EcJsH7n/Vw/Zth28P65g3iGl 5/cDlU2T3jHkq2mE49Rs+rUdEZxwE9h88HHi6luEKkGA+qEiYkX6ASyP5ylOVsCkj5n9 t0JcaMUfBR7iMTLOYf5K+C1wu6oSH26icFoYn7WJdmmO0K8zEDcnub8sXuVgY4W1vPUI bHfnZUAsXrmKofr9wkajHWzLHlvhqCCW9Ilf7OuStQykqH2Xf4PLbUZk15VsbsKSHTcN Grqg== X-Gm-Message-State: ALoCoQkN2w8STV5KoGJwIHiWnUib4u1czNpScnJlN78vY36dINSGhVuS6wcX0hWhN0SC+RbemUMv X-Received: by 10.152.42.196 with SMTP id q4mr486565lal.6.1418925600467; Thu, 18 Dec 2014 10:00:00 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.166 with SMTP id an6ls722097lac.47.gmail; Thu, 18 Dec 2014 10:00:00 -0800 (PST) X-Received: by 10.152.28.99 with SMTP id a3mr3525451lah.18.1418925600191; Thu, 18 Dec 2014 10:00:00 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id la9si1927028lab.65.2014.12.18.10.00.00 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 10:00:00 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id hv19so1439370lab.14 for <patchwork-forward@linaro.org>; Thu, 18 Dec 2014 10:00:00 -0800 (PST) X-Received: by 10.112.135.229 with SMTP id pv5mr3590028lbb.52.1418925600038; Thu, 18 Dec 2014 10:00:00 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp21284lbb; Thu, 18 Dec 2014 09:59:59 -0800 (PST) X-Received: by 10.224.96.129 with SMTP id h1mr6056255qan.46.1418925598826; Thu, 18 Dec 2014 09:59:58 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 79si9073023qgj.60.2014.12.18.09.59.58 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 18 Dec 2014 09:59:58 -0800 (PST) Received-SPF: pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:55163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <grub-devel-bounces+patch=linaro.org@gnu.org>) id 1Y1fMk-0008Ta-2D for patch@linaro.org; Thu, 18 Dec 2014 12:59:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <fu.wei@linaro.org>) id 1Y1fMT-0008TG-2l for grub-devel@gnu.org; Thu, 18 Dec 2014 12:59:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <fu.wei@linaro.org>) id 1Y1fMN-00019N-2z for grub-devel@gnu.org; Thu, 18 Dec 2014 12:59:41 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]:36700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <fu.wei@linaro.org>) id 1Y1fMM-000186-U9 for grub-devel@gnu.org; Thu, 18 Dec 2014 12:59:35 -0500 Received: by mail-pd0-f172.google.com with SMTP id y13so1855707pdi.31 for <grub-devel@gnu.org>; Thu, 18 Dec 2014 09:59:34 -0800 (PST) X-Received: by 10.66.124.227 with SMTP id ml3mr5711678pab.28.1418925574158; Thu, 18 Dec 2014 09:59:34 -0800 (PST) Received: from [192.168.1.11] ([59.58.226.187]) by mx.google.com with ESMTPSA id cq6sm7421611pad.30.2014.12.18.09.59.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Dec 2014 09:59:33 -0800 (PST) Message-ID: <54931602.9070807@linaro.org> Date: Fri, 19 Dec 2014 01:59:30 +0800 From: Fu Wei <fu.wei@linaro.org> Organization: Linaro User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: grub-devel@gnu.org, Leif Lindholm <leif.lindholm@linaro.org>, Ian Campbell <Ian.Campbell@citrix.com> Subject: [PATCH 1/5] Add grub_fdt_set_reg64 macro into fdt.h header file for X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.172 Cc: Roy Franz <roy.franz@linaro.org>, Jon Masters <jcm@redhat.com>, linaro-uefi <linaro-uefi@lists.linaro.org> X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB <grub-devel@gnu.org> List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grub-devel>, <mailto:grub-devel-request@gnu.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: grub-devel-bounces+patch=linaro.org@gnu.org Sender: grub-devel-bounces+patch=linaro.org@gnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: fu.wei@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/include/grub/fdt.h b/include/grub/fdt.h index 3016998..fdfca75 100644 --- a/include/grub/fdt.h +++ b/include/grub/fdt.h @@ -117,4 +117,16 @@ int grub_fdt_set_prop (void *fdt, unsigned int nodeoffset, const char *name, grub_fdt_set_prop ((fdt), (nodeoffset), (name), &_val, 8); \ }) +/* Setup "reg" property for + * #address-cells = <0x2> + * #size-cells = <0x2> + */ +#define grub_fdt_set_reg64(fdt, nodeoffset, addr, size) \ +({ \ + grub_uint64_t reg_64[2]; \ + reg_64[0] = grub_cpu_to_be64(addr); \ + reg_64[1] = grub_cpu_to_be64(size); \ + grub_fdt_set_prop ((fdt), (nodeoffset), "reg", reg_64, 16); \ +}) + #endif /* ! GRUB_FDT_HEADER */