Updates related PSA FF 1.0Beta0 version (#17)
* Support for PSA Firmware Framework Test Suite.
- PSA IPC tests
- PSA Crypto tests
Signed-off-by: Jaykumar Pitambarbhai Patel <jaykumar.pitambarbhaipatel@arm.com>
* Updates related PSA FF 1.0Beta0 version
Signed-off-by: Jaykumar Pitambarbhai Patel <jaykumar.pitambarbhaipatel@arm.com>
diff --git a/psa-ff/val/common/val.h b/psa-ff/val/common/val.h
index b3e66f1..04e67bf 100644
--- a/psa-ff/val/common/val.h
+++ b/psa-ff/val/common/val.h
@@ -119,6 +119,7 @@
#define VAL_NVMEM_OFFSET(nvmem_idx) (nvmem_idx * VAL_NVMEM_BLOCK_SIZE)
#define UART_INIT_SIGN 0xff
+#define UART_PRINT_SIGN 0xfe
/* enums */
typedef enum {
@@ -166,6 +167,11 @@
NVMEM_WRITE = 0x2,
} nvmem_fn_type_t;
+typedef enum {
+ UART_INIT = 0x1,
+ UART_PRINT = 0x2,
+} uart_fn_type_t;
+
/* enums to report test sub-state */
typedef enum {
VAL_STATUS_SUCCESS = 0x0,
@@ -220,27 +226,19 @@
typedef struct {
wd_fn_type_t wd_fn_type;
- wd_timeout_type_t wd_timeout_type;
+ addr_t wd_base_addr;
+ uint32_t wd_time_us;
+ uint32_t wd_timer_tick_us;
} wd_param_t;
typedef struct {
nvmem_fn_type_t nvmem_fn_type;
- uint32_t offset;
- int size;
+ addr_t base;
+ uint32_t offset;
+ int size;
} nvmem_param_t;
typedef struct {
- addr_t wd_base_addr;
- uint32_t wd_time_us_low;
- uint32_t wd_time_us_medium;
- uint32_t wd_time_us_high;
- uint32_t wd_timer_tick_us;
- addr_t nvmem_base_addr;
- addr_t uart_base_addr;
-} target_param_t;
-
-
-typedef struct {
uint16_t test_num;
uint8_t block_num;
} test_info_t;