From patchwork Wed Sep 3 11:18:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 36575 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 189B3202E4 for ; Wed, 3 Sep 2014 11:19:06 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id 29sf29678193yhl.2 for ; Wed, 03 Sep 2014 04:19:05 -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=MKRxGph1YFNSaAgYMpE8LA7DHm7AkkSzJ5saVOJAKQ3vPjskECyOQXt+ARgFxE6+Ib MO+4Jlrr1HC0lA2PEheNWGSZVXrIybbrClSt8XdHoBUjs+lNzSlc8TU77yTGDNS4+XDI 0n22zRC8dqFX/8LLZq0F5GFwqETQZMY3lEeZMov7mj5pxylv1n4GKK+uPrcAxj8058cz 6Tugung5eL2od8vBdQW7SMb5amiHdQWcKv4ugUmsegfnR8Sec93/OWcueA/2hrQspofp /Vmkt1yJYL/xoCujDa2ItsWYARB3AY3CjqtA9ORqVSEkgyH0/BNeqcmGg336UJXSLFCb U/iw== X-Gm-Message-State: ALoCoQk/+DR9b/n27GIKmGLxjxoLpO0ChQ3jtgQNadDdHpcFiuD/MHEKbhUT0qr7SsXjsVSXqnwr X-Received: by 10.224.124.195 with SMTP id v3mr572678qar.4.1409743145914; Wed, 03 Sep 2014 04:19:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.113 with SMTP id e104ls2750946qgd.33.gmail; Wed, 03 Sep 2014 04:19:05 -0700 (PDT) X-Received: by 10.52.15.36 with SMTP id u4mr16881vdc.91.1409743145823; Wed, 03 Sep 2014 04:19:05 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id c6si3446746vcq.82.2014.09.03.04.19.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 04:19:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id im17so8601871vcb.32 for ; Wed, 03 Sep 2014 04:19:05 -0700 (PDT) X-Received: by 10.52.94.108 with SMTP id db12mr28959880vdb.8.1409743145722; Wed, 03 Sep 2014 04:19:05 -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 uj3csp663975vcb; Wed, 3 Sep 2014 04:19:05 -0700 (PDT) X-Received: by 10.43.127.9 with SMTP id gy9mr7904110icc.71.1409743143843; Wed, 03 Sep 2014 04:19:03 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id y8si11392165icx.94.2014.09.03.04.19.03 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Sep 2014 04:19:03 -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-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XP8aW-0004HB-MW; Wed, 03 Sep 2014 11:18:56 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XP8aU-0004Gg-EC for edk2-devel@lists.sourceforge.net; Wed, 03 Sep 2014 11:18:54 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.212.178 as permitted sender) client-ip=209.85.212.178; envelope-from=ard.biesheuvel@linaro.org; helo=mail-wi0-f178.google.com; Received: from mail-wi0-f178.google.com ([209.85.212.178]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XP8aT-0007aQ-H8 for edk2-devel@lists.sourceforge.net; Wed, 03 Sep 2014 11:18:54 +0000 Received: by mail-wi0-f178.google.com with SMTP id r20so9597375wiv.17 for ; Wed, 03 Sep 2014 04:18:47 -0700 (PDT) X-Received: by 10.180.100.230 with SMTP id fb6mr35154013wib.0.1409743127325; Wed, 03 Sep 2014 04:18:47 -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 p1sm15258661wjy.22.2014.09.03.04.18.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 04:18:46 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.sourceforge.net, lersek@redhat.com, olivier.martin@arm.com Date: Wed, 3 Sep 2014 13:18:08 +0200 Message-Id: <1409743096-14919-16-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1409743096-14919-1-git-send-email-ard.biesheuvel@linaro.org> References: <1409743096-14919-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: 1XP8aT-0007aQ-H8 Cc: peter.maydell@linaro.org, ilias.biris@linaro.org, christoffer.dall@linaro.org Subject: [edk2] [PATCH v6 15/23] 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.173 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