Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 1 | From 2ccb463274d0c04f1e3253194ea6eee80c31cb49 Mon Sep 17 00:00:00 2001 |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 2 | From: Himanshu Sharma <Himanshu.Sharma@arm.com> |
| 3 | Date: Mon, 30 May 2022 10:53:30 +0000 |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 4 | Subject: [PATCH] Platform/ARM/N1Sdp: Modify the IRQ ID of Debug UART and |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 5 | routing it to IOFPGA UART1 |
| 6 | |
| 7 | In DBG2 table, IRQ ID was set as 0 for the UART. This overwrote the |
| 8 | IPI0 trigger method to "level", which prevented SGI0 to be enabled |
| 9 | again after a CPU offline/online cycle. |
| 10 | |
| 11 | This patch fixes the above issue by assigning a reserved IRQ ID |
| 12 | for the Debug UART, other than 0 and also routing it to use IOFPGA |
| 13 | UART1 by unsharing it from currently using serial terminal. |
| 14 | |
| 15 | Upstream-Status: Pending |
| 16 | Signed-off-by: Adam Johnston <adam.johnston@arm.com> |
| 17 | Signed-off-by: Xueliang Zhong <xueliang.zhong@arm.com> |
| 18 | Signed-off-by: Himanshu Sharma <Himanshu.Sharma@arm.com> |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 19 | Change-Id: Ib35fecc57f1d8c496135c18dbebd0be0a4b76041 |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 20 | --- |
| 21 | .../ConfigurationManagerDxe/ConfigurationManager.c | 2 +- |
| 22 | Platform/ARM/N1Sdp/N1SdpPlatform.dsc | 8 ++++---- |
| 23 | 2 files changed, 5 insertions(+), 5 deletions(-) |
| 24 | |
| 25 | diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 26 | index b11c0425..44046a00 100644 |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 27 | --- a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c |
| 28 | +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c |
| 29 | @@ -320,7 +320,7 @@ EDKII_PLATFORM_REPOSITORY_INFO N1sdpRepositoryInfo = { |
| 30 | // Debug Serial Port
|
| 31 | {
|
| 32 | FixedPcdGet64 (PcdSerialDbgRegisterBase), // BaseAddress
|
| 33 | - 0, // Interrupt -unused
|
| 34 | + 250, // Interrupt (reserved)
|
| 35 | FixedPcdGet64 (PcdSerialDbgUartBaudRate), // BaudRate
|
| 36 | FixedPcdGet32 (PcdSerialDbgUartClkInHz), // Clock
|
| 37 | EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_ARM_PL011_UART // Port subtype
|
| 38 | diff --git a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc b/Platform/ARM/N1Sdp/N1SdpPlatform.dsc |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 39 | index d04b22d3..676ab677 100644 |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 40 | --- a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc |
| 41 | +++ b/Platform/ARM/N1Sdp/N1SdpPlatform.dsc |
| 42 | @@ -4,7 +4,7 @@ |
| 43 | # This provides platform specific component descriptions and libraries that
|
| 44 | # conform to EFI/Framework standards.
|
| 45 | #
|
| 46 | -# Copyright (c) 2018 - 2021, ARM Limited. All rights reserved.<BR>
|
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 47 | +# Copyright (c) 2018 - 2023, ARM Limited. All rights reserved.<BR>
|
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 48 | #
|
| 49 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
| 50 | #
|
| 51 | @@ -136,9 +136,9 @@ |
| 52 | gArmPlatformTokenSpaceGuid.PL011UartInterrupt|95
|
| 53 |
|
| 54 | # PL011 Serial Debug UART (DBG2)
|
| 55 | - gArmPlatformTokenSpaceGuid.PcdSerialDbgRegisterBase|gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase
|
| 56 | - gArmPlatformTokenSpaceGuid.PcdSerialDbgUartBaudRate|gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate
|
| 57 | - gArmPlatformTokenSpaceGuid.PcdSerialDbgUartClkInHz|50000000
|
| 58 | + gArmPlatformTokenSpaceGuid.PcdSerialDbgRegisterBase|0x1C0A0000
|
| 59 | + gArmPlatformTokenSpaceGuid.PcdSerialDbgUartBaudRate|115200
|
| 60 | + gArmPlatformTokenSpaceGuid.PcdSerialDbgUartClkInHz|24000000
|
| 61 |
|
| 62 | # SBSA Watchdog
|
| 63 | gArmTokenSpaceGuid.PcdGenericWatchdogEl2IntrNum|93
|