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::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-Google-Smtp-Source: ABhQp+Rc+fLE23vqQuExIDaJyo9aofoFQQmtbf7/ByPycxhbr/iDHwrTIDQY1ApbCqVi/KIdIa4itw== 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 Cc: Ard Biesheuvel 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: [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: , X-List-Received-Date: Fri, 03 Nov 2017 10:13:12 -0000 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