diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-03-18 21:39:59 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-03-25 10:52:46 +0100 |
commit | 455b7b66f784fb7f768ba1d85f04fe4cae50dcf1 (patch) | |
tree | 521f21ea757467432d6f33ebb1fcd6632c282b7a /QuarkSocPkg/QuarkNorthCluster/Spi | |
parent | 0e283ad75f7aa666f976951fefb3456b9a6417de (diff) | |
download | edk2-platforms-455b7b66f784fb7f768ba1d85f04fe4cae50dcf1.tar.xz |
QuarkSocPkg: Spi/Common: remove set but unused variables
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Kelly Steele <kelly.steele@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Diffstat (limited to 'QuarkSocPkg/QuarkNorthCluster/Spi')
-rw-r--r-- | QuarkSocPkg/QuarkNorthCluster/Spi/Common/SpiCommon.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/QuarkSocPkg/QuarkNorthCluster/Spi/Common/SpiCommon.c b/QuarkSocPkg/QuarkNorthCluster/Spi/Common/SpiCommon.c index e3d9b8f7de..3a14c9837d 100644 --- a/QuarkSocPkg/QuarkNorthCluster/Spi/Common/SpiCommon.c +++ b/QuarkSocPkg/QuarkNorthCluster/Spi/Common/SpiCommon.c @@ -165,14 +165,12 @@ Returns: EFI_STATUS Status;
SPI_INSTANCE *SpiInstance;
UINT8 SpiStatus;
- UINTN PchRootComplexBar;
if (UnlockCmdOpcodeIndex >= SPI_NUM_OPCODE) {
return EFI_UNSUPPORTED;
}
SpiInstance = SPI_INSTANCE_FROM_SPIPROTOCOL (This);
- PchRootComplexBar = SpiInstance->PchRootComplexBar;
//
// Issue unlock command to disable block protection, this only needs to be done once per SPI power on
@@ -230,11 +228,8 @@ Returns: UINT8 Index;
UINT16 OpcodeType;
SPI_INSTANCE *SpiInstance;
- BOOLEAN MultiPartitionIsSupported;
UINTN PchRootComplexBar;
- UINT8 SFDPCmdOpcodeIndex;
UINT8 UnlockCmdOpcodeIndex;
- UINT8 ReadDataCmdOpcodeIndex;
UINT8 FlashPartId[3];
SpiInstance = SPI_INSTANCE_FROM_SPIPROTOCOL (This);
@@ -302,8 +297,6 @@ Returns: //
// Setup the Opcode Menu registers.
//
- ReadDataCmdOpcodeIndex = SPI_NUM_OPCODE;
- SFDPCmdOpcodeIndex = SPI_NUM_OPCODE;
UnlockCmdOpcodeIndex = SPI_NUM_OPCODE;
for (Index = 0; Index < SPI_NUM_OPCODE; Index++) {
MmioWrite8 (
@@ -334,23 +327,11 @@ Returns: }
}
- if (SpiInstance->SpiInitTable.OpcodeMenu[Index].Operation == EnumSpiOperationReadData ||
- SpiInstance->SpiInitTable.OpcodeMenu[Index].Operation == EnumSpiOperationFastRead ||
- SpiInstance->SpiInitTable.OpcodeMenu[Index].Operation == EnumSpiOperationDualOutputFastRead) {
- ReadDataCmdOpcodeIndex = Index;
- }
-
- if (SpiInstance->SpiInitTable.OpcodeMenu[Index].Operation == EnumSpiOperationDiscoveryParameters) {
- SFDPCmdOpcodeIndex = Index;
- }
-
if (SpiInstance->SpiInitTable.OpcodeMenu[Index].Operation == EnumSpiOperationWriteStatus) {
UnlockCmdOpcodeIndex = Index;
}
}
- MultiPartitionIsSupported = FALSE;
-
Status = UnlockFlashComponents (
This,
UnlockCmdOpcodeIndex
@@ -630,10 +611,8 @@ Returns: --*/
{
SPI_INSTANCE *SpiInstance;
- UINTN PchRootComplexBar;
SpiInstance = SPI_INSTANCE_FROM_SPIPROTOCOL (This);
- PchRootComplexBar = SpiInstance->PchRootComplexBar;
if (SpiRegionType == EnumSpiRegionAll) {
//
@@ -714,13 +693,11 @@ Returns: UINTN LimitAddress;
UINT32 SpiDataCount;
UINT8 OpCode;
- SPI_OPERATION Operation;
UINTN PchRootComplexBar;
SpiInstance = SPI_INSTANCE_FROM_SPIPROTOCOL (This);
PchRootComplexBar = SpiInstance->PchRootComplexBar;
SpiBiosSize = SpiInstance->SpiInitTable.BiosSize;
- Operation = SpiInstance->SpiInitTable.OpcodeMenu[OpcodeIndex].Operation;
OpCode = MmioRead8 (PchRootComplexBar + R_QNC_RCRB_SPIOPMENU + OpcodeIndex);
//
|