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::242; helo=mail-lj1-x242.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::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 2A7E521A07A82 for ; Wed, 7 Nov 2018 17:59:10 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id g26-v6so16556182lja.10 for ; Wed, 07 Nov 2018 17:59:10 -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=jBVWD6/mtgly9yp6D0bn3yV1uZojXp0MPlTMpSmBSCU=; b=upqft5MsAR3Dgpw1g6zD+hNunppRjtVjPTPzzBTz09MA1QKAuJNCmhyGVif+OhJZP5 UDr3z5hl8fQ3If8+SQNq2c9CspowzPNmAdcWwDBS4/M4iYU2eBdmiI8x1r44LwFzZLLb Zk0L2RkvpM3wrVmk25IMydddX7VDGu4XN8OTH0RNGTEWCegbM5Ag7muYYloZHoDFTKUM RrkXixrs7Zcl2Jb5oPHoPT4H9U/2SzGBtShP8icGJxzjLGeZbXXU4Z93fwXKDBu/KVCH bnt0wpXYAw08nDi3vYRrUCT1yCzOzGiuiDUf/UQNqxzOW8kY6WtWUhMPmRneMGTCQ/xt woaw== 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=jBVWD6/mtgly9yp6D0bn3yV1uZojXp0MPlTMpSmBSCU=; b=gj3osaiF3IP8uLID/LAKP/GFfzjUuo6VDbyUt4cRvaswFrNApUkbElSx8uWS87IDtE HIoMtSIYvr2ElHz4efi7t1G6//H1lDdtCbdnO2nSc5RW+HpuE3sXx0ph4627p+xgvXlO l0L/MSsPWYoEDK+eBScaRUgxD75IKDa18MCRNNaQaHrde2zIGHllHtQPOiG/UUlOKn45 TAi2js1VfymLEei5JPoji7D+RWBGO6yDNiIZplSZPd2c7CvY5nlSC2X54/Z/LnydiIFk oE6HCRg2W87DRuK5w/DA31ZIJ/fQxpX9DKPXm49Dg4bYWlpa1HjgUdSSMSS3LXoXNZYq xHpA== X-Gm-Message-State: AGRZ1gK46XJnbrl+MlnZWFemcZkU+ZSEGVPiL5zXNUDRCYyh3nQbt1um Z7qK6EzkMsNBpOK6BkLVMQFHFK8AGsk= X-Google-Smtp-Source: AJdET5d5Qtq5plDtuaVCEA1420Tk96O6DO3RY/uese/x4QDWZP2o8dVtYBgWxq4u5SiQWXCZwZ7B2g== X-Received: by 2002:a2e:99d7:: with SMTP id l23-v6mr1525658ljj.165.1541642348157; Wed, 07 Nov 2018 17:59:08 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Nov 2018 17:59:07 -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:41 +0100 Message-Id: <1541642266-15643-3-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 2/7] Marvell/Library: ArmadaBoardDescLib: Extend SDMMC information 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:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 X-List-Received-Date: Thu, 08 Nov 2018 01:59:10 -0000 From: Tomasz Michalec Added fields specific for Xenon host controller and declaration of ArmadaBoardDescSdMmcGet function. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h index ee8e06e..4bb7a43 100644 --- a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h +++ b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h @@ -14,6 +14,8 @@ #ifndef __ARMADA_BOARD_DESC_LIB_H__ #define __ARMADA_BOARD_DESC_LIB_H__ +#include + #include // @@ -57,7 +59,12 @@ typedef struct { // typedef struct { MV_SOC_SDMMC_DESC *SoC; - UINTN SdMmcDevCount; + UINTN SdMmcDevCount; + BOOLEAN Xenon1v8Enabled; + BOOLEAN Xenon8BitBusEnabled; + BOOLEAN XenonSlowModeEnabled; + UINT8 XenonTuningStepDivisor; + EFI_SD_MMC_SLOT_TYPE SlotType; } MV_BOARD_SDMMC_DESC; // @@ -84,4 +91,12 @@ typedef struct { UINTN UtmiDevCount; UINTN UtmiPortType; } MV_BOARD_UTMI_DESC; + +EFI_STATUS +EFIAPI +ArmadaBoardDescSdMmcGet ( + IN OUT UINTN *SdMmcDevCount, + IN OUT MV_BOARD_SDMMC_DESC **SdMmcDesc + ); + #endif /* __ARMADA_SOC_DESC_LIB_H__ */ -- 2.7.4