[sw/silicon_creator] Remove unused error codes
Signed-off-by: Alphan Ulusoy <alphan@google.com>
diff --git a/sw/device/silicon_creator/lib/error.h b/sw/device/silicon_creator/lib/error.h
index b4766c5..ba6045e 100644
--- a/sw/device/silicon_creator/lib/error.h
+++ b/sw/device/silicon_creator/lib/error.h
@@ -34,16 +34,13 @@
kModuleRom = MODULE_CODE('M', 'R'),
kModuleInterrupt = MODULE_CODE('I', 'R'),
kModuleEpmp = MODULE_CODE('E', 'P'),
- kModuleOtp = MODULE_CODE('O', 'P'),
kModuleOtbn = MODULE_CODE('B', 'N'),
kModuleFlashCtrl = MODULE_CODE('F', 'C'),
- kModuleSecMmio = MODULE_CODE('I', 'O'),
kModuleBootPolicy = MODULE_CODE('B', 'P'),
kModuleRetSram = MODULE_CODE('R', 'S'),
kModuleBootstrap = MODULE_CODE('B', 'S'),
kModuleLog = MODULE_CODE('L', 'G'),
kModuleBootData = MODULE_CODE('B', 'D'),
- kModuleShutdown = MODULE_CODE('S', 'D'),
kModuleSpiDevice = MODULE_CODE('S', 'P'),
kModuleAst = MODULE_CODE('A', 'S'),
// clang-format on
@@ -78,8 +75,7 @@
X(kErrorUartBadBaudRate, ERROR_(2, kModuleUart, kInvalidArgument)), \
X(kErrorSigverifyBadEncodedMessage, ERROR_(1, kModuleSigverify, kInvalidArgument)), \
X(kErrorSigverifyBadKey, ERROR_(2, kModuleSigverify, kInvalidArgument)), \
- X(kErrorSigverifyBadOtpValue, ERROR_(3, kModuleSigverify, kInternal)), \
- X(kErrorSigverifyBadSignature, ERROR_(4, kModuleSigverify, kInvalidArgument)), \
+ X(kErrorSigverifyBadSignature, ERROR_(3, kModuleSigverify, kInvalidArgument)), \
X(kErrorKeymgrInternal, ERROR_(1, kModuleKeymgr, kInternal)), \
X(kErrorManifestBadEntryPoint, ERROR_(1, kModuleManifest, kInternal)), \
X(kErrorManifestBadCodeRegion, ERROR_(2, kModuleManifest, kInternal)), \
@@ -92,14 +88,12 @@
/* The high-byte of kErrorInterrupt is modified with the interrupt cause */ \
X(kErrorInterrupt, ERROR_(0, kModuleInterrupt, kUnknown)), \
X(kErrorEpmpBadCheck, ERROR_(1, kModuleEpmp, kInternal)), \
- X(kErrorOtpBadAlignment, ERROR_(1, kModuleOtp, kInvalidArgument)), \
X(kErrorOtbnInvalidArgument, ERROR_(1, kModuleOtbn, kInvalidArgument)), \
X(kErrorOtbnBadOffsetLen, ERROR_(2, kModuleOtbn, kInvalidArgument)), \
X(kErrorOtbnExecutionFailed, ERROR_(3, kModuleOtbn, kInternal)), \
X(kErrorOtbnSecWipeImemFailed, ERROR_(4, kModuleOtbn, kInternal)), \
X(kErrorOtbnSecWipeDmemFailed, ERROR_(5, kModuleOtbn, kInternal)), \
- X(kErrorOtbnUnavailable, ERROR_(6, kModuleOtbn, kInternal)), \
- X(kErrorOtbnBadInsnCount, ERROR_(7, kModuleOtbn, kInternal)), \
+ X(kErrorOtbnBadInsnCount, ERROR_(6, kModuleOtbn, kInternal)), \
X(kErrorFlashCtrlDataRead, ERROR_(1, kModuleFlashCtrl, kInternal)), \
X(kErrorFlashCtrlInfoRead, ERROR_(2, kModuleFlashCtrl, kInternal)), \
X(kErrorFlashCtrlDataWrite, ERROR_(3, kModuleFlashCtrl, kInternal)), \
@@ -107,29 +101,14 @@
X(kErrorFlashCtrlDataErase, ERROR_(5, kModuleFlashCtrl, kInternal)), \
X(kErrorFlashCtrlInfoErase, ERROR_(6, kModuleFlashCtrl, kInternal)), \
X(kErrorFlashCtrlDataEraseVerify, ERROR_(7, kModuleFlashCtrl, kInternal)), \
- X(kErrorSecMmioRegFileSize, ERROR_(0, kModuleSecMmio, kResourceExhausted)), \
- X(kErrorSecMmioReadFault, ERROR_(1, kModuleSecMmio, kInternal)), \
- X(kErrorSecMmioWriteFault, ERROR_(2, kModuleSecMmio, kInternal)), \
- X(kErrorSecMmioCheckValueFault, ERROR_(3, kModuleSecMmio, kInternal)), \
- X(kErrorSecMmioCheckIndexFault, ERROR_(4, kModuleSecMmio, kInternal)), \
- X(kErrorSecMmioWriteCountFault, ERROR_(5, kModuleSecMmio, kInternal)), \
- X(kErrorSecMmioCheckCountFault, ERROR_(6, kModuleSecMmio, kInternal)), \
X(kErrorBootPolicyBadIdentifier, ERROR_(1, kModuleBootPolicy, kInternal)), \
X(kErrorBootPolicyBadLength, ERROR_(2, kModuleBootPolicy, kInternal)), \
X(kErrorBootPolicyRollback, ERROR_(3, kModuleBootPolicy, kInternal)), \
X(kErrorRetSramLocked, ERROR_(1, kModuleRetSram, kInternal)), \
- X(kErrorBootstrapSpiDevice, ERROR_(1, kModuleBootstrap, kInternal)), \
- X(kErrorBootstrapErase, ERROR_(2, kModuleBootstrap, kInternal)), \
- X(kErrorBootstrapEraseCheck, ERROR_(3, kModuleBootstrap, kInternal)), \
- X(kErrorBootstrapEraseExit, ERROR_(4, kModuleBootstrap, kInternal)), \
- X(kErrorBootstrapWrite, ERROR_(5, kModuleBootstrap, kInternal)), \
- X(kErrorBootstrapGpio, ERROR_(6, kModuleBootstrap, kInternal)), \
- X(kErrorBootstrapUnknown, ERROR_(7, kModuleBootstrap, kInternal)), \
- X(kErrorBootstrapEraseAddress, ERROR_(8, kModuleBootstrap, kInvalidArgument)), \
- X(kErrorBootstrapProgramAddress, ERROR_(9, kModuleBootstrap, kInvalidArgument)), \
- X(kErrorBootstrapInvalidOpcode, ERROR_(10, kModuleBootstrap, kInvalidArgument)), \
- X(kErrorBootstrapInvalidState, ERROR_(11, kModuleBootstrap, kInvalidArgument)), \
- X(kErrorBootstrapNotRequested, ERROR_(12, kModuleBootstrap, kInternal)), \
+ X(kErrorBootstrapEraseAddress, ERROR_(1, kModuleBootstrap, kInvalidArgument)), \
+ X(kErrorBootstrapProgramAddress, ERROR_(2, kModuleBootstrap, kInvalidArgument)), \
+ X(kErrorBootstrapInvalidState, ERROR_(3, kModuleBootstrap, kInvalidArgument)), \
+ X(kErrorBootstrapNotRequested, ERROR_(4, kModuleBootstrap, kInternal)), \
X(kErrorLogBadFormatSpecifier, ERROR_(1, kModuleLog, kInternal)), \
X(kErrorBootDataNotFound, ERROR_(1, kModuleBootData, kInternal)), \
X(kErrorBootDataWriteCheck, ERROR_(2, kModuleBootData, kInternal)), \