From patchwork Fri Nov 3 10:16:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 117869 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3269449qgn; Fri, 3 Nov 2017 03:17:09 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RhZPdpFTbgRnltwn72+1ii7aiwyjXEO+YZcOqR+/Uvs42CKZwml+6VeyPZDNXW6HyY8PdV X-Received: by 10.84.240.2 with SMTP id y2mr6266223plk.372.1509704229271; Fri, 03 Nov 2017 03:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509704229; cv=none; d=google.com; s=arc-20160816; b=e/V/Ptu5KV5GXCUF/O3Dk/hD69kifdyJQlHvItnWvb4fwzcdXpKEvarJuT39D2DVti ylJz53k2OqHBiQoSohDYjmdnGsHYaRc1zvzpChOqVZK81r/yoZ2r+IDiTJdS4HqsgYp5 3V7VrfynOy1+xjD1dvdGvslbIdXorYvJDdeEJuAM2dQ2BVmvfm2JotNaVx3wNIv1+Szt 1NUdEgna0YQMwTYCKe1qXR7X1h3hzioZ5LhaARCvIhWU8E//3xg3L6XWkBBEVS693u30 FoxEc/KiTbenZ7kMebjse/zLqf0rj4PSoFtCS7tE2Y51lcz4lUI3mkarOKykHcqkNy7U 8A6w== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=vHYfxoZSNDDUqoVBngmvOMzqp1cp8hjf0SfFKDZ4GwA=; b=ne7mIFsRyGXajQ3e5R9XU3tgZG9BMqQXvcmGIBDwYKs+KkKkMSgxKy8h0jQbL06KOu +ZfOrZgg5GJ0uw0lGZE+2+RPp91QTamEtCGLN5cYM9gzZLrf66PHyXpgABgyY5Y2Xjdw 1TKs9HmNVf5FOmkngyv52x4Kse5uByF+kHKNY3NoN5LYDeGo+cuBa2BN2bsRB+uACC0X UacJaLPI5ruvL+pZ4FYajYfFHazn4lRDaAIL56g6I0cc6br8SDq7n3HTYR0+G+enOWVP o5co61DOCOWXpXU1q3QiBcgeu/OcLqBditsJSwKDNshUnVQVzxyoJSgzOK1j1zcTXKoD KPrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gh0r5/55; 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 b89si4553304plb.556.2017.11.03.03.17.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Nov 2017 03:17:09 -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 header.s=google header.b=Gh0r5/55; 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 8873321FCA290; Fri, 3 Nov 2017 03:13:13 -0700 (PDT) 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:c09::241; helo=mail-wm0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 6479D21F7F5D8 for ; Fri, 3 Nov 2017 03:13:12 -0700 (PDT) Received: by mail-wm0-x241.google.com with SMTP id y80so447894wmd.0 for ; Fri, 03 Nov 2017 03:17:07 -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=SAFBHTaIylTusW/50T837UiOR1s5gDeyPpLaZvKBThc=; b=Gh0r5/55kICMinuB7YTaSsf2wG44EgKYZKPCos7riv8y9z5mxvKqMhNzMQcrPDz/ta TkGv58UZLha42i2NovdSD8iJYxiuGRQN+lvv5IIYUl/4IWcZiOrJwhb4q5nL0IypMXM8 +wjGROpzcjN/Xnom1Fv/4YLAHXx6/OJOaIodE= 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=SAFBHTaIylTusW/50T837UiOR1s5gDeyPpLaZvKBThc=; b=QcFqeBW9UrRhL14roo2N60TArD3D0wJhzPUHvx61U+TKiJ1nEpioSQPAF44ke+8BJT zoS7Dbu9ynnCVd3p3RJQ0WrfuB54hIGnVXxMjMT3j82rBP/w0ms3DmFXNNXuzeBZsmEy x+bJ9TfTuimypF7l/FxZzg+Aw70oXRb6d+cF0uhsLtnZhA+i1SUSxVTpDjxHfWTPzTZh 8ohcuhSD0x+l1wSqPne4labsH2pv8GENXSeOn4zzXyFA4Mo9OmOoeHuHGZOWzrBaafho EU+bNb5vpj9i6qryTMw93uIj5smXnTWhuDdma1T+fM8jGk9w2zo5vzEvqzycblKWXbts Cebw== X-Gm-Message-State: AMCzsaUWanSRFgMyQtWorcbi7dEJIudp7sTshEyGLZonunOtK4TnzWCK n1ATySt2lSn+BJsPVbUng5PmIDsRrHk= X-Received: by 10.28.31.21 with SMTP id f21mr3597472wmf.18.1509704225212; Fri, 03 Nov 2017 03:17:05 -0700 (PDT) Received: from localhost.localdomain ([105.129.222.2]) by smtp.gmail.com with ESMTPSA id w18sm5331408wra.30.2017.11.03.03.17.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Nov 2017 03:17:04 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, daniel.thompson@linaro.org Date: Fri, 3 Nov 2017 10:16:51 +0000 Message-Id: <20171103101654.30973-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [RFC PATCH edk2-platforms 0/3] add I2C RTC support to DeveloperBox 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: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This implements RTC support over I2C for the Socionext DeveloperBox platform. Note that using the I2C protocol at runtime is not supported by the ordinary I2C protocol stack, so we have to take special precautions to allow the RTC driver to invoke the I2C master protocol directly. The same driver is able to driver other controllers in the ordinary way in parallel. Ard Biesheuvel (3): Silicon/NXP: add RTC support library for PCF8563 I2C IP Silicon/Socionext: implement I2C master protocol for SynQuacer I2C Platform/DeveloperBox: wire up RTC support Platform/Socionext/DeveloperBox/DeveloperBox.dsc | 8 +- Platform/Socionext/DeveloperBox/DeveloperBox.fdf | 5 + Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.c | 385 ++++++++++++ Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.dec | 29 + Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.inf | 52 ++ Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c | 76 ++- Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.inf | 6 +- Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/ComponentName.c | 185 ++++++ Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/DriverBinding.c | 238 ++++++++ Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/SynQuacerI2cDxe.c | 618 ++++++++++++++++++++ Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/SynQuacerI2cDxe.h | 162 +++++ Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/SynQuacerI2cDxe.inf | 59 ++ Silicon/Socionext/SynQuacer/Include/Platform/MemoryMap.h | 8 + Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c | 4 + Silicon/Socionext/SynQuacer/SynQuacer.dec | 5 + 15 files changed, 1829 insertions(+), 11 deletions(-) create mode 100644 Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.c create mode 100644 Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.dec create mode 100644 Silicon/NXP/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.inf create mode 100644 Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/ComponentName.c create mode 100644 Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/DriverBinding.c create mode 100644 Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/SynQuacerI2cDxe.c create mode 100644 Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/SynQuacerI2cDxe.h create mode 100644 Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/SynQuacerI2cDxe.inf -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel