summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/str9xpec.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/flash/str9xpec.c b/src/flash/str9xpec.c
index 074d751c..c0c6dfff 100644
--- a/src/flash/str9xpec.c
+++ b/src/flash/str9xpec.c
@@ -125,7 +125,7 @@ int str9xpec_set_instr(jtag_tap_t *tap, u32 new_instr, tap_state_t end_state)
field.num_bits = tap->ir_length;
field.out_value = calloc(CEIL(field.num_bits, 8), 1);
buf_set_u32(field.out_value, 0, field.num_bits, new_instr);
- field.out_mask = NULL;
+
field.in_value = NULL;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -151,7 +151,7 @@ static u8 str9xpec_isc_status(jtag_tap_t *tap)
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
- field.out_mask = NULL;
+
field.in_value = &status;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -243,7 +243,7 @@ static int str9xpec_read_config(struct flash_bank_s *bank)
field.tap = tap;
field.num_bits = 64;
field.out_value = NULL;
- field.out_mask = NULL;
+
field.in_value = str9xpec_info->options;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -395,7 +395,7 @@ static int str9xpec_blank_check(struct flash_bank_s *bank, int first, int last)
field.tap = tap;
field.num_bits = 64;
field.out_value = buffer;
- field.out_mask = NULL;
+
field.in_value = NULL;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -409,7 +409,7 @@ static int str9xpec_blank_check(struct flash_bank_s *bank, int first, int last)
field.tap = tap;
field.num_bits = 64;
field.out_value = NULL;
- field.out_mask = NULL;
+
field.in_value = buffer;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -511,7 +511,7 @@ static int str9xpec_erase_area(struct flash_bank_s *bank, int first, int last)
field.tap = tap;
field.num_bits = 64;
field.out_value = buffer;
- field.out_mask = NULL;
+
field.in_value = NULL;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -577,7 +577,7 @@ static int str9xpec_lock_device(struct flash_bank_s *bank)
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
- field.out_mask = NULL;
+
field.in_value = &status;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -663,7 +663,7 @@ static int str9xpec_set_address(struct flash_bank_s *bank, u8 sector)
field.tap = tap;
field.num_bits = 8;
field.out_value = &sector;
- field.out_mask = NULL;
+
field.in_value = NULL;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -752,7 +752,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.tap = tap;
field.num_bits = 64;
field.out_value = (buffer + bytes_written);
- field.out_mask = NULL;
+
field.in_value = NULL;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -770,7 +770,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
- field.out_mask = NULL;
+
field.in_value = scanbuf;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -812,7 +812,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.tap = tap;
field.num_bits = 64;
field.out_value = last_dword;
- field.out_mask = NULL;
+
field.in_value = NULL;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -830,7 +830,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
- field.out_mask = NULL;
+
field.in_value = scanbuf;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -894,7 +894,7 @@ static int str9xpec_handle_part_id_command(struct command_context_s *cmd_ctx, ch
field.tap = tap;
field.num_bits = 32;
field.out_value = NULL;
- field.out_mask = NULL;
+
field.in_value = buffer;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -1019,7 +1019,7 @@ static int str9xpec_write_options(struct flash_bank_s *bank)
field.tap = tap;
field.num_bits = 64;
field.out_value = str9xpec_info->options;
- field.out_mask = NULL;
+
field.in_value = NULL;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -1037,7 +1037,7 @@ static int str9xpec_write_options(struct flash_bank_s *bank)
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
- field.out_mask = NULL;
+
field.in_value = &status;
field.in_check_value = NULL;
field.in_check_mask = NULL;