From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=michael.a.kubacki@intel.com; receiver=edk2-devel@lists.01.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 B0727211E9584 for ; Mon, 1 Apr 2019 18:23:41 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Apr 2019 18:23:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,298,1549958400"; d="scan'208";a="132134370" Received: from makuback-desk1.amr.corp.intel.com ([10.7.159.144]) by orsmga006.jf.intel.com with ESMTP; 01 Apr 2019 18:23:40 -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 18:23:20 -0700 Message-Id: <20190402012323.25504-1-michael.a.kubacki@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Subject: [edk2-platforms/devel-MinPlatform][PATCH v3 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 01:23:41 -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 | 221 ++++++++++++++ .../LibraryPrivate/BasePchSpiCommonLib/SpiCommon.c | 5 +- .../Intel/ClevoOpenBoardPkg/N1xxWU/prebuild.bat | 4 +- 12 files changed, 740 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