FWU: Align to FWU API v1.0

'component' and 'component state' is newly introduced in
FWU API v1.0. The FWU process is now based on component
state other than image state.

Remove the image ID convertion layer as image ID is removed
in FWU API v1.0.

Update the shim layer between FWU and bootloader to fit the new
FWU APIs.

Update the FWU design document accordingly.

Signed-off-by: Sherry Zhang <sherry.zhang2@arm.com>
Change-Id: Idcbf2b643f22a5c6ec09869510d406662948c61d
diff --git a/interface/include/psa/error.h b/interface/include/psa/error.h
index e8903f0..fee8c99 100644
--- a/interface/include/psa/error.h
+++ b/interface/include/psa/error.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019-2021, Arm Limited. All rights reserved.
+ * Copyright (c) 2019-2022, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  *
@@ -28,8 +28,6 @@
 #endif
 
 #define PSA_SUCCESS                     ((psa_status_t)0)
-#define PSA_SUCCESS_REBOOT              ((psa_status_t)1)
-#define PSA_SUCCESS_RESTART             ((psa_status_t)2)
 
 #define PSA_ERROR_PROGRAMMER_ERROR      ((psa_status_t)-129)
 #define PSA_ERROR_CONNECTION_REFUSED    ((psa_status_t)-130)
@@ -52,7 +50,9 @@
 #define PSA_ERROR_HARDWARE_FAILURE      ((psa_status_t)-147)
 #define PSA_ERROR_INVALID_SIGNATURE     ((psa_status_t)-149)
 #define PSA_ERROR_DEPENDENCY_NEEDED     ((psa_status_t)-156)
-#define PSA_ERROR_CURRENTLY_INSTALLING  ((psa_status_t)-157)
+#define PSA_ERROR_FLASH_ABUSE           ((psa_status_t)-160)
+#define PSA_ERROR_INSUFFICIENT_POWER    ((psa_status_t)-161)
+
 #ifdef __cplusplus
 }
 #endif