From patchwork Thu Sep 4 02:09:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 36671 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 353792039B for ; Thu, 4 Sep 2014 02:10:31 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id w10sf55174613pde.11 for ; Wed, 03 Sep 2014 19:10:30 -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: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=RLkL7QjaiJakoqE4bVohOwq8h4UiwYe0VnJCXZFmSZ8=; b=Ziva88wKR4QwtvLDBWX+JGHGpjVlLx7yXoh/Qq3km/iNKWlNzPo4xKt4zQcaCpxPzo fnPlHw/pPjpdMz6Bzzywpbg/p2gQnjaSreOlkVsUbt63Rqs07OQ+K0jdbhaAihkHuW4A qBPH5AqF+Js2PjNyiaS5NnGACrvVVpPiM9Q5q3FoO4f4MQKaXTIJnMFxKmZoDLVn9P0Q 4hlTyLNx3rYyyJDW/A3Vfgb6ejvEklwpbiFQoVJQZWM+YeF8ZCCzDBFnsXDvppdafUPe VKmmL7aVEN+1QevZcdg8DEvDUAHtxFjztR4hAhRS+oW1WaWoUf6xGeuZ3toST4QGcIC8 7hlw== X-Gm-Message-State: ALoCoQnxGAYncullXHcJTR5ZBxwuJi0vOfMN5RNyH/lozcy/1r+RGgrRHzl0nJFzkM4GhTgks/0J X-Received: by 10.66.155.194 with SMTP id vy2mr775442pab.19.1409796630487; Wed, 03 Sep 2014 19:10:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.200 with SMTP id f66ls75804qgd.24.gmail; Wed, 03 Sep 2014 19:10:30 -0700 (PDT) X-Received: by 10.220.114.5 with SMTP id c5mr1013058vcq.28.1409796630316; Wed, 03 Sep 2014 19:10:30 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id ck3si4903284vcb.102.2014.09.03.19.10.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 19:10:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so9849327vcb.2 for ; Wed, 03 Sep 2014 19:10:30 -0700 (PDT) X-Received: by 10.52.141.76 with SMTP id rm12mr227205vdb.71.1409796630224; Wed, 03 Sep 2014 19:10:30 -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 uj3csp767284vcb; Wed, 3 Sep 2014 19:10:29 -0700 (PDT) X-Received: by 10.42.136.129 with SMTP id u1mr1193569ict.65.1409796629649; Wed, 03 Sep 2014 19:10:29 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id jh7si389994icc.93.2014.09.03.19.10.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Sep 2014 19:10:29 -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 1XPMVB-0008RQ-Vv; Thu, 04 Sep 2014 02:10:22 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XPMVA-0008RK-Ng for edk2-devel@lists.sourceforge.net; Thu, 04 Sep 2014 02:10:20 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=lersek@redhat.com; helo=mx1.redhat.com; Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1XPMV8-0004py-Pm for edk2-devel@lists.sourceforge.net; Thu, 04 Sep 2014 02:10:20 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s842A5Dd029867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Sep 2014 22:10:05 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8429wje009610; Wed, 3 Sep 2014 22:10:03 -0400 From: Laszlo Ersek To: ard.biesheuvel@linaro.org, edk2-devel@lists.sourceforge.net, olivier.martin@arm.com, peter.maydell@linaro.org, christoffer.dall@linaro.org, ilias.biris@linaro.org, leif.lindholm@linaro.org, michael.casadevall@linaro.org Date: Thu, 4 Sep 2014 04:09:49 +0200 Message-Id: <1409796596-12615-3-git-send-email-lersek@redhat.com> In-Reply-To: <1409796596-12615-1-git-send-email-lersek@redhat.com> References: <1409743096-14919-24-git-send-email-ard.biesheuvel@linaro.org> <1409796596-12615-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Spam-Score: -3.2 (---) 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_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.0 T_SUBJ_BRKN_WORDNUMS Subject contains odd word breaks and numbers X-Headers-End: 1XPMV8-0004py-Pm Subject: [edk2] [PATCH 2/9] ArmVirtualizationPkg: introduce gEarlyPL011BaseAddressGuid 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: lersek@redhat.com 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.171 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 GUID will identify a customized HOB that carries the base address of the PL011 serial port, for clients that cannot access PCDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- .../Include/Guid/EarlyPL011BaseAddress.h | 27 ++++++++++++++++++++++ .../ArmVirtualizationPkg/ArmVirtualizationPkg.dec | 1 + 2 files changed, 28 insertions(+) create mode 100644 ArmPlatformPkg/ArmVirtualizationPkg/Include/Guid/EarlyPL011BaseAddress.h diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/Include/Guid/EarlyPL011BaseAddress.h b/ArmPlatformPkg/ArmVirtualizationPkg/Include/Guid/EarlyPL011BaseAddress.h new file mode 100644 index 0000000..1b703a81 --- /dev/null +++ b/ArmPlatformPkg/ArmVirtualizationPkg/Include/Guid/EarlyPL011BaseAddress.h @@ -0,0 +1,27 @@ +/** @file + GUID for the HOB that caches the base address of the PL011 serial port, for + when PCD access is not available. + + Copyright (C) 2014, Red Hat, Inc. + + This program and the accompanying materials are licensed and made available + under the terms and conditions of the BSD License that 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 __EARLY_PL011_BASE_ADDRESS_H__ +#define __EARLY_PL011_BASE_ADDRESS_H__ + +#define EARLY_PL011_BASE_ADDRESS_GUID { \ + 0xB199DEA9, 0xFD5C, 0x4A84, \ + { 0x80, 0x82, 0x2F, 0x41, 0x70, 0x78, 0x03, 0x05 } \ + } + +extern EFI_GUID gEarlyPL011BaseAddressGuid; + +#endif diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationPkg.dec b/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationPkg.dec index 37f00a2..34833aa 100644 --- a/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationPkg.dec +++ b/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationPkg.dec @@ -32,6 +32,7 @@ [Guids.common] gArmVirtualizationTokenSpaceGuid = { 0x0B6F5CA7, 0x4F53, 0x445A, { 0xB7, 0x6E, 0x2E, 0x36, 0x5B, 0x80, 0x63, 0x66 } } + gEarlyPL011BaseAddressGuid = { 0xB199DEA9, 0xFD5C, 0x4A84, { 0x80, 0x82, 0x2F, 0x41, 0x70, 0x78, 0x03, 0x05 } } [PcdsFixedAtBuild] #