From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=michael.a.kubacki@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9DC43211EE6B1 for ; Mon, 1 Apr 2019 19:47:42 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Apr 2019 19:47:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,298,1549958400"; d="scan'208";a="219678575" Received: from makuback-desk1.amr.corp.intel.com ([10.7.159.144]) by orsmga001.jf.intel.com with ESMTP; 01 Apr 2019 19:47:41 -0700 From: Michael Kubacki To: edk2-devel@lists.01.org Cc: Ankit Sinha , Nate DeSimone , Chasel Chiu , Ray Ni , Liming Gao , Michael D Kinney Date: Mon, 1 Apr 2019 19:47:21 -0700 Message-Id: <20190402024724.12224-1-michael.a.kubacki@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Subject: [edk2-platforms/devel-MinPlatform][PATCH v4 0/3] Enable SPI flash debug messages X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Apr 2019 02:47:42 -0000 Adds support to the N1xxWU board series in the ClevoOpenBoardPkg to write debug messages to a dedicated area on SPI flash. This supports simple closed chassis debug. At this time, only a PEI library instance is added since it is anticipated an alternative mechanism will be available in DXE such as USB debug. Cc: Ankit Sinha Cc: Nate DeSimone Cc: Chasel Chiu Cc: Ray Ni Cc: Liming Gao Cc: Michael D Kinney Michael Kubacki (3): KabylakeSiliconPkg: Add SPI write support in PEI ClevoOpenBoardPkg/N1xxWU: Flash map update ClevoOpenBoardPkg/N1xxWU: Write PEI debug messages to SPI flash Platform/Intel/ClevoOpenBoardPkg/OpenBoardPkg.dec | 5 + .../ClevoOpenBoardPkg/N1xxWU/OpenBoardPkg.dsc | 22 +- Silicon/Intel/KabylakeSiliconPkg/SiPkgPeiLib.dsc | 3 +- .../N1xxWU/Include/Fdf/FlashMapInclude.fdf | 44 +-- .../ClevoOpenBoardPkg/N1xxWU/OpenBoardPkg.fdf | 4 + .../PeiSerialPortLibSpiFlash.inf | 56 ++++ .../Pch/Library/PeiSpiLib/PeiSpiLib.inf | 50 ++++ .../Pch/Include/Library/SpiLib.h | 32 ++ .../PeiSerialPortLibSpiFlash.c | 326 +++++++++++++++++++++ .../Pch/Library/PeiSpiLib/PeiSpiLib.c | 225 ++++++++++++++ .../LibraryPrivate/BasePchSpiCommonLib/SpiCommon.c | 5 +- .../Intel/ClevoOpenBoardPkg/N1xxWU/prebuild.bat | 4 +- 12 files changed, 744 insertions(+), 32 deletions(-) create mode 100644 Platform/Intel/ClevoOpenBoardPkg/Library/PeiSerialPortLibSpiFlash/PeiSerialPortLibSpiFlash.inf create mode 100644 Silicon/Intel/KabylakeSiliconPkg/Pch/Library/PeiSpiLib/PeiSpiLib.inf create mode 100644 Silicon/Intel/KabylakeSiliconPkg/Pch/Include/Library/SpiLib.h create mode 100644 Platform/Intel/ClevoOpenBoardPkg/Library/PeiSerialPortLibSpiFlash/PeiSerialPortLibSpiFlash.c create mode 100644 Silicon/Intel/KabylakeSiliconPkg/Pch/Library/PeiSpiLib/PeiSpiLib.c -- 2.16.2.windows.1