From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: Ard Biesheuvel , Laszlo Ersek 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: [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: , X-List-Received-Date: Wed, 03 May 2017 21:38:16 -0000 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