From patchwork Fri Sep 5 11:56:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 36826 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 65A9A202E4 for ; Fri, 5 Sep 2014 11:57:38 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id eb12sf58788390oac.9 for ; Fri, 05 Sep 2014 04:57:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=L9oC6w2Am+6D6nmWcu0qMGhaXRlTJWC72d+UUSEqFEs=; b=QyIQSQTynqX5d0KL6g7afQ8TpYd9uUeAKzSkpJkBsdEX8z8Aj6ZCOFfgY0+mfPrRSc xs5JVUpZjK7P/yujm+AKHl107Jo7JW0qUU/LZUx8gj8Ooosn9MG8S8bqKQTMTsQgT9ek lInu0mfYOX8gyQcZFGTNj5o5K8/a7+xddwn4jhnk06H451DZjH0NGr1FdrIJpj5vucz1 r86RivuuDVhyBEH51o48LoHFQYzw+dB/qjwDwmPuro3FGj5AmNRZ3yWoXIwk8DV+6eZ4 qukto6wW5C883c1SL+HVusUc6GquvsU/4ibM+HB7+l1UQmKQ+dcpYGLZ7KIuG25WW4cC OBUw== X-Gm-Message-State: ALoCoQnocgmQAhocTzt2H8KdtrKshpf5SlctKcHkufKD/88fXJlpcNDgyNtV9myn6TzFfnH6P5F0 X-Received: by 10.50.43.168 with SMTP id x8mr1628876igl.4.1409918257954; Fri, 05 Sep 2014 04:57:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.200 with SMTP id f66ls699571qgd.24.gmail; Fri, 05 Sep 2014 04:57:37 -0700 (PDT) X-Received: by 10.221.24.7 with SMTP id rc7mr184593vcb.54.1409918257786; Fri, 05 Sep 2014 04:57:37 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id w18si910025vdj.103.2014.09.05.04.57.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 04:57:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id hy4so12290615vcb.33 for ; Fri, 05 Sep 2014 04:57:37 -0700 (PDT) X-Received: by 10.220.74.10 with SMTP id s10mr176872vcj.61.1409918257705; Fri, 05 Sep 2014 04:57:37 -0700 (PDT) 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.221.45.67 with SMTP id uj3csp71068vcb; Fri, 5 Sep 2014 04:57:37 -0700 (PDT) X-Received: by 10.43.136.134 with SMTP id ik6mr13972958icc.6.1409918257009; Fri, 05 Sep 2014 04:57:37 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id hz7si4881952igb.60.2014.09.05.04.57.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 05 Sep 2014 04:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XPs8v-0002hp-65; Fri, 05 Sep 2014 11:57:29 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XPs8t-0002he-R4 for edk2-devel@lists.sourceforge.net; Fri, 05 Sep 2014 11:57:27 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of linaro.org designates 74.125.82.41 as permitted sender) client-ip=74.125.82.41; envelope-from=ard.biesheuvel@linaro.org; helo=mail-wg0-f41.google.com; Received: from mail-wg0-f41.google.com ([74.125.82.41]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XPs8s-0000Qy-Up for edk2-devel@lists.sourceforge.net; Fri, 05 Sep 2014 11:57:27 +0000 Received: by mail-wg0-f41.google.com with SMTP id l18so11738259wgh.24 for ; Fri, 05 Sep 2014 04:57:19 -0700 (PDT) X-Received: by 10.180.24.225 with SMTP id x1mr3145349wif.14.1409918239636; Fri, 05 Sep 2014 04:57:19 -0700 (PDT) Received: from ards-macbook-pro.local (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by mx.google.com with ESMTPSA id dc9sm1758798wib.5.2014.09.05.04.57.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 04:57:18 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.sourceforge.net, lersek@redhat.com, olivier.martin@arm.com Date: Fri, 5 Sep 2014 13:56:45 +0200 Message-Id: <1409918214-29584-16-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1409918214-29584-1-git-send-email-ard.biesheuvel@linaro.org> References: <1409918214-29584-1-git-send-email-ard.biesheuvel@linaro.org> X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1XPs8s-0000Qy-Up Cc: peter.maydell@linaro.org, ilias.biris@linaro.org, christoffer.dall@linaro.org Subject: [edk2] [PATCH v7 15/24] ArmVirtualizationPkg: add Include/ArmPlatform.h X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@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.220.174 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 This include file contains platform specific defines, and is shared by various modules. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel --- .../ArmVirtualizationPkg/Include/ArmPlatform.h | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ArmPlatformPkg/ArmVirtualizationPkg/Include/ArmPlatform.h diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/Include/ArmPlatform.h b/ArmPlatformPkg/ArmVirtualizationPkg/Include/ArmPlatform.h new file mode 100644 index 000000000000..10936ec41143 --- /dev/null +++ b/ArmPlatformPkg/ArmVirtualizationPkg/Include/ArmPlatform.h @@ -0,0 +1,33 @@ +/** @file +* Header defining platform constants (Base addresses, sizes, flags) +* +* Copyright (c) 2011, ARM Limited. All rights reserved. +* Copyright (c) 2014, Linaro Limited +* +* This program and the accompanying materials +* are licensed and made available under the terms and conditions of the BSD License +* which accompanies this distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* +**/ + +#ifndef __ARM_VIRT_H__ +#define __ARM_VIRT_H__ + +// +// We don't care about this value, but the PL031 driver depends on the macro +// to exist: it will pass it on to our ArmPlatformSysConfigLib:ConfigGet() +// function, which just returns EFI_UNSUPPORTED. +// +#define SYS_CFG_RTC 0x0 + +#define QEMU_NOR_BSIZE SIZE_256KB +#define QEMU_NOR0_BASE 0x0 +#define QEMU_NOR0_SIZE SIZE_64MB +#define QEMU_NOR1_BASE 0x04000000 +#define QEMU_NOR1_SIZE SIZE_64MB + +#endif