回复: [edk2-devel] [PATCH V2 1/6] MdePkg/Include: Update definitions of SPI related header files
Abner: The rule bases on the public spec. So, we need to wait for the spec. Thanks Liming > -邮件原件- > 发件人: devel@edk2.groups.io 代表 Chang, Abner > via groups.io > 发送时间: 2023年8月2日 15:49 > 收件人: gaoliming ; devel@edk2.groups.io > 抄送: 'Michael D Kinney' ; 'Zhiguang Liu' > ; Attar, AbdulLateef (Abdul Lateef) > > 主题: Re: [edk2-devel] [PATCH V2 1/6] MdePkg/Include: Update definitions of > SPI related header files > > [AMD Official Use Only - General] > > Hi Liming, > I think as the ECR already approved as the errata by PIWG, can we just > merged the code to save sometime? > > Thanks > Abner > > > -Original Message- > > From: gaoliming > > Sent: Wednesday, August 2, 2023 1:41 PM > > To: Chang, Abner ; devel@edk2.groups.io > > Cc: 'Michael D Kinney' ; 'Zhiguang Liu' > > ; Attar, AbdulLateef (Abdul Lateef) > > > > Subject: 回复: [PATCH V2 1/6] MdePkg/Include: Update definitions of SPI > related > > header files > > > > Caution: This message originated from an External Source. Use proper > caution > > when opening attachments, clicking links, or responding. > > > > > > Abner: > > PI 1.8 Errata has not been published. This change may be deferred until > > new spec is public. > > > > Thanks > > Liming > > > -邮件原件- > > > 发件人: abner.ch...@amd.com > > > 发送时间: 2023年8月1日 15:57 > > > 收件人: devel@edk2.groups.io > > > 抄送: Michael D Kinney ; Liming Gao > > > ; Zhiguang Liu ; > Abdul > > > Lateef Attar > > > 主题: [PATCH V2 1/6] MdePkg/Include: Update definitions of SPI related > > > header files > > > > > > From: Abner Chang > > > > > > BZ#: 4471 > > > Update definitions according to PI spec v1.8 Errata as it > > > is approved in PIWG (Ticket #2394). > > > > > > Signed-off-by: Abner Chang > > > Cc: Michael D Kinney > > > Cc: Liming Gao > > > Cc: Zhiguang Liu > > > Cc: Abdul Lateef Attar > > > --- > > > MdePkg/Include/Protocol/SpiConfiguration.h | 8 > > > MdePkg/Include/Protocol/SpiHc.h| 14 ++ > > > MdePkg/Include/Protocol/SpiIo.h| 10 ++ > > > 3 files changed, 32 insertions(+) > > > > > > diff --git a/MdePkg/Include/Protocol/SpiConfiguration.h > > > b/MdePkg/Include/Protocol/SpiConfiguration.h > > > index 3f8fb9ff62c..cffdc8e232d 100644 > > > --- a/MdePkg/Include/Protocol/SpiConfiguration.h > > > +++ b/MdePkg/Include/Protocol/SpiConfiguration.h > > > @@ -2,6 +2,7 @@ > > >This file defines the SPI Configuration Protocol. > > > > > >Copyright (c) 2017, Intel Corporation. All rights reserved. > > > + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. > > >SPDX-License-Identifier: BSD-2-Clause-Patent > > > > > >@par Revision Reference: > > > @@ -168,6 +169,13 @@ typedef struct _EFI_SPI_BUS { > > >VOID*ClockParameter; > > > } EFI_SPI_BUS; > > > > > > +/// > > > +/// Definitions of SPI Part Attributes. > > > +/// > > > +#define SPI_PART_SUPPORTS_2_BIT_DATA_BUS_WIDTH BIT0 > > > +#define SPl_PART_SUPPORTS_4_B1T_DATA_BUS_WIDTH BIT1 > > > +#define SPl_PART_SUPPORTS_8_B1T_DATA_BUS_WIDTH BIT2 > > > + > > > /// > > > /// The EFI_SPI_PERIPHERAL data structure describes how a specific > block > > of > > > /// logic which is connected to the SPI bus. This data structure also > > selects > > > diff --git a/MdePkg/Include/Protocol/SpiHc.h > > > b/MdePkg/Include/Protocol/SpiHc.h > > > index 30128dd5c4d..645bfdefe9b 100644 > > > --- a/MdePkg/Include/Protocol/SpiHc.h > > > +++ b/MdePkg/Include/Protocol/SpiHc.h > > > @@ -2,6 +2,7 @@ > > >This file defines the SPI Host Controller Protocol. > > > > > >Copyright (c) 2017, Intel Corporation. All rights reserved. > > > + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. > > >SPDX-License-Identifier: BSD-2-Clause-Patent > > > > > >@par Revision Reference: > > > @@ -121,6 +122,19 @@ typedef EFI_STATUS > > >IN EFI_SPI_BUS_TRANSACTION*BusTransaction > > >); > > > > > > +/// > > > +/// Definitions of SPI Host Controller Attributes. > > > +/// > > > +#define HC_SUPPORTS_WRITE_ONLY_OPERATIONS BIT0 > > > +#define HC_SUPPORTS_READ_ONLY_OPERATION
Re: [edk2-devel] [PATCH V2 1/6] MdePkg/Include: Update definitions of SPI related header files
[AMD Official Use Only - General] Hi Liming, I think as the ECR already approved as the errata by PIWG, can we just merged the code to save sometime? Thanks Abner > -Original Message- > From: gaoliming > Sent: Wednesday, August 2, 2023 1:41 PM > To: Chang, Abner ; devel@edk2.groups.io > Cc: 'Michael D Kinney' ; 'Zhiguang Liu' > ; Attar, AbdulLateef (Abdul Lateef) > > Subject: 回复: [PATCH V2 1/6] MdePkg/Include: Update definitions of SPI related > header files > > Caution: This message originated from an External Source. Use proper caution > when opening attachments, clicking links, or responding. > > > Abner: > PI 1.8 Errata has not been published. This change may be deferred until > new spec is public. > > Thanks > Liming > > -邮件原件- > > 发件人: abner.ch...@amd.com > > 发送时间: 2023年8月1日 15:57 > > 收件人: devel@edk2.groups.io > > 抄送: Michael D Kinney ; Liming Gao > > ; Zhiguang Liu ; Abdul > > Lateef Attar > > 主题: [PATCH V2 1/6] MdePkg/Include: Update definitions of SPI related > > header files > > > > From: Abner Chang > > > > BZ#: 4471 > > Update definitions according to PI spec v1.8 Errata as it > > is approved in PIWG (Ticket #2394). > > > > Signed-off-by: Abner Chang > > Cc: Michael D Kinney > > Cc: Liming Gao > > Cc: Zhiguang Liu > > Cc: Abdul Lateef Attar > > --- > > MdePkg/Include/Protocol/SpiConfiguration.h | 8 > > MdePkg/Include/Protocol/SpiHc.h| 14 ++ > > MdePkg/Include/Protocol/SpiIo.h| 10 ++ > > 3 files changed, 32 insertions(+) > > > > diff --git a/MdePkg/Include/Protocol/SpiConfiguration.h > > b/MdePkg/Include/Protocol/SpiConfiguration.h > > index 3f8fb9ff62c..cffdc8e232d 100644 > > --- a/MdePkg/Include/Protocol/SpiConfiguration.h > > +++ b/MdePkg/Include/Protocol/SpiConfiguration.h > > @@ -2,6 +2,7 @@ > >This file defines the SPI Configuration Protocol. > > > >Copyright (c) 2017, Intel Corporation. All rights reserved. > > + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. > >SPDX-License-Identifier: BSD-2-Clause-Patent > > > >@par Revision Reference: > > @@ -168,6 +169,13 @@ typedef struct _EFI_SPI_BUS { > >VOID*ClockParameter; > > } EFI_SPI_BUS; > > > > +/// > > +/// Definitions of SPI Part Attributes. > > +/// > > +#define SPI_PART_SUPPORTS_2_BIT_DATA_BUS_WIDTH BIT0 > > +#define SPl_PART_SUPPORTS_4_B1T_DATA_BUS_WIDTH BIT1 > > +#define SPl_PART_SUPPORTS_8_B1T_DATA_BUS_WIDTH BIT2 > > + > > /// > > /// The EFI_SPI_PERIPHERAL data structure describes how a specific block > of > > /// logic which is connected to the SPI bus. This data structure also > selects > > diff --git a/MdePkg/Include/Protocol/SpiHc.h > > b/MdePkg/Include/Protocol/SpiHc.h > > index 30128dd5c4d..645bfdefe9b 100644 > > --- a/MdePkg/Include/Protocol/SpiHc.h > > +++ b/MdePkg/Include/Protocol/SpiHc.h > > @@ -2,6 +2,7 @@ > >This file defines the SPI Host Controller Protocol. > > > >Copyright (c) 2017, Intel Corporation. All rights reserved. > > + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. > >SPDX-License-Identifier: BSD-2-Clause-Patent > > > >@par Revision Reference: > > @@ -121,6 +122,19 @@ typedef EFI_STATUS > >IN EFI_SPI_BUS_TRANSACTION*BusTransaction > >); > > > > +/// > > +/// Definitions of SPI Host Controller Attributes. > > +/// > > +#define HC_SUPPORTS_WRITE_ONLY_OPERATIONS BIT0 > > +#define HC_SUPPORTS_READ_ONLY_OPERATIONSBIT1 > > +#define HC_SUPPORTS_WRITE_THEN_READ_OPERATIONS BIT2 > > +#define HC_TX_FRAME_IN_MOST_SIGNIFICANT_BITSBIT3 > > +#define HC_RX_FRAME_IN_MOST_SIGNIFICANT_BITSBIT4 > > +#define HC_SUPPORTS_2_BIT_DATA_BUS_WIDTHBIT5 > > +#define HC_SUPPORTS_4_BIT_DATA_BUS_WIDTHBIT6 > > +#define HC_SUPPORTS_8_BIT_DATA_BUS_WIDTHBIT7 > > +#define HC_TRANSFER_SIZE_INCLUDES_OPCODEBIT8 > > +#define HC_TRANSFER_SIZE_INCLUDES_ADDRESS BIT9 > > /// > > /// Support a SPI data transaction between the SPI controller and a SPI > chip. > > /// > > diff --git a/MdePkg/Include/Protocol/SpiIo.h > > b/MdePkg/Include/Protocol/SpiIo.h > > index b4fc5e03b88..0ea881fd115 100644 > > --- a/MdePkg/Include/Protocol/SpiIo.h > > +++ b/MdePkg/Include/Protocol/SpiIo.h > > @@ -2,6 +2,7 @@ > >This file defines the SPI I/O Protocol. > > > >Copyright (c) 2017, Intel Corporation. All rights reserved. > > + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. > >SPDX-License-Identifier: BSD-2-Clause-Patent > > > >@par Revision Reference: > > @@ -223,6 +224,15 @@ typedef struct _EFI_SPI_BUS_TRANSACTION { > >UINT8 *ReadBuffer; > > } EFI_SPI_BUS_TRANSACTION; > > > > +/// > > +/// Definitions of SPI I/O Attributes. > > +/// > > +#define SPI_IO_SUPPORTS_2_BIT_DATA_BUS_WIDTH BIT0 > > +#define SPI_IO_SUPPORTS_4_BIT_DATA_BUS_WIDTH BIT1 > > +#define SPI_IO_SUPPORTS_8_BIT_DATA_BUS_WIDTH BIT2 > > +#define SPI_IO_TRANSFER_SIZE_INCLUDES_OPCODE
[edk2-devel] [PATCH V2 1/6] MdePkg/Include: Update definitions of SPI related header files
From: Abner Chang BZ#: 4471 Update definitions according to PI spec v1.8 Errata as it is approved in PIWG (Ticket #2394). Signed-off-by: Abner Chang Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Abdul Lateef Attar --- MdePkg/Include/Protocol/SpiConfiguration.h | 8 MdePkg/Include/Protocol/SpiHc.h| 14 ++ MdePkg/Include/Protocol/SpiIo.h| 10 ++ 3 files changed, 32 insertions(+) diff --git a/MdePkg/Include/Protocol/SpiConfiguration.h b/MdePkg/Include/Protocol/SpiConfiguration.h index 3f8fb9ff62c..cffdc8e232d 100644 --- a/MdePkg/Include/Protocol/SpiConfiguration.h +++ b/MdePkg/Include/Protocol/SpiConfiguration.h @@ -2,6 +2,7 @@ This file defines the SPI Configuration Protocol. Copyright (c) 2017, Intel Corporation. All rights reserved. + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent @par Revision Reference: @@ -168,6 +169,13 @@ typedef struct _EFI_SPI_BUS { VOID*ClockParameter; } EFI_SPI_BUS; +/// +/// Definitions of SPI Part Attributes. +/// +#define SPI_PART_SUPPORTS_2_BIT_DATA_BUS_WIDTH BIT0 +#define SPl_PART_SUPPORTS_4_B1T_DATA_BUS_WIDTH BIT1 +#define SPl_PART_SUPPORTS_8_B1T_DATA_BUS_WIDTH BIT2 + /// /// The EFI_SPI_PERIPHERAL data structure describes how a specific block of /// logic which is connected to the SPI bus. This data structure also selects diff --git a/MdePkg/Include/Protocol/SpiHc.h b/MdePkg/Include/Protocol/SpiHc.h index 30128dd5c4d..645bfdefe9b 100644 --- a/MdePkg/Include/Protocol/SpiHc.h +++ b/MdePkg/Include/Protocol/SpiHc.h @@ -2,6 +2,7 @@ This file defines the SPI Host Controller Protocol. Copyright (c) 2017, Intel Corporation. All rights reserved. + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent @par Revision Reference: @@ -121,6 +122,19 @@ typedef EFI_STATUS IN EFI_SPI_BUS_TRANSACTION*BusTransaction ); +/// +/// Definitions of SPI Host Controller Attributes. +/// +#define HC_SUPPORTS_WRITE_ONLY_OPERATIONS BIT0 +#define HC_SUPPORTS_READ_ONLY_OPERATIONSBIT1 +#define HC_SUPPORTS_WRITE_THEN_READ_OPERATIONS BIT2 +#define HC_TX_FRAME_IN_MOST_SIGNIFICANT_BITSBIT3 +#define HC_RX_FRAME_IN_MOST_SIGNIFICANT_BITSBIT4 +#define HC_SUPPORTS_2_BIT_DATA_BUS_WIDTHBIT5 +#define HC_SUPPORTS_4_BIT_DATA_BUS_WIDTHBIT6 +#define HC_SUPPORTS_8_BIT_DATA_BUS_WIDTHBIT7 +#define HC_TRANSFER_SIZE_INCLUDES_OPCODEBIT8 +#define HC_TRANSFER_SIZE_INCLUDES_ADDRESS BIT9 /// /// Support a SPI data transaction between the SPI controller and a SPI chip. /// diff --git a/MdePkg/Include/Protocol/SpiIo.h b/MdePkg/Include/Protocol/SpiIo.h index b4fc5e03b88..0ea881fd115 100644 --- a/MdePkg/Include/Protocol/SpiIo.h +++ b/MdePkg/Include/Protocol/SpiIo.h @@ -2,6 +2,7 @@ This file defines the SPI I/O Protocol. Copyright (c) 2017, Intel Corporation. All rights reserved. + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent @par Revision Reference: @@ -223,6 +224,15 @@ typedef struct _EFI_SPI_BUS_TRANSACTION { UINT8 *ReadBuffer; } EFI_SPI_BUS_TRANSACTION; +/// +/// Definitions of SPI I/O Attributes. +/// +#define SPI_IO_SUPPORTS_2_BIT_DATA_BUS_WIDTH BIT0 +#define SPI_IO_SUPPORTS_4_BIT_DATA_BUS_WIDTH BIT1 +#define SPI_IO_SUPPORTS_8_BIT_DATA_BUS_WIDTH BIT2 +#define SPI_IO_TRANSFER_SIZE_INCLUDES_OPCODE BIT3 +#define SPI_IO_TRANSFER_SIZE_INCLUDES_ADDRESS BIT4 + /// /// Support managed SPI data transactions between the SPI controller and a SPI /// chip. -- 2.37.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107419): https://edk2.groups.io/g/devel/message/107419 Mute This Topic: https://groups.io/mt/100478918/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-