From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Marcin Wojtas <mw@semihalf.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
"Leif Lindholm" <leif.lindholm@linaro.org>,
"Wu, Hao A" <hao.a.wu@intel.com>,
"Nadav Haklai" <nadavh@marvell.com>,
"Jan Dąbroś" <jsd@semihalf.com>,
"Grzegorz Jaszczyk" <jaz@semihalf.com>,
"Kostya Porotchkin" <kostap@marvell.com>,
"Tomasz Michalec" <tm@semihalf.com>
Subject: Re: [platforms: PATCH v3 2/7] Marvell/Library: ArmadaBoardDescLib: Extend SDMMC information
Date: Thu, 8 Nov 2018 12:47:35 +0100 [thread overview]
Message-ID: <CAKv+Gu-TXAMTrsAQg8xwOAHB_By_fT_Jt5UjatKNHH-=cymFKw@mail.gmail.com> (raw)
In-Reply-To: <1541642266-15643-3-git-send-email-mw@semihalf.com>
On 8 November 2018 at 02:57, Marcin Wojtas <mw@semihalf.com> wrote:
> From: Tomasz Michalec <tm@semihalf.com>
>
> Added fields specific for Xenon host controller and declaration
> of ArmadaBoardDescSdMmcGet function.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Marcin Wojtas <mw@semihalf.com>
> ---
> 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 <Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h>
> +
I don't like this at all. We are depending on an internal header of a
certain implementation. Please find a better way to share these
definitions.
> #include <Library/ArmadaSoCDescLib.h>
>
> //
> @@ -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
>
next prev parent reply other threads:[~2018-11-08 11:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-08 1:57 [platforms: PATCH v2 0/7] Armada7k8k Xenon driver rework Marcin Wojtas
2018-11-08 1:57 ` [platforms: PATCH v3 1/7] Silicon/SynQuacer/PlatformDxe: adjust to updated SdMmcOverride Marcin Wojtas
2018-11-08 11:46 ` Ard Biesheuvel
2018-11-08 1:57 ` [platforms: PATCH v3 2/7] Marvell/Library: ArmadaBoardDescLib: Extend SDMMC information Marcin Wojtas
2018-11-08 11:47 ` Ard Biesheuvel [this message]
2018-11-08 11:55 ` Marcin Wojtas
2018-11-08 1:57 ` [platforms: PATCH v3 3/7] SolidRun/Armada80x0McBin: Introduce board description library Marcin Wojtas
2018-11-08 1:57 ` [platforms: PATCH v3 4/7] Marvell/Armada70x0Db: " Marcin Wojtas
2018-11-08 1:57 ` [platforms: PATCH v3 5/7] Marvell/Armada80x0Db: " Marcin Wojtas
2018-11-08 1:57 ` [platforms: PATCH v3 6/7] Marvell/Drivers: MvBoardDesc: Extend information for SdMmc Marcin Wojtas
2018-11-08 1:57 ` [platforms: PATCH v3 7/7] Marvell/Drivers: XenonDxe: Switch to use generic SdMmcPciHcDxe Marcin Wojtas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKv+Gu-TXAMTrsAQg8xwOAHB_By_fT_Jt5UjatKNHH-=cymFKw@mail.gmail.com' \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox