blob: cafc299096084c04dc9088b3fc355ef0d4d03e53 [file] [log] [blame]
Patrick Williams8e7b46e2023-05-01 14:19:06 -05001From 2ccb463274d0c04f1e3253194ea6eee80c31cb49 Mon Sep 17 00:00:00 2001
Patrick Williams8dd68482022-10-04 07:57:18 -05002From: Himanshu Sharma <Himanshu.Sharma@arm.com>
3Date: Mon, 30 May 2022 10:53:30 +0000
Patrick Williams8e7b46e2023-05-01 14:19:06 -05004Subject: [PATCH] Platform/ARM/N1Sdp: Modify the IRQ ID of Debug UART and
Patrick Williams8dd68482022-10-04 07:57:18 -05005 routing it to IOFPGA UART1
6
7In DBG2 table, IRQ ID was set as 0 for the UART. This overwrote the
8IPI0 trigger method to "level", which prevented SGI0 to be enabled
9again after a CPU offline/online cycle.
10
11This patch fixes the above issue by assigning a reserved IRQ ID
12for the Debug UART, other than 0 and also routing it to use IOFPGA
13UART1 by unsharing it from currently using serial terminal.
14
15Upstream-Status: Pending
16Signed-off-by: Adam Johnston <adam.johnston@arm.com>
17Signed-off-by: Xueliang Zhong <xueliang.zhong@arm.com>
18Signed-off-by: Himanshu Sharma <Himanshu.Sharma@arm.com>
Patrick Williams8e7b46e2023-05-01 14:19:06 -050019Change-Id: Ib35fecc57f1d8c496135c18dbebd0be0a4b76041
Patrick Williams8dd68482022-10-04 07:57:18 -050020---
21 .../ConfigurationManagerDxe/ConfigurationManager.c | 2 +-
22 Platform/ARM/N1Sdp/N1SdpPlatform.dsc | 8 ++++----
23 2 files changed, 5 insertions(+), 5 deletions(-)
24
25diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c
Patrick Williams8e7b46e2023-05-01 14:19:06 -050026index b11c0425..44046a00 100644
Patrick Williams8dd68482022-10-04 07:57:18 -050027--- 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
38diff --git a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc b/Platform/ARM/N1Sdp/N1SdpPlatform.dsc
Patrick Williams8e7b46e2023-05-01 14:19:06 -050039index d04b22d3..676ab677 100644
Patrick Williams8dd68482022-10-04 07:57:18 -050040--- 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 Williams8e7b46e2023-05-01 14:19:06 -050047+# Copyright (c) 2018 - 2023, ARM Limited. All rights reserved.<BR>
Patrick Williams8dd68482022-10-04 07:57:18 -050048 #
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