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.151; helo=mga17.intel.com; envelope-from=michael.a.kubacki@intel.com; receiver=edk2-devel@lists.01.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (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 6BABE211EC685 for ; Sun, 31 Mar 2019 16:28:12 -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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Mar 2019 16:28:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,294,1549958400"; d="scan'208";a="219290824" Received: from makuback-desk1.amr.corp.intel.com ([10.7.159.144]) by orsmga001.jf.intel.com with ESMTP; 31 Mar 2019 16:28:12 -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: Sun, 31 Mar 2019 16:27:37 -0700 Message-Id: <20190331232740.16872-1-michael.a.kubacki@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Subject: [edk2-platforms][PATCH v1 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: Sun, 31 Mar 2019 23:28:13 -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 | 45 +++ .../BasePchSpiCommonLib/BasePchSpiCommonLib.inf | 6 +- .../Pch/Include/Library/SpiLib.h | 32 ++ .../PeiSerialPortLibSpiFlash.c | 326 +++++++++++++++++++++ .../Pch/Library/PeiSpiLib/PeiSpiLib.c | 211 +++++++++++++ .../LibraryPrivate/BasePchSpiCommonLib/SpiCommon.c | 10 +- .../Intel/ClevoOpenBoardPkg/N1xxWU/prebuild.bat | 4 +- 13 files changed, 735 insertions(+), 33 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