LcdHwLib|Include/Library/LcdHwLib.h\r
LcdPlatformLib|Include/Library/LcdPlatformLib.h\r
NorFlashPlatformLib|Include/Library/NorFlashPlatformLib.h\r
+ PL011UartClockLib|Include/Library/PL011UartClockLib.h\r
PL011UartLib|Include/Library/PL011UartLib.h\r
\r
[Guids.common]\r
ArmPlatformPkg/Library/LcdPlatformNullLib/LcdPlatformNullLib.inf\r
ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLib.inf\r
ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf\r
+ ArmPlatformPkg/Library/PL011UartClockLib/PL011UartClockLib.inf\r
ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf\r
ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf\r
ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf\r
--- /dev/null
+/** @file\r
+*\r
+* Copyright 2018 NXP\r
+*\r
+* This program and the accompanying materials\r
+* are licensed and made available under the terms and conditions of the BSD License\r
+* which accompanies this distribution. The full text of the license may be found at\r
+* http://opensource.org/licenses/bsd-license.php\r
+*\r
+* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+*\r
+**/\r
+\r
+#ifndef __PL011UARTCLOCKLIB_H__\r
+#define __PL011UARTCLOCKLIB_H__\r
+\r
+/**\r
+\r
+ Return baud clock frequency of PL011.\r
+\r
+ @return return frequency of PL011 in Hz\r
+\r
+**/\r
+UINT32\r
+EFIAPI\r
+PL011UartClockGetFreq (\r
+ VOID\r
+ );\r
+\r
+#endif\r
--- /dev/null
+/** @file\r
+*\r
+* Copyright 2018 NXP\r
+*\r
+* This program and the accompanying materials\r
+* are licensed and made available under the terms and conditions of the BSD License\r
+* which accompanies this distribution. The full text of the license may be found at\r
+* http://opensource.org/licenses/bsd-license.php\r
+*\r
+* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+*\r
+**/\r
+\r
+#include <Base.h>\r
+\r
+/**\r
+ Return clock in for PL011 Uart IP\r
+\r
+ @return Pcd PL011UartClkInHz\r
+**/\r
+UINT32\r
+EFIAPI\r
+PL011UartClockGetFreq (\r
+ VOID\r
+ )\r
+{\r
+ return FixedPcdGet32 (PL011UartClkInHz);\r
+}\r
--- /dev/null
+#/* @file\r
+# Copyright 2018 NXP\r
+#\r
+# This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#*/\r
+\r
+[Defines]\r
+ INF_VERSION = 0x0001001A\r
+ BASE_NAME = BasePL011UartClockLib\r
+ FILE_GUID = af8fef24-afbb-472a-b8b7-13101a79703c\r
+ MODULE_TYPE = BASE\r
+ VERSION_STRING = 1.0\r
+ LIBRARY_CLASS = PL011UartClockLib\r
+\r
+[Packages]\r
+ ArmPlatformPkg/ArmPlatformPkg.dec\r
+ MdePkg/MdePkg.dec\r
+\r
+[Sources.common]\r
+ PL011UartClockLib.c\r
+\r
+[FixedPcd]\r
+ gArmPlatformTokenSpaceGuid.PL011UartClkInHz\r