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::543; helo=mail-ed1-x543.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) (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 3665621959CB2 for ; Tue, 13 Nov 2018 04:33:30 -0800 (PST) Received: by mail-ed1-x543.google.com with SMTP id n19-v6so10279514edq.11 for ; Tue, 13 Nov 2018 04:33:30 -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=otNX9fbz4U8W9wzQrWWnIQolkjz8ppaSGr+kQuu/1J8=; b=gjbnvQJjYeoYorg3jEzACQHTRhdlIkk407i48AlgEzH34Y1AN/LdGpth9GaT0X5mDV Y5Odu8bzilFCLwSWCTPwho96ATlHQTXIjWK9VhLlB5ptQkoAH8gRaXEzb1IFAxSsMX6k HP5uwi4AO7YCs8mnEIQNsIoccuUBpihomaQDPxOPlDd2ZPn1zAcNRVkd9OyXW7MfMiD8 uJznTnCPupMV/dLPRmH/4lXhei4DSELwUtEAXDVcPYHR27nYgHpVti4C7jLWWHYIygI9 3gL71BPLh4uK9nuMQiEVTcRKdcwJRJPFuueopDo+4M+r4MdOgoNUnDp5l5gUUpQiYVz/ 1KtQ== 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=otNX9fbz4U8W9wzQrWWnIQolkjz8ppaSGr+kQuu/1J8=; b=D9vBz0XjftSrKQFlagvoLZ7v9QlMsyGbkQH0uIct/n45wvtjySY46YgKY7fLaL8fRq vZFJCNfTOYrKOF7pFujDnFyruEE14Xf7fky8p25K3W0IfcejD9K7FI9zEYoUvYgr9e85 vaZ4ymGnDyIkBtKoUfC8CNir+2xFfC80yIxVDwXKSF6NaUi6rGoWGDuFlfz2Ylym5mZJ NHpzJ/UnW7nFC7/DP+Am1hKXR29TMP1mc4BU3IhoMzDeqHzn/ghukMDym54S0rxRRYDy LCRXWS5PIf4qS52WSnSSAasYZPk0GuHfrW1hmiNQnPZSvxM8a0W4zal3oVA4IglFtr38 3D2w== X-Gm-Message-State: AGRZ1gJErQ8c6KdTrPOlfg0Dd0D+4umZLhET+kxaHFjbSW27wO4fUqrV bsZUU2tKZwL/umT2pJtLHypP69QYMqk= X-Google-Smtp-Source: AJdET5fjWqWrvO0ZYXxayh90zE7FOd/UJegcOrHR7Q6wQnc//xlhfvzjKPWW2+GLhFHyh/xVmifVbg== X-Received: by 2002:a50:8881:: with SMTP id d1-v6mr15404505edd.156.1542112408417; Tue, 13 Nov 2018 04:33:28 -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 h28-v6sm5298083ede.49.2018.11.13.04.33.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Nov 2018 04:33:27 -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: Tue, 13 Nov 2018 13:32:44 +0100 Message-Id: <1542112371-32546-2-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542112371-32546-1-git-send-email-mw@semihalf.com> References: <1542112371-32546-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v5 1/8] 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: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -0000 X-List-Received-Date: Tue, 13 Nov 2018 12:33:30 -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 Reviewed-by: Ard Biesheuvel --- 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