From patchwork Wed May 3 21:38:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 98506 Delivered-To: patch@linaro.org Received: by 10.140.89.200 with SMTP id v66csp265476qgd; Wed, 3 May 2017 14:38:18 -0700 (PDT) X-Received: by 10.98.106.199 with SMTP id f190mr7409153pfc.142.1493847498168; Wed, 03 May 2017 14:38:18 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id 188si181439pgb.399.2017.05.03.14.38.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 May 2017 14:38:18 -0700 (PDT) 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; 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 4373921A134A1; Wed, 3 May 2017 14:38:17 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wr0-x22b.google.com (mail-wr0-x22b.google.com [IPv6:2a00:1450:400c:c0c::22b]) (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 E737221A13482 for ; Wed, 3 May 2017 14:38:15 -0700 (PDT) Received: by mail-wr0-x22b.google.com with SMTP id w50so1153605wrc.0 for ; Wed, 03 May 2017 14:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=vr2qzSJJcDEHM/wm2XvbWYIpsjaKki2L//fcF/xjT28=; b=ENTHkHMDfyGc/jBm426obvCAQc17SCpGkv+hjwjqms4atQglNhnd8sk1odORXoKWgA qHqbPBD13mzQ364gG8/MMhwpauySSY0cVfwVowY2OjLjGrHkLAcIFhZjDItlYaCsSRhq WfptWBh64HsGzlDDJl+ulXmuVJ+UPENubbTJY= 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; bh=vr2qzSJJcDEHM/wm2XvbWYIpsjaKki2L//fcF/xjT28=; b=eMByT5kSnjbXEgmvQ42moUrYEBL8b+vlEEKwdS61HLufYBf35ygSKLIGYiisPG1RdE 6ojZ0jWe2jN9vCb877OrVoo4lMR7r0JlutFV8yH7NKKdjMkr2iuomIiYSN3KpjsnlVos CR+zn1F9xhbN/4vlcxtHPX3Q5j3uk7EzLVo/FhA5Nkua4fmokV57Z2keL7EC2ZHzBRfc rklQ3DeEC/m4MlQT1guf/nkjnVuY0U7sx6LkLeM25ATmeDNDKx/+NmhL8uoH4jgbjZFd fKzU5vXcCLLcJ3A8Out8gtFDH8kjSOHvPpJvDtNBlhKiNOMLwja/gQ6bMOiFGt/s++Yq dw+A== X-Gm-Message-State: AN3rC/5/ylcx+DDKy7PmOmXnbg1mmA/t8XCMRO8+sbJBM+b4vgsDRoZc 1+gNkfXs3YMOUs0Z X-Received: by 10.223.148.5 with SMTP id 5mr22686719wrq.44.1493847493828; Wed, 03 May 2017 14:38:13 -0700 (PDT) Received: from mohikan.hemma.eciton.net ([2a01:348:6:8735:e23f:49ff:fe6d:9d26]) by smtp.gmail.com with ESMTPSA id z14sm41380wmz.2.2017.05.03.14.38.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 May 2017 14:38:13 -0700 (PDT) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Wed, 3 May 2017 22:38:09 +0100 Message-Id: <20170503213812.5971-1-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH 0/3] Import a few items from OpenPlatformPkg 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: Laszlo Ersek , Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" In preparation for moving OpenPlatformPkg into edk2-platforms: - move across the DesignWare EMMC driver - import EfiTimeBaseLib EfiTimeBaseLib started out as some generically useful functions pulled out of PL031RealTimeClockLib and used also for other RTC devices. We re-align it with the original version before importing it to EmbeddedPkg, followed by one patch that atomically strips these functions from PL031RealTimeClockLib, turns PL031RealTimeClockLib into a consumer of EfiTimeBaseLib, and inserts this library resolution in ArmVirtPkg, which is the only user of PL031RealTimeClockLib in the main edk2 repository. Any out of tree users will need to add the same resolution. Cc: Laszlo Ersek Leif Lindholm (3): EmbeddedPkg: import DesignWare EMMC driver EmbeddedPkg: import EfiTimeBaseLib ArmPlatformPkg,ArmVirtPkg: delete redundant PL031 functions .../Include/Drivers/PL031RealTimeClock.h | 11 - .../PL031RealTimeClockLib/PL031RealTimeClockLib.c | 127 +--- .../PL031RealTimeClockLib.inf | 1 + ArmVirtPkg/ArmVirt.dsc.inc | 1 + EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmc.h | 127 ++++ EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmcDxe.c | 648 +++++++++++++++++++++ EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmcDxe.inf | 53 ++ EmbeddedPkg/EmbeddedPkg.dec | 4 + EmbeddedPkg/Include/Library/EfiTimeBaseLib.h | 68 +++ .../Library/EfiTimeBaseLib/EfiTimeBaseLib.c | 171 ++++++ .../Library/EfiTimeBaseLib/EfiTimeBaseLib.inf | 34 ++ 11 files changed, 1110 insertions(+), 135 deletions(-) create mode 100644 EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmc.h create mode 100644 EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmcDxe.c create mode 100644 EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmcDxe.inf create mode 100644 EmbeddedPkg/Include/Library/EfiTimeBaseLib.h create mode 100644 EmbeddedPkg/Library/EfiTimeBaseLib/EfiTimeBaseLib.c create mode 100644 EmbeddedPkg/Library/EfiTimeBaseLib/EfiTimeBaseLib.inf -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel