diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-05-18 21:04:30 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-05-18 21:04:30 +0000 |
commit | ebeffc42b4ed3b6e74b6cb6a17c47503d6a5d72a (patch) | |
tree | 2b017c702570ed6ffb68b59523e981c11a3f482d /ArmEbPkg/Library/SerialPortLib | |
parent | 31e4a57f6460265515233833bead6202e7304e07 (diff) | |
download | edk2-platforms-ebeffc42b4ed3b6e74b6cb6a17c47503d6a5d72a.tar.xz |
Added stub RTC lib, turned on option of building debug agent (GDB STUB) into SEC. Added the platform library template needed to break into GDB stub with ctrl-c. Cleaned up PCDs for selecting serial ports for Console or GDB usage. Filled in GDB Serial Port lib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10509 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmEbPkg/Library/SerialPortLib')
-rw-r--r-- | ArmEbPkg/Library/SerialPortLib/SerialPortLib.c | 13 | ||||
-rw-r--r-- | ArmEbPkg/Library/SerialPortLib/SerialPortLib.inf | 3 |
2 files changed, 7 insertions, 9 deletions
diff --git a/ArmEbPkg/Library/SerialPortLib/SerialPortLib.c b/ArmEbPkg/Library/SerialPortLib/SerialPortLib.c index 735c5ddab8..09a9333785 100644 --- a/ArmEbPkg/Library/SerialPortLib/SerialPortLib.c +++ b/ArmEbPkg/Library/SerialPortLib/SerialPortLib.c @@ -15,7 +15,6 @@ **/
#include <Base.h>
-#include <Library/DebugLib.h>
#include <Library/SerialPortLib.h>
#include <Library/PcdLib.h>
#include <Library/IoLib.h>
@@ -35,7 +34,7 @@ SerialPortInitialize ( VOID
)
{
- UINT32 Base = PcdGet32 (PcdConsoleUart);
+ UINT32 Base = PcdGet32 (PcdConsoleUartBase);
// initialize baud rate generator to 115200 based on EB clock REFCLK24MHZ
MmioWrite32 (Base + UARTIBRD, UART_115200_IDIV);
@@ -70,8 +69,8 @@ SerialPortWrite ( IN UINTN NumberOfBytes
)
{
- UINT32 FR = PcdGet32(PcdConsoleUart) + UARTFR;
- UINT32 DR = PcdGet32(PcdConsoleUart) + UARTDR;
+ UINT32 FR = PcdGet32 (PcdConsoleUartBase) + UARTFR;
+ UINT32 DR = PcdGet32 (PcdConsoleUartBase) + UARTDR;
UINTN Count;
for (Count = 0; Count < NumberOfBytes; Count++, Buffer++) {
@@ -100,8 +99,8 @@ SerialPortRead ( IN UINTN NumberOfBytes
)
{
- UINT32 FR = PcdGet32(PcdConsoleUart) + UARTFR;
- UINT32 DR = PcdGet32(PcdConsoleUart) + UARTDR;
+ UINT32 FR = PcdGet32 (PcdConsoleUartBase) + UARTFR;
+ UINT32 DR = PcdGet32 (PcdConsoleUartBase) + UARTDR;
UINTN Count;
for (Count = 0; Count < NumberOfBytes; Count++, Buffer++) {
@@ -127,7 +126,7 @@ SerialPortPoll ( VOID
)
{
- UINT32 FR = PcdGet32(PcdConsoleUart) + UARTFR;
+ UINT32 FR = PcdGet32 (PcdConsoleUartBase) + UARTFR;
if ((MmioRead32 (FR) & UART_RX_EMPTY_FLAG_MASK) == 0) {
return TRUE;
diff --git a/ArmEbPkg/Library/SerialPortLib/SerialPortLib.inf b/ArmEbPkg/Library/SerialPortLib/SerialPortLib.inf index 298e7e78c0..ee4eed90be 100644 --- a/ArmEbPkg/Library/SerialPortLib/SerialPortLib.inf +++ b/ArmEbPkg/Library/SerialPortLib/SerialPortLib.inf @@ -30,7 +30,6 @@ SerialPortLib.c
[LibraryClasses]
- DebugLib
IoLib
[Packages]
@@ -38,5 +37,5 @@ ArmEbPkg/ArmEbPkg.dec
[FixedPcd]
- gArmEbTokenSpaceGuid.PcdConsoleUart
+ gArmEbTokenSpaceGuid.PcdConsoleUartBase
|