From patchwork Wed Aug 27 15:12:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 36110 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7C7A12054F for ; Wed, 27 Aug 2014 15:14:45 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf2046912pdb.9 for ; Wed, 27 Aug 2014 08:14: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: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=At/0Wxc/DxcF5oqdyAMoOU2lngdJGIdYlZ8TNWDvXu0=; b=axKZY1k81Dpt69wycyaQs0zj4hWLKuySSaV6gynthD3k4mF9B6QXynUlYsZrzkRdHH M8/QA1t8j/5D90iiWdTWM363jH00dE2BXfxBs17jW2BSzcYkykuuPntXBgHSa5JmGkey 14SES+b5HRCP9YaOXWChz6Kk33mkNrKSjcTSALTmYoXsOhx1nYH+R9AYkJhZZKKzvGyl u9PYDT03DkkYaAitUASky1MCg0R6D4IhG3RIf1ezHnwibCoJkOAnxvJUbOOUMWE5PdtN JOYFi4MxkYWMeFCT8dZI4vl6Ab8pnj9tQo6vFabLFjim+LZDKpGGHW1c7Cf/IbleBcab A4zA== X-Gm-Message-State: ALoCoQk1vM4CXiOR+30J1MMAdOB4uh5Htsi6OqqW3pcb0Z9fQJFyOSMb20/57t3YVQgi4AZyNiTE X-Received: by 10.66.65.131 with SMTP id x3mr20514668pas.13.1409152481808; Wed, 27 Aug 2014 08:14:41 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.9 with SMTP id o9ls144966qgd.47.gmail; Wed, 27 Aug 2014 08:14:41 -0700 (PDT) X-Received: by 10.236.7.197 with SMTP id 45mr4234402yhp.113.1409152481679; Wed, 27 Aug 2014 08:14:41 -0700 (PDT) Received: from mail-yk0-f169.google.com (mail-yk0-f169.google.com [209.85.160.169]) by mx.google.com with ESMTPS id f16si632134yhp.76.2014.08.27.08.14.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Aug 2014 08:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.160.169 as permitted sender) client-ip=209.85.160.169; Received: by mail-yk0-f169.google.com with SMTP id 131so304309ykp.14 for ; Wed, 27 Aug 2014 08:14:41 -0700 (PDT) X-Received: by 10.220.169.72 with SMTP id x8mr1139068vcy.45.1409152481553; Wed, 27 Aug 2014 08:14:41 -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 uj3csp97051vcb; Wed, 27 Aug 2014 08:14:41 -0700 (PDT) X-Received: by 10.42.114.203 with SMTP id h11mr1735648icq.86.1409152480857; Wed, 27 Aug 2014 08:14:40 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id g9si991256icj.57.2014.08.27.08.14.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 27 Aug 2014 08:14: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-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XMevc-0001wa-Mr; Wed, 27 Aug 2014 15:14:28 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XMeva-0001wS-Pf for edk2-devel@lists.sourceforge.net; Wed, 27 Aug 2014 15:14:26 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of linaro.org designates 74.125.82.178 as permitted sender) client-ip=74.125.82.178; envelope-from=ard.biesheuvel@linaro.org; helo=mail-we0-f178.google.com; Received: from mail-we0-f178.google.com ([74.125.82.178]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XMeva-0000XZ-1H for edk2-devel@lists.sourceforge.net; Wed, 27 Aug 2014 15:14:26 +0000 Received: by mail-we0-f178.google.com with SMTP id w61so362802wes.9 for ; Wed, 27 Aug 2014 08:14:16 -0700 (PDT) X-Received: by 10.194.202.165 with SMTP id kj5mr11430218wjc.50.1409152456464; Wed, 27 Aug 2014 08:14:16 -0700 (PDT) Received: from ards-macbook-pro.local (BSN-143-138-142.dial-up.dsl.siol.net. [89.143.138.142]) by mx.google.com with ESMTPSA id fh5sm3972994wib.5.2014.08.27.08.14.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Aug 2014 08:14:15 -0700 (PDT) From: Ard Biesheuvel To: lersek@redhat.com, olivier.martin@arm.com, edk2-devel@lists.sourceforge.net, peter.maydell@linaro.org, christoffer.dall@linaro.org, drjones@redhat.com, ilias.biris@linaro.org, leif.lindholm@linaro.org Date: Wed, 27 Aug 2014 17:12:53 +0200 Message-Id: <1409152378-19706-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1409152378-19706-1-git-send-email-ard.biesheuvel@linaro.org> References: <1409152378-19706-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: 1XMeva-0000XZ-1H Subject: [edk2] [PATCH v3 05/10] ArmPlatformPkg: allow dynamically discovered PL031 RTC 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.160.169 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 Allow the PCDs gArmPlatformTokenSpaceGuid.PcdPL031RtcBase and gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy PCDs to be declared as PcdsDynamic by the platform so they can be overridden during boot. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel --- ArmPlatformPkg/ArmPlatformPkg.dec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec b/ArmPlatformPkg/ArmPlatformPkg.dec index 555c9284bc1b..755e8762f666 100644 --- a/ArmPlatformPkg/ArmPlatformPkg.dec +++ b/ArmPlatformPkg/ArmPlatformPkg.dec @@ -109,10 +109,6 @@ gArmPlatformTokenSpaceGuid.PL011UartInteger|0|UINT32|0x00000020 gArmPlatformTokenSpaceGuid.PL011UartFractional|0|UINT32|0x0000002D - ## PL031 RealTimeClock - gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0|UINT32|0x00000024 - gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy|300000000|UINT32|0x00000022 - ## PL061 GPIO gArmPlatformTokenSpaceGuid.PcdPL061GpioBase|0x0|UINT32|0x00000025 @@ -146,6 +142,11 @@ gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L""|VOID*|0x0000001B gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L""|VOID*|0x0000001C +[PcdsFixedAtBuild.common,PcdsDynamic.common] + ## PL031 RealTimeClock + gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0|UINT32|0x00000024 + gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy|300000000|UINT32|0x00000022 + [PcdsFixedAtBuild.ARM] # Stack for CPU Cores in Secure Monitor Mode gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0|UINT32|0x00000007