From patchwork Thu Aug 28 14:13: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: 36213 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 70EFE202DD for ; Thu, 28 Aug 2014 14:14:49 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id l13sf8225804iga.2 for ; Thu, 28 Aug 2014 07:14:49 -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=jM0T07a+BBIY2k4PtFx/aML0QDiVC1Nliy+unHdn4ti/eEba+zg3arDLaMa0JvjW8s 0lVV5K3ohSOVhADQMHwxbTBSsi5j6CbynEcF+eCwo6Di3hpCBy2ATJWR1DrYR7ZkX9Ms oDM557KfQwaaMn0xfONhdCScwiHAX53c4ITk3hw8cnS9Vt6NdEGEDnYDPO1RaREX5Cvs IqwM1JkstxfrKLl+4nj6w0cSat5FXUy1N+Rj7ytomnKfwdhLrdPUcQyC7RKrdojsiFes f+kCsVfPjSTfenpehWx7OSFBYuCpZnE3f9nKIbfL2XR4YczXwGbp14O5MA07VOZCTmOZ qzfQ== X-Gm-Message-State: ALoCoQmDbvIJTr7NMgsWh8s9Pf40s8JA/woVY7Oys4/5NrTEzq5/c91OgC1xPPvaWPQ0ThNxGy44 X-Received: by 10.42.212.207 with SMTP id gt15mr2779741icb.31.1409235288945; Thu, 28 Aug 2014 07:14:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.130 with SMTP id a2ls579329qgf.90.gmail; Thu, 28 Aug 2014 07:14:48 -0700 (PDT) X-Received: by 10.220.97.5 with SMTP id j5mr3481726vcn.16.1409235288756; Thu, 28 Aug 2014 07:14:48 -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 sd10si3556884vdb.79.2014.08.28.07.14.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 07:14:48 -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 im17so865363vcb.18 for ; Thu, 28 Aug 2014 07:14:48 -0700 (PDT) X-Received: by 10.52.73.202 with SMTP id n10mr770620vdv.86.1409235288655; Thu, 28 Aug 2014 07:14: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 uj3csp243464vcb; Thu, 28 Aug 2014 07:14:48 -0700 (PDT) X-Received: by 10.50.41.104 with SMTP id e8mr37731498igl.35.1409235287805; Thu, 28 Aug 2014 07:14:47 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id t19si9408309igr.12.2014.08.28.07.14.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 28 Aug 2014 07:14:47 -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-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XN0TI-0002Qg-2n; Thu, 28 Aug 2014 14:14:40 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XN0TG-0002QW-S6 for edk2-devel@lists.sourceforge.net; Thu, 28 Aug 2014 14:14:38 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of linaro.org designates 74.125.82.180 as permitted sender) client-ip=74.125.82.180; envelope-from=ard.biesheuvel@linaro.org; helo=mail-we0-f180.google.com; Received: from mail-we0-f180.google.com ([74.125.82.180]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XN0TF-0002Si-4k for edk2-devel@lists.sourceforge.net; Thu, 28 Aug 2014 14:14:38 +0000 Received: by mail-we0-f180.google.com with SMTP id w61so814099wes.25 for ; Thu, 28 Aug 2014 07:14:28 -0700 (PDT) X-Received: by 10.194.157.10 with SMTP id wi10mr5382196wjb.31.1409235268153; Thu, 28 Aug 2014 07:14:28 -0700 (PDT) Received: from ards-macbook-pro.local (BSN-61-108-214.dial-up.dsl.siol.net. [86.61.108.214]) by mx.google.com with ESMTPSA id bk6sm10278657wjb.26.2014.08.28.07.14.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 07:14:27 -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: Thu, 28 Aug 2014 16:13:53 +0200 Message-Id: <1409235244-25783-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1409235244-25783-1-git-send-email-ard.biesheuvel@linaro.org> References: <1409235244-25783-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: 1XN0TF-0002Si-4k Subject: [edk2] [PATCH v4 05/16] 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.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 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 Reviewed-by: Olivier Martin --- 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