From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Udit Kumar <udit.kumar@nxp.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
Leif Lindholm <leif.lindholm@linaro.org>
Subject: Re: [PATCH 2/2] ArmPlatformPkg: Include ArmPlatformClock Lib
Date: Tue, 5 Jun 2018 14:24:35 +0200 [thread overview]
Message-ID: <CAKv+Gu9ZjzZk9tP6nSGNUoG=SQwDynoTs6f3DXKXgDQ+bHVB3A@mail.gmail.com> (raw)
In-Reply-To: <1528155339-5050-2-git-send-email-udit.kumar@nxp.com>
On 5 June 2018 at 01:35, Udit Kumar <udit.kumar@nxp.com> wrote:
> This patch includes, ArmPlatformClock in PL011 lib.
>
> In case of NULL implemenation of Clock Lib, Pcd
> value will be used for PL011 frequency.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Udit Kumar <udit.kumar@nxp.com>
> ---
> ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c | 7 +++++--
> ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf | 1 +
> 2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c b/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c
> index 6aa8063..40fa50a 100644
> --- a/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c
> +++ b/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c
> @@ -17,11 +17,14 @@
>
> #include <Base.h>
>
> +#include <Library/ArmPlatformClockLib.h>
> #include <Library/IoLib.h>
> #include <Library/PcdLib.h>
> #include <Library/PL011UartLib.h>
> #include <Library/SerialPortLib.h>
>
> +
> +
Spurious whitespace changes
> /** Initialise the serial device hardware with default settings.
>
> @retval RETURN_SUCCESS The serial device was initialised.
> @@ -48,7 +51,7 @@ SerialPortInitialize (
>
> return PL011UartInitializePort (
> (UINTN)FixedPcdGet64 (PcdSerialRegisterBase),
> - FixedPcdGet32 (PL011UartClkInHz),
> + ArmPlatformGetPL011ClockFreq() ? ArmPlatformGetPL011ClockFreq() : FixedPcdGet32 (PL011UartClkInHz),
Get rid of this conditional please
> &BaudRate,
> &ReceiveFifoDepth,
> &Parity,
> @@ -156,7 +159,7 @@ SerialPortSetAttributes (
> {
> return PL011UartInitializePort (
> (UINTN)FixedPcdGet64 (PcdSerialRegisterBase),
> - FixedPcdGet32 (PL011UartClkInHz),
> + ArmPlatformGetPL011ClockFreq() ? ArmPlatformGetPL011ClockFreq() : FixedPcdGet32 (PL011UartClkInHz),
> BaudRate,
> ReceiveFifoDepth,
> Parity,
> diff --git a/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf b/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
> index 3683e06..9820811 100644
> --- a/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
> +++ b/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
> @@ -26,6 +26,7 @@
> PL011SerialPortLib.c
>
> [LibraryClasses]
> + ArmPlatformClockLib
> PL011UartLib
> PcdLib
>
> --
> 1.9.1
>
next prev parent reply other threads:[~2018-06-05 12:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-04 23:35 [PATCH 1/2] ArmPlatformPkg: PL011 Dynamic clock freq Support Udit Kumar
2018-06-04 23:35 ` [PATCH 2/2] ArmPlatformPkg: Include ArmPlatformClock Lib Udit Kumar
2018-06-05 12:24 ` Ard Biesheuvel [this message]
2018-06-05 17:13 ` Udit Kumar
2018-06-05 12:23 ` [PATCH 1/2] ArmPlatformPkg: PL011 Dynamic clock freq Support Ard Biesheuvel
2018-06-05 12:25 ` Ard Biesheuvel
2018-06-05 17:15 ` Udit Kumar
2018-06-05 17:11 ` Udit Kumar
2018-06-05 12:30 ` Alexei Fedorov
2018-06-05 17:16 ` Udit Kumar
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+Gu9ZjzZk9tP6nSGNUoG=SQwDynoTs6f3DXKXgDQ+bHVB3A@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