From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4864:20::142; helo=mail-lf1-x142.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) (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 693DD21A07A82 for ; Wed, 7 Nov 2018 17:59:08 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id p17so12969408lfh.4 for ; Wed, 07 Nov 2018 17:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DmUp2larQt1RzJD8aYEXBaQUyb2qTF9hcRykWfrusVM=; b=x+ezxooT8/0o16vXzVZbwLTzvwwqP4jwgZjiQDCsLl21OhAY7GFEGsi0c1oKupVEjr yRMYP+gOVcNBbTKDKcE1IO/zQwIgaN7hgPVx8oRQKftEkgms5WCuwMtoWGgYVtRWuOwz 9PDPj+FzkySGVjlrerNqdipv+Cx/6GhlZNQLxVM5/qlqUowAjzkbRDZjgMqv+CmfoTuX didq/9KhT8T89HQ1VJsBQqLdnZKeYYKFKuEzfCl6uBQGFwyGK7dWkit2OHYZzDe9zV5Y LvDWAIGRJorVF7Z6YZZRNiMPtRh+raz+H4ighTu6J7rnqRPkPUl/aj7asyG0YGUy6SjZ nmIw== 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:in-reply-to :references; bh=DmUp2larQt1RzJD8aYEXBaQUyb2qTF9hcRykWfrusVM=; b=McFclAD3ReOoKpHpm7+GUcCs/1rZpk8uA97vy/IzdEj5M+P9Tp3Bko5IXdhvLqLKEF IlGPonQteDlMdjmXji0e50KDTLjHicl5tKYJDDxvS1SEhtYFH6kPJVWTH4vOWV/EDX/O iFwyrOA7hmoyT1DuPzotoTmQGuaNoTqttnZ/llp9/+7VrIA+s2y2HyC+u3BifVls1dEQ bQUPBCT3pPeJuhMkBilyh1QbVhZKhTyPdmSXyX/NQQr6qRXfk7H7toq0OqrBPl8dEFKi ALsXRO9Ipjz00XD7ElWXbAW93Zu5DbD0N1ZDePfdfHm46sqFLCZSwcEUO50L8vPOO8cZ Mkrg== X-Gm-Message-State: AGRZ1gJaSWtLe3ReX3CThydZczWXN2+guTbZ8XviK7ymaMAYpStPy9ck IKcff9vjH+Lzc1eTvT8Zf5B4CKIeUtk= X-Google-Smtp-Source: AJdET5eenOS9BEZ+9CjggqFMeIhP4F8H/rugQc1aThbr5p3brAqrM3VHGiF0uXfoYwwjSDzrNIr/iA== X-Received: by 2002:a19:702:: with SMTP id 2mr1468906lfh.144.1541642346418; Wed, 07 Nov 2018 17:59:06 -0800 (PST) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id f8sm427174lfb.2.2018.11.07.17.59.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Nov 2018 17:59:05 -0800 (PST) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, hao.a.wu@intel.com, nadavh@marvell.com, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com, tm@semihalf.com Date: Thu, 8 Nov 2018 02:57:40 +0100 Message-Id: <1541642266-15643-2-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541642266-15643-1-git-send-email-mw@semihalf.com> References: <1541642266-15643-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v3 1/7] Silicon/SynQuacer/PlatformDxe: adjust to updated SdMmcOverride X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:08 -0000 The newest changes in the SdMmcOverride protocol added additional arguments to the NotifyPhase and Capability routines. Update according places in the Synquacer Emmc driver. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.c b/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.c index e0987c9..47f5ccc 100644 --- a/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.c +++ b/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.c @@ -72,6 +72,8 @@ STATIC VOID *mEventRegistration; @param[in] ControllerHandle The EFI_HANDLE of the controller. @param[in] Slot The 0 based slot index. @param[in,out] SdMmcHcSlotCapability The SDHCI capability structure. + @param[in,out] BaseClkFreq The base clock frequency value that + optionally can be updated. @retval EFI_SUCCESS The override function completed successfully. @retval EFI_NOT_FOUND The specified controller or slot does not exist. @@ -84,7 +86,8 @@ EFIAPI SynQuacerSdMmcCapability ( IN EFI_HANDLE ControllerHandle, IN UINT8 Slot, - IN OUT VOID *SdMmcHcSlotCapability + IN OUT VOID *SdMmcHcSlotCapability, + IN OUT UINT32 *BaseClkFreq ) { UINT64 Capability; @@ -117,6 +120,7 @@ SynQuacerSdMmcCapability ( @param[in] PhaseType The type of operation and whether the hook is invoked right before (pre) or right after (post) + @param[in,out] PhaseData The pointer to a phase-specific data. @retval EFI_SUCCESS The override function completed successfully. @retval EFI_NOT_FOUND The specified controller or slot does not exist. @@ -129,7 +133,8 @@ EFIAPI SynQuacerSdMmcNotifyPhase ( IN EFI_HANDLE ControllerHandle, IN UINT8 Slot, - IN EDKII_SD_MMC_PHASE_TYPE PhaseType + IN EDKII_SD_MMC_PHASE_TYPE PhaseType, + IN OUT VOID *PhaseData ) { if (ControllerHandle != mSdMmcControllerHandle) { -- 2.7.4