From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::242; helo=mail-wm0-x242.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 6DAB721B00DE1 for ; Wed, 8 Nov 2017 08:44:01 -0800 (PST) Received: by mail-wm0-x242.google.com with SMTP id r68so11789262wmr.1 for ; Wed, 08 Nov 2017 08:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oxuJ7kxBPr5pz7bZPTw6L9Y3wZJWG0yx8bxis7D7v/s=; b=aJ3FhMcWcoYs+sf8nG7Lbye7603wg2MSgzz6+YUX8JO+dOaoxfJPB1OXGpox922qnY uIprQO/UyXjbKr0RbuCjBIoZM1a0k53iJhSD15m/HeXzIsQUZVW9Rrf+KIW5ErRnL9nA w40gFbDfMM9cWlDm+N0eG2lNtnWYnzEAnq6Xw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oxuJ7kxBPr5pz7bZPTw6L9Y3wZJWG0yx8bxis7D7v/s=; b=sNte3sLFUJSndcc/T5x3sndcc8MXPbtgyzeJh7nPauzY98SToz0el84UkeTiSN6rB+ OiTPWT2WAlQqvsxOysBy7FMqFfbfYWkKBcNJruAzlbbfILLjhmNDQP1SOr8YsODRyXaq ZNn3qx5xVyTOFEkonE3H9juTO6MbQb/pm+OvtBn5+qGp6fbjkWgrOj7Kw+yDWMf4xDbL 22/1Q2pOUj1TQflIF4+OrXih2tBAGf9vYmkAPPdZ6Xx65oFih+rQGQNk1DuLXunhfsfo 7+bFeaGa7+KPkw0UhrKPT9b+dVT4wOX827udiyveD7+fKaoz4YbXpzyid8L7rrTK4Jl7 gUrw== X-Gm-Message-State: AJaThX73aYSaUNc0ZQJzjmWt080pt7k4LGfPfVNR+CCfULck8SjnLUCW 8N5GvJcAHLy2MdnpTFwEoghWig== X-Google-Smtp-Source: AGs4zMYw/X6b9TWP7NSx2h6Rzm4flasNNrtNMTqa2ioQCni1VHGNowcVhIg48XTh662MRbSIBE6Lrg== X-Received: by 10.28.45.214 with SMTP id t205mr939030wmt.94.1510159680969; Wed, 08 Nov 2017 08:48:00 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id 2sm1952251wrq.83.2017.11.08.08.47.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Nov 2017 08:47:59 -0800 (PST) Date: Wed, 8 Nov 2017 16:47:58 +0000 From: Leif Lindholm To: Ard Biesheuvel Cc: edk2-devel@lists.01.org, daniel.thompson@linaro.org Message-ID: <20171108164758.edrae5f4invwybc6@bivouac.eciton.net> References: <20171103101654.30973-1-ard.biesheuvel@linaro.org> <20171103101654.30973-2-ard.biesheuvel@linaro.org> MIME-Version: 1.0 In-Reply-To: <20171103101654.30973-2-ard.biesheuvel@linaro.org> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [RFC PATCH edk2-platforms 1/3] Silicon/NXP: add RTC support library for PCF8563 I2C IP 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, 08 Nov 2017 16:44:01 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Nov 03, 2017 at 10:16:52AM +0000, Ard Biesheuvel wrote: > Add a RealTimeClockLib implementation for the NXP PCF8563 as used on > the Socionext Developer Box board. Note that the standard I2C protocol > stack does not support runtime use, so this driver invokes the I2C master > protocol directly. This requires support from the platform side as well, > and so this driver will only attach to a I2C master that has the > gPcf8563RealTimeClockLibI2cMasterProtolGuid protocol installed on its > handle. It is up to the platform to ensure that the driver producing > the I2C master protocol in question is runtime capable, and is not > shared with the I2C protocol stack (i.e., it should not have the I2C > Bus Configuration Management protocol installed as well). > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm > --- > Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.c | 385 ++++++++++++++++++++ > Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.dec | 29 ++ > Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.inf | 52 +++ > 3 files changed, 466 insertions(+)