From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.76]) by mx.groups.io with SMTP id smtpd.web12.15348.1594126123458243300 for ; Tue, 07 Jul 2020 05:48:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=7k1eLWcG; spf=pass (domain: arm.com, ip: 40.107.6.76, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5U3gX/vcO052zwcAtISM7goiVI3872AQj1/bVHfLT+U=; b=7k1eLWcG5iH5fTRm8PR4yJzizgMe4N/nYRoam144H1YMy/hPalhXykaAqQzo9+v/A390NfGw/aDmsu6ZU5sULzqOg3tMZcDqttg9jwzB12mQCCiYidxHzTWC8b8pdxCW0J7mDPMdJa6assdVttFSRB42WBRH4urgeNLOBO2mobA= Received: from AM6P193CA0039.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:8e::16) by HE1PR0801MB1804.eurprd08.prod.outlook.com (2603:10a6:3:89::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.27; Tue, 7 Jul 2020 12:48:40 +0000 Received: from VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8e:cafe::af) by AM6P193CA0039.outlook.office365.com (2603:10a6:209:8e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20 via Frontend Transport; Tue, 7 Jul 2020 12:48:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT032.mail.protection.outlook.com (10.152.18.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.24 via Frontend Transport; Tue, 7 Jul 2020 12:48:39 +0000 Received: ("Tessian outbound e44de778b77e:v62"); Tue, 07 Jul 2020 12:48:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8e6eb3a58892bd2f X-CR-MTA-TID: 64aa7808 Received: from a47009b28f6d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B7C06A81-08FC-4376-83ED-489E62D8E210.1; Tue, 07 Jul 2020 12:48:34 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a47009b28f6d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 07 Jul 2020 12:48:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N9WemzTqYqcfiDxUq/TolbeMhcmoWSFKGDAyq1QdKvpX+zHVc1ojiQtgA5F9/WTqc0JwkWxmFmbTZs6FglVkfel8zlUfYyMyMfuNB0QJ4plAs74v1wHuSqZ0KInzsqq5OqRmVjpvq34DD1LGeEcHpyrxUu6GRnNU+yfzkfaTk5ooC6XY7ftiifCs0mC3tRUY26X/t+GRgiDlbL+gMXm89PgXSlkZerqjXZqNggwgG6JJaS90YyEBettuimo0gBJ3doKeSUI5vJO0e3G4q8Mw6CfIVLjW9mHkB6QKZ7lVSK/AboRpsaGD/oZ/rwzjp1PjbN0QGdEbjuHbiEnKvxCRXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5U3gX/vcO052zwcAtISM7goiVI3872AQj1/bVHfLT+U=; b=LARHNF7QclXz+7/x3QiNntKnQDaWgHzfAW3uKAZGa3CZUL7Vgz1KLshzKecBz9YV85a9y/lDRd059GpzNHxol3ZmZaiNrY0NAEyMcKO1PRWVJTg6DxQkt22/JndLr4VoFfg6v17Jt8J32cu30QkWSlSBfgQE+/7NMHxKLWJDH16i7ioX5YEsd1YvB6I0609TBT8xcIi2zYdP9JTSb3c+gqQ5LguAUvapnjs+Z2lh8eei4t8pqk7OqVRuSPxeY1JAHKRyrCzeFeL+j0tDvBetVZa2qgmBQ10Xmb69lCRs+YZpXHRZjDbcWJWTP1IGgbW6X+IYiMD6BP0V76omwOE+HA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=bestguesspass action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5U3gX/vcO052zwcAtISM7goiVI3872AQj1/bVHfLT+U=; b=7k1eLWcG5iH5fTRm8PR4yJzizgMe4N/nYRoam144H1YMy/hPalhXykaAqQzo9+v/A390NfGw/aDmsu6ZU5sULzqOg3tMZcDqttg9jwzB12mQCCiYidxHzTWC8b8pdxCW0J7mDPMdJa6assdVttFSRB42WBRH4urgeNLOBO2mobA= Received: from DB8PR09CA0036.eurprd09.prod.outlook.com (2603:10a6:10:a0::49) by DB7PR08MB3129.eurprd08.prod.outlook.com (2603:10a6:5:1d::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.20; Tue, 7 Jul 2020 12:48:32 +0000 Received: from DB5EUR03FT024.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:a0:cafe::1a) by DB8PR09CA0036.outlook.office365.com (2603:10a6:10:a0::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.21 via Frontend Transport; Tue, 7 Jul 2020 12:48:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT024.mail.protection.outlook.com (10.152.20.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3153.24 via Frontend Transport; Tue, 7 Jul 2020 12:48:32 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Tue, 7 Jul 2020 12:48:20 +0000 Received: from E107187.Arm.com (10.57.21.15) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Tue, 7 Jul 2020 12:48:19 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [PATCH v4 08/15] ArmVirtPkg: GUID Hob for 16550 UART base address Date: Tue, 7 Jul 2020 13:48:02 +0100 Message-ID: <20200707124810.50668-9-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20200707124810.50668-1-sami.mujawar@arm.com> References: <20200707124810.50668-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFTY:;SFS:(4636009)(46966005)(81166007)(36756003)(1076003)(4326008)(966005)(70206006)(336012)(2906002)(6666004)(6916009)(356005)(26005)(7696005)(5660300002)(70586007)(186003)(82310400002)(83380400001)(8936002)(498600001)(44832011)(47076004)(19627235002)(54906003)(426003)(2616005)(86362001)(8676002);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 80f554d8-524b-45c5-b5f0-08d8227412dc X-MS-TrafficTypeDiagnostic: DB7PR08MB3129:|HE1PR0801MB1804: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:4941;OLM:4941; X-Forefront-PRVS: 0457F11EAF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: CB9B9wCA1wb6cFg9I0WLChV6QyTdUmuBMwdGpAleEBfClLGhd2LL77u5FBwblTqnefoK6jppune+BeC5Pi9zkWAUx6pI0hT/3USsT55+bb6UWzGKbbYc0Vd3sDnFxr0EqusgkVBUNPkTaqka7vRG+RH5yJNAtD3zJBSxsme0oDJS8hqkyOJDmW6rBk1eUgOzMJ4MUTfXOMEGE8jLyEf1dJPAyz5ZtOXbEPotHTxi9J/dhG7JWZ1tdlZ3yAyhB2V/+5sGFvinWciBnhdfcd1Dm1BEBaF0GkdkFzZICVzm9P5Pr7WkSZ3Pq+hHaLv7gAQAYg1FCwq4kwCSvvRbzPepYGlQ4qKFKcp81K7kJPV4hmBDC3fIxy83Bqo63ow9BMV1HU8Q7AX5hxrRFE3RARzVmc9ERrA4w31vEdO7w1w3DFdnCPVMIEhm/mlc9L47Al84a7lGYQ+t4OFAftm2VOyzJRKika6uu48LE87Z4eHhMN4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3129 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFTY:;SFS:(4636009)(39860400002)(376002)(346002)(396003)(136003)(46966005)(426003)(70586007)(4326008)(83380400001)(2906002)(82740400003)(36906005)(8936002)(2616005)(966005)(47076004)(1076003)(478600001)(82310400002)(7696005)(186003)(44832011)(6916009)(5660300002)(8676002)(6666004)(81166007)(316002)(54906003)(336012)(26005)(86362001)(70206006)(19627235002)(36756003);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 4f555fd4-3ce9-4c33-9f62-08d822740e3b X-Forefront-PRVS: 0457F11EAF X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0HYENE3MITUtSFuW+OXid5hALMNJU3d01nUSH+WIJ+mYYAyY8zL5uo3lnZyzYyvpkTj3OtUYPe9tmiJU84KTxv0BR/3qOBdsj1mMAMc1ecJOMj9P4aoEtXmoPKDuOb1fn6EgBUGnLUF8vV41oDGrEH5t2wIdUGKeJtoDZ7eRKP+IPG4YejFdpfDZdTCGhv2icqqf86za5Hg+soNpy6m8r7U6G9/DIIqQByAzRqF07TGDHPG/SBY1u/EfZaiSmZid8TCUTWLru7P86ruM5VRcKkndHp0byvk3FWpjIg0+xXRE0n5hrUCb4kAP9XCB6hgD+UwlHYUh5xu0fGqxl0cxeDUHIWuR10NecM47v/tFoPz5UV32RfIfDSsBt2M02s18ksp0euVUlB+PqLoS5J9lOY2W4SVrHmvx265pxrh3Em1V9ODO1WQjybytD+bNMpVE1GdOmeh9iP9mmOCXZXHSSlUjXoYveS337Fp7KUacfzU= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2020 12:48:39.9780 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 80f554d8-524b-45c5-b5f0-08d8227412dc X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1804 Content-Type: text/plain Introduce a new GUID Hob gEarly16550UartBaseAddressGuid to cache the base address of the 16550 UART, for when PCD access is not available. Signed-off-by: Sami Mujawar Reviewed-by: Ard Biesheuvel --- Notes: v4: - No code change, resending patch with v4 series. [Sami] Ref: https://edk2.groups.io/g/devel/message/61720 ArmVirtPkg/ArmVirtPkg.dec | 2 ++ ArmVirtPkg/Include/Guid/Early16550UartBaseAddress.h | 22 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/ArmVirtPkg/ArmVirtPkg.dec b/ArmVirtPkg/ArmVirtPkg.dec index 08ddd68a863eb82778fa7a92b20ac1bff271f5e5..bf82f7f1f3f2a0ce545d87fa93350f56de78328b 100644 --- a/ArmVirtPkg/ArmVirtPkg.dec +++ b/ArmVirtPkg/ArmVirtPkg.dec @@ -1,6 +1,7 @@ #/** @file # # Copyright (c) 2014, Linaro Limited. All rights reserved. +# Copyright (c) 2020, ARM Limited. All rights reserved. # # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -30,6 +31,7 @@ [LibraryClasses] [Guids.common] gArmVirtTokenSpaceGuid = { 0x0B6F5CA7, 0x4F53, 0x445A, { 0xB7, 0x6E, 0x2E, 0x36, 0x5B, 0x80, 0x63, 0x66 } } gEarlyPL011BaseAddressGuid = { 0xB199DEA9, 0xFD5C, 0x4A84, { 0x80, 0x82, 0x2F, 0x41, 0x70, 0x78, 0x03, 0x05 } } + gEarly16550UartBaseAddressGuid = { 0xea67ca3e, 0x1f54, 0x436b, { 0x97, 0x88, 0xd4, 0xeb, 0x29, 0xc3, 0x42, 0x67 } } gArmVirtVariableGuid = { 0x50bea1e5, 0xa2c5, 0x46e9, { 0x9b, 0x3a, 0x59, 0x59, 0x65, 0x16, 0xb0, 0x0a } } diff --git a/ArmVirtPkg/Include/Guid/Early16550UartBaseAddress.h b/ArmVirtPkg/Include/Guid/Early16550UartBaseAddress.h new file mode 100644 index 0000000000000000000000000000000000000000..6b76f37a27dac03d6749f31a03e8026023231056 --- /dev/null +++ b/ArmVirtPkg/Include/Guid/Early16550UartBaseAddress.h @@ -0,0 +1,22 @@ +/** @file + GUID for the HOB that caches the base address of the 16550 serial port, for + when PCD access is not available. + + Copyright (c) 2020, ARM Limited. All rights reserved. + + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef EARLY_16550_UART_BASE_ADDRESS_H__ +#define EARLY_16550_UART_BASE_ADDRESS_H__ + +#define EARLY_16550_UART_BASE_ADDRESS_GUID { \ + 0xea67ca3e, 0x1f54, 0x436b, { \ + 0x97, 0x88, 0xd4, 0xeb, 0x29, 0xc3, 0x42, 0x67 \ + } \ + } + +extern EFI_GUID gEarly16550UartBaseAddressGuid; + +#endif // EARLY_16550_UART_BASE_ADDRESS_H__ -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'