<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2-platforms.git/Platform/Hisilicon, branch CodeCleanup</title>
<subtitle>EDK II sample platform branches and tags (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=CodeCleanup</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=CodeCleanup'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/'/>
<updated>2024-06-21T11:31:20+00:00</updated>
<entry>
<title>Platform,Silicon: drop redundant uses of PcdArmArchTimerFreqInHz</title>
<updated>2024-06-21T11:31:20+00:00</updated>
<author>
<name>Leif Lindholm</name>
<email>quic_llindhol@quicinc.com</email>
</author>
<published>2024-06-20T10:11:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=b29e69a688d6154a84df725cee38273553062160'/>
<id>urn:sha1:b29e69a688d6154a84df725cee38273553062160</id>
<content type='text'>
PcdArmArchTimerFreqInHz is about to be removed, as it is now obsolete.
Some platforms already explicitly set it to 0, which is the default.
And some modules reference it in their .inf without actually ever
using it.

Drop these redundant uses first.

Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Chuong Tran &lt;chuong@os.amperecomputing.com&gt;
Cc: Graeme Gregory &lt;graeme@xora.org.uk&gt;
Cc: Marcin Juszkiewicz &lt;marcin.juszkiewicz@linaro.org&gt;
Cc: Meenakshi Aggarwal &lt;meenakshi.aggarwal@nxp.com&gt;
Cc: Nhi Pham &lt;nhi@os.amperecomputing.com&gt;
Cc: Rebecca Cran &lt;rebecca@os.amperecomputing.com&gt;
Cc: Sami Mujawar &lt;sami.mujawar@arm.com&gt;
Cc: Thomas Abraham &lt;thomas.abraham@arm.com&gt;
Cc: Wenyi Xie &lt;xiewenyi2@huawei.com&gt;
Signed-off-by: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
Reviewed-by: Nhi Pham &lt;nhi@os.amperecomputing.com&gt;
</content>
</entry>
<entry>
<title>Hisilicon/DS3231RealTimeClockLib: remove superfluous instance init steps</title>
<updated>2023-10-24T13:17:57+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2023-10-20T12:18:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=cce27fdc45d5a69693749209413a20815960b94b'/>
<id>urn:sha1:cce27fdc45d5a69693749209413a20815960b94b</id>
<content type='text'>
RealTimeClockLib instances are consumed by edk2's
EmbeddedPkg/RealTimeClockRuntimeDxe driver. In its entry point function
InitializeRealTimeClock(), the driver:

(1) calls LibRtcInitialize(),

(2) sets the GetTime(), SetTime(), GetWakeupTime() and SetWakeupTime()
    runtime services to its own similarly-named functions -- where those
    functions wrap the corresponding RealTimeClockLib APIs,

(3) installs EFI_REAL_TIME_CLOCK_ARCH_PROTOCOL with a NULL protocol
    interface.

Steps (2) and (3) conform to PI v1.8 sections II-9.7.2.4 through
II-9.7.2.7.

However, this means that LibRtcInitialize() (of any RealTimeClockLib
instance) should not itself (a) set the GetTime(), SetTime(),
GetWakeupTime() and SetWakeupTime() runtime services, nor (b) install
EFI_REAL_TIME_CLOCK_ARCH_PROTOCOL. The runtime service pointers will be
overwritten in step (2) anyway, and step (3) will uselessly install a
second (NULL-interface) EFI_REAL_TIME_CLOCK_ARCH_PROTOCOL instance in the
protocol database. (The protocol only serves to notify the DXE Foundation
about said runtime services being available.)

Clean up Hisilicon/DS3231RealTimeClockLib accordingly.

(Note that the lib instance INF file already does not list
UefiBootServicesTableLib, UefiRuntimeServicesTableLib, and
gEfiRealTimeClockArchProtocolGuid.)

Build-tested only (with the D03 and D05 platforms).

Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Wenyi Xie &lt;xiewenyi2@huawei.com&gt;
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4565
Signed-off-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Message-Id: &lt;20231020121903.44986-2-lersek@redhat.com&gt;
Acked-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>Hisilicon/DS3231RealTimeClockLib: drop LibRtcVirtualNotifyEvent</title>
<updated>2023-10-13T10:11:29+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2023-10-12T09:09:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=062007528c9261d37926e7e0bbcbe301a6744f14'/>
<id>urn:sha1:062007528c9261d37926e7e0bbcbe301a6744f14</id>
<content type='text'>
The RealTimeClockLib class header in edk2 mistakenly declares a function
called LibRtcVirtualNotifyEvent(). No component ever calls this function
crossing module boundaries; all RealTimeClockLib instances in edk2 and
edk2-platforms are supposed to register (and do register) their
SetVirtualAddressMap() notification functions.

In particular, DS3231RealTimeClockLib *itself* doesn't even use
LibRtcVirtualNotifyEvent() -- the function is defined with an empty body,
clearly in an understandable, but misguided, attempt, to conform to the
(bogus) library interface. Remove the function.

Build-tested only (with the Hisilicon platforms).

Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Wenyi Xie &lt;xiewenyi2@huawei.com&gt;
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4564
Signed-off-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>Hisilicon: rename OemMiscLib class to HisiOemMiscLib</title>
<updated>2023-10-13T10:11:01+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2023-10-12T09:09:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=a77cf41e9ae1ff6bdd1467d745f71f786f04db45'/>
<id>urn:sha1:a77cf41e9ae1ff6bdd1467d745f71f786f04db45</id>
<content type='text'>
Edk2 commit [1] introduced the &lt;OemMiscLib.h&gt; library class header to
ArmPkg; commit [2] introduced the first OemMiscLib instance to ArmPkg; and
commit [3] introduced (retroactively) the library class itself to ArmPkg.

Alas, when all these edk2 commits were made, edk2-platforms already had a
(Hisilicon-specific) library class called OemMiscLib -- and many of the
Hisilicon modules would use both "HisiPkg.dec" and "ArmPkg.dec". Therefore
the edk2 OemMiscLib brought about a library class conflict, breaking both
edk2-platforms and edk2-non-osi content.

Rename the original OemMiscLib class to HisiOemMiscLib, and update all
references.

This patch is necessary for building the D03, D05, D06, HiKey, and
HiKey960 platforms.

[1] 2c7c64fc04a0 ("ArmPkg: Add Library/OemMiscLib.h", 2021-02-08)

[2] 0e51d7e445e0 ("ArmPkg: Add Universal/Smbios/OemMiscLibNull",
    2021-02-08)

[3] d03f71dd8be6 ("ArmPkg: Add missing library headers to ArmPkg.dec",
    2021-04-28)

Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Wenyi Xie &lt;xiewenyi2@huawei.com&gt;
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4564
Signed-off-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>Hisilicon: enable NOOPT builds</title>
<updated>2023-10-13T10:10:16+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2023-10-12T09:09:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=d6d1ec0f91d1e98c3dabb28a2053583a8cae6df3'/>
<id>urn:sha1:d6d1ec0f91d1e98c3dabb28a2053583a8cae6df3</id>
<content type='text'>
There's no reason for not supporting NOOPT in the Hisilicon platform DSCs,
and there is a reason for supporting them: build-only testing. Add NOOPT
wherever it's missing, and stick to a consistent order wherever NOOPT
already exists.

Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Wenyi Xie &lt;xiewenyi2@huawei.com&gt;
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4564
Signed-off-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>Platform/Hisilicon: Use PcdPciIoTranslation PCD from MdePkg</title>
<updated>2021-10-14T04:10:08+00:00</updated>
<author>
<name>Abner Chang</name>
<email>abner.chang@hpe.com</email>
</author>
<published>2021-10-03T14:10:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=63f876ac4d7a7911dda7bfc422a603ccb0e1c169'/>
<id>urn:sha1:63f876ac4d7a7911dda7bfc422a603ccb0e1c169</id>
<content type='text'>
Compliant with BZ: #3665
https://bugzilla.tianocore.org/show_bug.cgi?id=3665

PcdPciIoTranslation PCD is relocated to MdePkg that leveraged by
both ARM and RISC-V arch. This patch uses the one from MdePkg
instead the one under ArmVirtPkg.

Signed-off-by: Abner Chang &lt;abner.chang@hpe.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Wenyi Xie &lt;xiewenyi2@huawei.com&gt;
Cc: Daniel Schaefer &lt;daniel.schaefer@hpe.com&gt;
Acked-by: Leif Lindholm &lt;leif@nuviainc.com&gt;
</content>
</entry>
<entry>
<title>Platform/Hisilicon: Consume MdeLibs.dsc.inc for RegisterFilterLib</title>
<updated>2021-03-31T06:20:15+00:00</updated>
<author>
<name>Dandan Bi</name>
<email>dandan.bi@intel.com</email>
</author>
<published>2021-03-28T08:52:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=7b605cb31e7b9018381e4546b51715f86453ada8'/>
<id>urn:sha1:7b605cb31e7b9018381e4546b51715f86453ada8</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3246

MdeLibs.dsc.inc was added for some basic/default library
instances provided by MdePkg and RegisterFilterLibNull Library
was also added into it as the first version of MdeLibs.dsc.inc.

So update platform dsc to consume MdeLibs.dsc.inc for
RegisterFilterLibNull which will be consumed by IoLib and BaseLib.

Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Wenyi Xie &lt;xiewenyi2@huawei.com&gt;
Signed-off-by: Dandan Bi &lt;dandan.bi@intel.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>ARM Silicon and Platforms: add OrderedCollectionLib class resolution</title>
<updated>2021-01-18T08:12:06+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2021-01-13T08:28:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=d12d9c963ba3a02252afa9e113c4a3244192ca4a'/>
<id>urn:sha1:d12d9c963ba3a02252afa9e113c4a3244192ca4a</id>
<content type='text'>
The edk2 patch

  ShellPkg/ShellCommandLib: add ShellSortFileList

for BZ#3151 will make the

  ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf

instance dependent on the OrderedCollectionLib class. Because the shell
binaries in the ARM silicon and platform DSCs consume the above
UefiShellCommandLib instance, resolve the OrderedCollectionLib class in
them.

Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Marcin Wojtas &lt;mw@semihalf.com&gt;
Cc: Meenakshi Aggarwal &lt;meenakshi.aggarwal@nxp.com&gt;
Cc: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Cc: Thomas Abraham &lt;thomas.abraham@arm.com&gt;
Cc: Wenyi Xie &lt;xiewenyi2@huawei.com&gt;
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3151
Signed-off-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Message-Id: &lt;20210113082843.9095-3-lersek@redhat.com&gt;
Acked-by: Ard Biesheuvel &lt;ard.biesheuvel@arm.com&gt;
Acked-by: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Acked-by: Leif Lindholm &lt;leif@nuviainc.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Marcin Wojtas &lt;mw@semihalf.com&gt;
</content>
</entry>
<entry>
<title>Platform/HiSilicon: Switch HiKey USB NIC driver to Ax88772c</title>
<updated>2020-07-08T14:54:28+00:00</updated>
<author>
<name>Samer El-Haj-Mahmoud</name>
<email>Samer.El-Haj-Mahmoud@arm.com</email>
</author>
<published>2020-06-08T13:38:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=f4b68474ec142a2536460fb2ea275795020d9f5c'/>
<id>urn:sha1:f4b68474ec142a2536460fb2ea275795020d9f5c</id>
<content type='text'>
Switch the ASIX USB NIC driver used in HiKey to the new Ax88772c.

Signed-off-by: Samer El-Haj-Mahmoud &lt;samer.el-haj-mahmoud@arm.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ard.biesheuvel@arm.com&gt;
</content>
</entry>
<entry>
<title>Hisilicon/Library: Move two functions to RtcHelperLib</title>
<updated>2020-05-20T11:29:51+00:00</updated>
<author>
<name>Ming Huang</name>
<email>huangming23@huawei.com</email>
</author>
<published>2020-05-19T14:09:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=d727a45140852dd878239866879c069540079fa7'/>
<id>urn:sha1:d727a45140852dd878239866879c069540079fa7</id>
<content type='text'>
The functions of acquiring ownership of RTC will be used for other
RTC library, so move them to RtcHelperLib. Rename them by add leading
Oem for uniform.

Signed-off-by: Ming Huang &lt;huangming23@huawei.com&gt;
Reviewed-by: Leif Lindholm &lt;leif@nuviainc.com&gt;
</content>
</entry>
</feed>
