From patchwork Fri Sep 5 11:56:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 36829 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f70.google.com (mail-oi0-f70.google.com [209.85.218.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B7103202E4 for ; Fri, 5 Sep 2014 11:57:43 +0000 (UTC) Received: by mail-oi0-f70.google.com with SMTP id u20sf54710337oif.5 for ; Fri, 05 Sep 2014 04:57:42 -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=qs2ouvz1bjWikCIebLvj4aPJ6mYttBUZOOx5i4AgmMU=; b=an0WpFCSjh6k06fPAexcT0djXYdQynFNW037b28Tld7XgX9aSEH207p+c2bqnKuKtk DOwoiZVudcQmRYphZZ5YbEMmSqJuiVy/5VfWf6gJ/RYFNGWEyOFNzU4BJLr6P2fFcETP Hv6gNvrLcHKQpWZ+nAiGj2ZIzJZy3tpIvU9Qo3VQkbTUn6AQlo2gU5b0/MF5OBpMxhTt QB6Wr4QnMgyrpmAfqXJkEYqCvN3PqmALiS2TMMvqYrIP2HIkaJDQ0S7nehqJ8sQqHRTa H956CGJsf4/q2CWGy66Va2QSYKqX14MBk1UjVfEPGAMHv1l0NRh7yjVWPaTZV+QUG8Ru H/tQ== X-Gm-Message-State: ALoCoQlqVza1302PetukrRxUIC8KxjCfkYe01c5e+Px2lFQYgnN05GMq8SHEC8uSrxkEIQOq8pLW X-Received: by 10.43.47.135 with SMTP id us7mr6470441icb.32.1409918262449; Fri, 05 Sep 2014 04:57:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.40 with SMTP id y37ls654704qgd.2.gmail; Fri, 05 Sep 2014 04:57:42 -0700 (PDT) X-Received: by 10.220.159.204 with SMTP id k12mr9401581vcx.15.1409918262340; Fri, 05 Sep 2014 04:57:42 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id x11si954897vdg.56.2014.09.05.04.57.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 04:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id le20so818766vcb.31 for ; Fri, 05 Sep 2014 04:57:42 -0700 (PDT) X-Received: by 10.52.87.144 with SMTP id ay16mr403744vdb.43.1409918262229; Fri, 05 Sep 2014 04:57:42 -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 uj3csp71089vcb; Fri, 5 Sep 2014 04:57:41 -0700 (PDT) X-Received: by 10.50.32.2 with SMTP id e2mr3677251igi.33.1409918260817; Fri, 05 Sep 2014 04:57:40 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id ou8si2741344icb.99.2014.09.05.04.57.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 05 Sep 2014 04:57:40 -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-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XPs8y-0001X8-K7; Fri, 05 Sep 2014 11:57:32 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XPs8u-0001WT-SY for edk2-devel@lists.sourceforge.net; Fri, 05 Sep 2014 11:57:28 +0000 Received-SPF: pass (sog-mx-4.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-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XPs8t-0002yq-Py for edk2-devel@lists.sourceforge.net; Fri, 05 Sep 2014 11:57:28 +0000 Received: by mail-wi0-f178.google.com with SMTP id r20so2843345wiv.5 for ; Fri, 05 Sep 2014 04:57:21 -0700 (PDT) X-Received: by 10.180.189.14 with SMTP id ge14mr2150705wic.36.1409918240872; Fri, 05 Sep 2014 04:57:20 -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.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 04:57:20 -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:46 +0200 Message-Id: <1409918214-29584-17-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 0.0 T_SUBJ_BRKN_WORDNUMS Subject contains odd word breaks and numbers X-Headers-End: 1XPs8t-0002yq-Py Cc: peter.maydell@linaro.org, ilias.biris@linaro.org, christoffer.dall@linaro.org Subject: [edk2] [PATCH v7 16/24] 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: 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.172 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 From: Laszlo Ersek 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 --- .../ArmVirtualizationPkg/ArmVirtualizationPkg.dec | 1 + .../Include/Guid/EarlyPL011BaseAddress.h | 27 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ArmPlatformPkg/ArmVirtualizationPkg/Include/Guid/EarlyPL011BaseAddress.h diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationPkg.dec b/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationPkg.dec index 8d51182d716b..c07fce94a479 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] # diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/Include/Guid/EarlyPL011BaseAddress.h b/ArmPlatformPkg/ArmVirtualizationPkg/Include/Guid/EarlyPL011BaseAddress.h new file mode 100644 index 000000000000..7eecf94b8c05 --- /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