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::22c; helo=mail-lj1-x22c.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (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 7D97D21163248 for ; Fri, 5 Oct 2018 06:26:17 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id p89-v6so11626417ljb.3 for ; Fri, 05 Oct 2018 06:26:17 -0700 (PDT) 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=UghEVrO4/PcKFKDtgGrcxlmfEFp90fui7TKYp52rwrMSACqFGEyUb/pu5v/NmrkLPw +RCNX7l5K7V9UJKTJIu8la3e4Db8AEouc4LHh7hkX3L1CzQGtxUrPaChoMWvAHfPB83H UvbuS2Ja+xMYsqDDe9qvwJuhfOcdH4NgAswuCR25K6O83BGiDH7Iq601ZFu83tDNIxcf 6l8ki+bWIIRhh3JV5RRRYxuF9U28CUv+ksqa5oF4fpYpcKbAqMxbD/06nNVAKzUM4+Qn xvZca2I3U+SxIoUROKUjhm3NcxBkOTdpIuRbwmKBOmh4YsJatA869vTePgB/6VvOmlSY /xZg== 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=psD7JqGt9Wq6PQYY7rjsVMEGJZggZDv1ultSfMunFPSRQWbB32IJoS7TG5fUWLLADX MU+ZL77xL9URNJSBqOO9UNit4/dQHN8RuScJ1Z0tQWlQvlFiN95ejIBup7ws+l4cfpST wk5X/P3eGPU+IaKTpPaoFAIPWl8lKEBJmxrQtFtSx3oh9wX6WDx1l59snjmaG8WAUZEy /ROzmfr/c6oqDm/6lnKzu4JaAmJ3OxxBLpQUpDbLnaHRZBsotpIVphKmUS0FcUIekSg1 iTOaDPQzNWCLizXWxRGSe6+INHeyGVx1cVBabc9/l/A501efVQ9cGrYWQcKSVu1QaAq7 XLgg== X-Gm-Message-State: ABuFfog5cVW4ECW9EmLrVU3R5wfgZsv2cjEtnRJIJ46rbFwyHWroAGx1 3BoZ8C0rjtWFA9qqvjdubcVYZx33dAE= X-Google-Smtp-Source: ACcGV607oIHsQt+PTM7gEjoi4GBJFVhjqsgR/xrIpQOe6zQChr0gxJugWykzfSSDoOcCPhxcaLrfTQ== X-Received: by 2002:a2e:7d10:: with SMTP id y16-v6mr7107203ljc.37.1538745975251; Fri, 05 Oct 2018 06:26:15 -0700 (PDT) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id p130-v6sm1817659lfd.55.2018.10.05.06.26.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Oct 2018 06:26:14 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, hao.a.wu@intel.com, ard.biesheuvel@linaro.org, nadavh@marvell.com, mw@semihalf.com, jsd@semihalf.com, tm@semihalf.com Date: Fri, 5 Oct 2018 15:26:03 +0200 Message-Id: <1538745968-22526-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538745968-22526-1-git-send-email-mw@semihalf.com> References: <1538745968-22526-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v2 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: Fri, 05 Oct 2018 13:26:18 -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