From patchwork Thu Nov 30 14:15:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 120206 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp721970qgn; Thu, 30 Nov 2017 06:15:47 -0800 (PST) X-Google-Smtp-Source: AGs4zMYEfVK061mF48qVKyxTa1083orqDe59f9Xvqo37nYVvw6ZkUb8HC+N5dQfMiQowPJCBB7jJ X-Received: by 10.98.72.69 with SMTP id v66mr6781959pfa.135.1512051347477; Thu, 30 Nov 2017 06:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512051347; cv=none; d=google.com; s=arc-20160816; b=ffHQxYpbMYw+DKbkHISYklEjlmdf3A8+six112ZktKejK8WL54UIEVACTZq9mZKfxL on6k+vdhQ80c6ZQOOCkxkUx/XMQ/i7MxwYdfmVRFCuC2Yss4cfXGHzzt4GFEdtOQo2BX euDWNLBR6gsKET1BGN21WKF+6Sa4G+E2SJhGBqNSdrGrghBneEgB4kcFstu+lDAPH7nB 4WJlvKHEGpPs18ek7JPNjyYmMOGGZty3QytJ/n7rkqmTt5sh0zE4Og+SZsrlE08lVPaj weiO4drmIaoRcguYgiI+FkwYTuf2Am2TUJPeKR8pcXEQNVdDPHKi87mHrpdTKN7aPIaf EYaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=09wWY4/w1LbN+59wv4+HAat+zn9j8NszriZrKv2dk2Y=; b=FglkqzqeFTwGRE1tODsPGW5R9NwasmKSHDi2Dv7xoa+H1db9mT5dz9esTdzJmIGcaW Z1bA/rYQZ9Rjpr2BiIQxJL4W6FRshbmNeewsPLuyU85DMMUyqpYfrbL9WidfJFN7VJ90 VptSSbMdgs9kyKiBmaSqgpgIQ2qapPSb9dwSxqIU4Vl5H4R9fB9jq+Bte8Voatqr/vXa oKrWN8ZBY20dPRg95iTEGpYPMcVl0RDQPVXPPOJu6frJ5rljEEbO6C0/9nsbbqrWtiis SAXBrSbKH9ZRjWrxdXojgg591haWotFM3ppoUeL+MmRryra8Foow1JlTwtotaXog59P7 BI3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KgS0mgxU; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id d37si3199276plb.275.2017.11.30.06.15.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 06:15:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KgS0mgxU; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id BDC022211B43D; Thu, 30 Nov 2017 06:11:15 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 47DB9220F3C3D for ; Thu, 30 Nov 2017 06:11:14 -0800 (PST) Received: by mail-wr0-x244.google.com with SMTP id h1so6719585wre.12 for ; Thu, 30 Nov 2017 06:15:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Wn1nKnTEsVheLmkf8WrWdPixRD9vHYvHtJ1SOuhq/o0=; b=KgS0mgxU3XGAwuZC6zFQWldLi7sMMWklBOkD7K+9Lk51FUJj/vDhW4NnQEuV/8LMOt mGinbr1n3Jp5SJFwMujdHRH+8VpmXrcFraqlEol173V2D+ngNt58DUT2z28UVELMwMNQ RaucLykUZIml7OclNdjlaFZUEcGxRGRPXaur4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Wn1nKnTEsVheLmkf8WrWdPixRD9vHYvHtJ1SOuhq/o0=; b=VRqvmXboIwcyOYL2eetpcKlbjpJ4xEZWWFk8EcRYK65gtcaABvdyorL1QhEsjnMoPE vfRhqhdLhGILk+yH7iGzEOwTShtar4St6Rte41ChIysN87hnrU2VfskdjJ4F809qUBME XzGJF9qzkmuQgQQjtXxVSNuy2zZaOI6HP2Y8royAvdo2iFwdmP2sKYb3Q6ScaLvCALkZ bmzkhqWLuvPhdeiGdpgm4WWEsFmUj1LHUYOkZyfcNPxR/gejTCpXJmrEmtXQAmInMqJK CgQasOL95FI/gOUyrnWL04U/oyHfSDY0Ae/JDTR43yD1znCxBPgXUgXpkOQWhv0cTgw7 mbgg== X-Gm-Message-State: AJaThX5yqIDhD3hJlI45+rhbkRrmo2uy4CXnAn69daC+lODwjXUJxvpU 7Z3zXyk/idD/SenoytEfUs8Pn9DHBbY= X-Received: by 10.223.195.113 with SMTP id e46mr2239041wrg.149.1512051338077; Thu, 30 Nov 2017 06:15:38 -0800 (PST) Received: from localhost.localdomain ([105.150.171.234]) by smtp.gmail.com with ESMTPSA id f19sm2303555wmf.5.2017.11.30.06.15.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 06:15:37 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 30 Nov 2017 14:15:09 +0000 Message-Id: <20171130141509.27230-8-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171130141509.27230-1-ard.biesheuvel@linaro.org> References: <20171130141509.27230-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 7/7] ArmPlatformPkg: move internal PL031 header into driver directory X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Move the internal PL031 RTC header file into the driver directory. It shouldn't be referenced directly by other modules anyway. While at it, sort the includes as well. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmPlatformPkg/{Include/Drivers => Library/PL031RealTimeClockLib}/PL031RealTimeClock.h | 0 ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c | 19 +++++++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmPlatformPkg/Include/Drivers/PL031RealTimeClock.h b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClock.h similarity index 100% rename from ArmPlatformPkg/Include/Drivers/PL031RealTimeClock.h rename to ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClock.h diff --git a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c index 1334ad446cd9..1d787cf5df2c 100644 --- a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c +++ b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c @@ -14,28 +14,27 @@ **/ -#include #include + +#include +#include + #include #include -#include +#include #include -#include #include #include -#include +#include +#include #include +#include #include #include #include -#include -#include - -#include - -#include +#include "PL031RealTimeClock.h" STATIC BOOLEAN mPL031Initialized = FALSE; STATIC EFI_EVENT mRtcVirtualAddrChangeEvent;