From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web08.1487.1632346495278104691 for ; Wed, 22 Sep 2021 14:34:56 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: isaac.w.oram@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="223739555" X-IronPort-AV: E=Sophos;i="5.85,315,1624345200"; d="scan'208";a="223739555" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2021 14:34:54 -0700 X-IronPort-AV: E=Sophos;i="5.85,315,1624345200"; d="scan'208";a="484736112" Received: from iworam-desk.amr.corp.intel.com ([10.7.150.79]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2021 14:34:54 -0700 From: "Oram, Isaac W" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone Subject: [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/PlatformHooksLib: Fix eSPI serial debug Date: Wed, 22 Sep 2021 14:34:49 -0700 Message-Id: <16dbdfd1700b810a61951c1e6cd6227d1d3c697e.1632346388.git.isaac.w.oram@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix issue with missing debug messages on ESPI_ENABLE configuration. Cc: Chasel Chiu Cc: Nate DeSimone Signed-off-by: Isaac Oram --- Platform/Intel/WhitleyOpenBoardPkg/Library/PlatformHooksLib/PlatformHooks.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Platform/Intel/WhitleyOpenBoardPkg/Library/PlatformHooksLib/PlatformHooks.c b/Platform/Intel/WhitleyOpenBoardPkg/Library/PlatformHooksLib/PlatformHooks.c index fa695358bf..8a93f41678 100644 --- a/Platform/Intel/WhitleyOpenBoardPkg/Library/PlatformHooksLib/PlatformHooks.c +++ b/Platform/Intel/WhitleyOpenBoardPkg/Library/PlatformHooksLib/PlatformHooks.c @@ -116,6 +116,13 @@ IsAspeedPresent ( IoWrite8 (ASPEED2500_SIO_INDEX_PORT, REG_LOGICAL_DEVICE); IoWrite8 (ASPEED2500_SIO_DATA_PORT, ASPEED2500_SIO_UART1); if (IoRead8 (ASPEED2500_SIO_DATA_PORT) == ASPEED2500_SIO_UART1) { + // + // In ESPI mode, assume this SIO logic device always present. + // +#ifdef ESPI_ENABLE + DeviceID = 0; + PresenceStatus = TRUE; +#else // //right now, maybe it is ASPEED. to detect the device ID. // @@ -143,6 +150,7 @@ IsAspeedPresent ( if ((DeviceID & 0xff0000ff) == 0x04000003) { PresenceStatus = TRUE; } +#endif } IoWrite8 (ASPEED2500_SIO_INDEX_PORT, ASPEED2500_SIO_LOCK); return PresenceStatus; -- 2.27.0.windows.1