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::542; helo=mail-ed1-x542.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) (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 44A1021A07A80 for ; Sun, 18 Nov 2018 22:54:13 -0800 (PST) Received: by mail-ed1-x542.google.com with SMTP id d39so21097818edb.12 for ; Sun, 18 Nov 2018 22:54:13 -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=tDb5fTUx7PR2G3udvlidOnO8vkwLlciNViZY4oa49E8=; b=YIZj4pe39ss0Gdku2tgt+SmJq1J3giwAraVdQoK1S3v0CUNAbf7qCZKOimXyh3BO44 OjNVYok/igjP0A4HqsAhkCqa+6OatHGvWxQX5wlnoR/HP8IDz+4FTIMJZTKMkYMFg9PD hABZrrHSXo+rtjpc5jkKTIwKMDXBTS3k4rmWrW/0dR3vlkbOmmN/7owun9xBOc4xAIxx hty98BUqPtDzlCetN/6gD8TBd3sFNx56h30Msb/UOiygkgzHa1De0y53hZA8oFgevtPT THSilc5IPb87HWY+s8Z6EpDUFGeyq8/DMOcnoXtbpGwju+NXnnggW0tG3N63YzAeEAhg rRaQ== 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=tDb5fTUx7PR2G3udvlidOnO8vkwLlciNViZY4oa49E8=; b=omhKnPRYFjKzM9/eQcwnt+GS+ApUL9764rojH0xwfzOy588W81ULaiO4RZekceqTVm MMa8O4tny9cN7uWkJTUK2KFxn5ATUKdE2WuE4R5n5zS/oOSMFcVypEdI8TNYeXmZc0xz ilGFhXoewBAScYMIrlj5DhzXNNqWY7QAoyH9gZGtuW/DfUl5bAd69OcKeyQprhtNCH4M kdGkQmbSi4+XTR77WnqV2+Qlz4XLOxxntUe/J8K9K8NomuUtRi9CQVMN+rbgk6OxGI1f aEmHODiAGgh8EF3+8GodccEsI04qJVdlM4DPLzTePkq9kxtX2ASmnu0o/u0BKupKiChG dLVA== X-Gm-Message-State: AGRZ1gLt+XO55XCE3UhAjSeu/0hlAQAkke1SKhy8Fq5Eoo1ozoQUaCou I3R4wCvqWse+AKbxvvZCGBYeww064s8= X-Google-Smtp-Source: AJdET5c22JoAq1GtfJK3AhzyWBcbuaNBu1k1C9TPJbrJLT4hFkxRHcXOU9ykvUWJYvOILaTpdNBOOA== X-Received: by 2002:a17:906:73d8:: with SMTP id n24-v6mr16041383ejl.101.1542610451477; Sun, 18 Nov 2018 22:54:11 -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 i56sm4893236eda.37.2018.11.18.22.54.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Nov 2018 22:54:10 -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: Mon, 19 Nov 2018 07:53:34 +0100 Message-Id: <1542610420-9258-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542610420-9258-1-git-send-email-mw@semihalf.com> References: <1542610420-9258-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v6 2/8] 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: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -0000 X-List-Received-Date: Mon, 19 Nov 2018 06:54:13 -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 Reviewed-by: Ard Biesheuvel --- Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h | 21 +++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h index ee8e06e..3fe2988 100644 --- a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h +++ b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h @@ -55,11 +55,30 @@ typedef struct { // // SDMMC devices per-board description // +typedef enum { + RemovableSlot, + EmbeddedSlot, + SharedBusSlot, + UnknownSlot +} MV_SDMMC_SLOT_TYPE; + typedef struct { MV_SOC_SDMMC_DESC *SoC; - UINTN SdMmcDevCount; + UINTN SdMmcDevCount; + BOOLEAN Xenon1v8Enabled; + BOOLEAN Xenon8BitBusEnabled; + BOOLEAN XenonSlowModeEnabled; + UINT8 XenonTuningStepDivisor; + MV_SDMMC_SLOT_TYPE SlotType; } MV_BOARD_SDMMC_DESC; +EFI_STATUS +EFIAPI +ArmadaBoardDescSdMmcGet ( + OUT UINTN *SdMmcDevCount, + OUT MV_BOARD_SDMMC_DESC **SdMmcDesc + ); + // // XHCI devices per-board description // -- 2.7.4