diff options
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/str9xpec.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/flash/str9xpec.c b/src/flash/str9xpec.c index 947903b3..2ab92d98 100644 --- a/src/flash/str9xpec.c +++ b/src/flash/str9xpec.c @@ -137,7 +137,7 @@ static u8 str9xpec_isc_status(jtag_tap_t *tap) field.in_value = &status; - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_IDLE)); + jtag_add_dr_scan(1, &field, jtag_set_end_state(TAP_IDLE)); jtag_execute_queue(); LOG_DEBUG("status: 0x%2.2x", status); @@ -225,7 +225,7 @@ static int str9xpec_read_config(struct flash_bank_s *bank) field.in_value = str9xpec_info->options; - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_IDLE)); + jtag_add_dr_scan(1, &field, jtag_set_end_state(TAP_IDLE)); jtag_execute_queue(); status = str9xpec_isc_status(tap); @@ -372,7 +372,7 @@ static int str9xpec_blank_check(struct flash_bank_s *bank, int first, int last) field.out_value = buffer; field.in_value = NULL; - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_IDLE)); + jtag_add_dr_scan(1, &field, jtag_set_end_state(TAP_IDLE)); jtag_add_sleep(40000); /* read blank check result */ @@ -478,7 +478,7 @@ static int str9xpec_erase_area(struct flash_bank_s *bank, int first, int last) field.out_value = buffer; field.in_value = NULL; - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_IDLE)); + jtag_add_dr_scan(1, &field, jtag_set_end_state(TAP_IDLE)); jtag_execute_queue(); jtag_add_sleep(10); @@ -704,7 +704,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 field.out_value = (buffer + bytes_written); field.in_value = NULL; - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_IDLE)); + jtag_add_dr_scan(1, &field, jtag_set_end_state(TAP_IDLE)); /* small delay before polling */ jtag_add_sleep(50); @@ -754,7 +754,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 field.out_value = last_dword; field.in_value = NULL; - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_IDLE)); + jtag_add_dr_scan(1, &field, jtag_set_end_state(TAP_IDLE)); /* small delay before polling */ jtag_add_sleep(50); @@ -826,7 +826,7 @@ static int str9xpec_handle_part_id_command(struct command_context_s *cmd_ctx, ch field.out_value = NULL; field.in_value = buffer; - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_IDLE)); + jtag_add_dr_scan(1, &field, jtag_set_end_state(TAP_IDLE)); jtag_execute_queue(); idcode = buf_get_u32(buffer, 0, 32); @@ -946,7 +946,7 @@ static int str9xpec_write_options(struct flash_bank_s *bank) field.out_value = str9xpec_info->options; field.in_value = NULL; - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_IDLE)); + jtag_add_dr_scan(1, &field, jtag_set_end_state(TAP_IDLE)); /* small delay before polling */ jtag_add_sleep(50); |