From patchwork Tue Aug 26 13:03: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: 36021 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C03B220565 for ; Tue, 26 Aug 2014 13:04:48 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp18sf84956505obc.5 for ; Tue, 26 Aug 2014 06:04:48 -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=8s9OXeVXCU20gO/qVeNho6FRWCFsOr8Y9VlX/6oAPdw=; b=gNgFvwbZ9F5IVGXLqfW/yiguMOSLmuWv1D1ktVsDdv2EraBlb0Ucl58JXiKfFtJXgn pMB0IK1fq6pIfqRDK20QJhvWCH5In9hzIrfDpg8EW6BK8kXnorTGDmIuivvh5wRD6xg2 Eo+M4qKrZhVYpFfK+vph1Z3gXvVwoEwhv0BpFEXXinbrRC+ziKqBivJpivJXvbZ1MzWx 7Tp/mnyI2iR/6QYqYj4VfcUwDVhwaIH5hg/ziC52XKWc4UMJnrcWiMKOnIz5pW2h5jJV pufcbvdRwHK1ankBD9IW4ujM/PNGmPzz5KPoVId7sBye9cDAEXZ6Jbmxn703CjzW29g7 mmpg== X-Gm-Message-State: ALoCoQmFhnwL13HQnhVuut/94QzhfekADRt1iXC7HYe3FN6Ms49yRZoGQl5cYAmM7XmjXvjmSVrh X-Received: by 10.50.112.68 with SMTP id io4mr17714771igb.0.1409058288406; Tue, 26 Aug 2014 06:04:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.210 with SMTP id u76ls2532834qge.62.gmail; Tue, 26 Aug 2014 06:04:48 -0700 (PDT) X-Received: by 10.52.168.134 with SMTP id zw6mr953221vdb.37.1409058288192; Tue, 26 Aug 2014 06:04:48 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id p1si1413076vcp.3.2014.08.26.06.04.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 06:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so16522886vcb.23 for ; Tue, 26 Aug 2014 06:04:48 -0700 (PDT) X-Received: by 10.220.97.5 with SMTP id j5mr23885510vcn.16.1409058288115; Tue, 26 Aug 2014 06:04:48 -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 uj3csp197138vcb; Tue, 26 Aug 2014 06:04:47 -0700 (PDT) X-Received: by 10.60.63.166 with SMTP id h6mr872308oes.79.1409058273086; Tue, 26 Aug 2014 06:04:33 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id d19si516429igm.36.2014.08.26.06.04.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 26 Aug 2014 06:04:33 -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-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XMGQ4-0005dg-PJ; Tue, 26 Aug 2014 13:04:16 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XMGQ3-0005db-BH for edk2-devel@lists.sourceforge.net; Tue, 26 Aug 2014 13:04:15 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 74.125.82.182 as permitted sender) client-ip=74.125.82.182; envelope-from=ard.biesheuvel@linaro.org; helo=mail-we0-f182.google.com; Received: from mail-we0-f182.google.com ([74.125.82.182]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XMGQ2-0003KV-HA for edk2-devel@lists.sourceforge.net; Tue, 26 Aug 2014 13:04:15 +0000 Received: by mail-we0-f182.google.com with SMTP id k48so14670711wev.13 for ; Tue, 26 Aug 2014 06:04:08 -0700 (PDT) X-Received: by 10.180.92.104 with SMTP id cl8mr21496291wib.43.1409058248233; Tue, 26 Aug 2014 06:04:08 -0700 (PDT) Received: from ards-macbook-pro.local (BSN-143-76-23.dial-up.dsl.siol.net. [89.143.76.23]) by mx.google.com with ESMTPSA id l3sm12043420wib.11.2014.08.26.06.04.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 06:04:07 -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: Tue, 26 Aug 2014 15:03:46 +0200 Message-Id: <1409058229-28802-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1409058229-28802-1-git-send-email-ard.biesheuvel@linaro.org> References: <1409058229-28802-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: 1XMGQ2-0003KV-HA Subject: [edk2] [PATCH v2 5/8] 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.220.178 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 Signed-off-by: Ard Biesheuvel Acked-by: Laszlo Ersek --- 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