OpenOCD
|
Go to the source code of this file.
Macros | |
#define | LSC_DEVICE_CTRL 0x7D |
#define | LSC_ENABLE_X 0x74 |
#define | LSC_REFRESH 0x79 |
int lattice_certus_connect_spi_to_jtag | ( | struct lattice_pld_device * | pld_device_info | ) |
Definition at line 236 of file certus.c.
References buf_get_u32(), buffer, jtag_tap::cur_instr, ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_tap::ir_length, jtag_add_dr_scan(), jtag_execute_queue(), lattice_certus_enable_programming(), lattice_certus_erase_device(), lattice_certus_exit_programming_mode(), lattice_preload(), lattice_set_instr(), LOG_ERROR, NULL, scan_field::num_bits, scan_field::out_value, PROGRAM_SPI, lattice_pld_device::tap, and TAP_IDLE.
Referenced by lattice_connect_spi_to_jtag().
int lattice_certus_disconnect_spi_from_jtag | ( | struct lattice_pld_device * | pld_device_info | ) |
Definition at line 282 of file certus.c.
References ERROR_FAIL, jtag_add_runtest(), jtag_execute_queue(), lattice_pld_device::tap, and TAP_IDLE.
Referenced by lattice_disconnect_spi_from_jtag().
|
static |
Definition at line 106 of file certus.c.
References buffer, ERROR_OK, scan_field::in_value, ISC_ENABLE, jtag_add_dr_scan(), jtag_add_runtest(), jtag_execute_queue(), lattice_set_instr(), LSC_REFRESH, NULL, scan_field::num_bits, scan_field::out_value, and TAP_IDLE.
Referenced by lattice_certus_connect_spi_to_jtag(), and lattice_certus_load().
|
static |
Definition at line 36 of file certus.c.
References buffer, ERROR_OK, scan_field::in_value, jtag_add_dr_scan(), jtag_add_runtest(), jtag_execute_queue(), lattice_set_instr(), LSC_ENABLE_X, NULL, scan_field::num_bits, scan_field::out_value, and TAP_IDLE.
Referenced by lattice_certus_load().
|
static |
Definition at line 54 of file certus.c.
References buffer, ERROR_FAIL, ERROR_OK, scan_field::in_value, ISC_ERASE, jtag_add_dr_scan(), jtag_add_runtest(), jtag_add_sleep(), jtag_execute_queue(), lattice_set_instr(), lattice_verify_status_register_u64(), LSC_DEVICE_CTRL, NULL, scan_field::num_bits, scan_field::out_value, lattice_pld_device::tap, TAP_IDLE, and TAP_IRPAUSE.
Referenced by lattice_certus_connect_spi_to_jtag(), and lattice_certus_load().
|
static |
Definition at line 139 of file certus.c.
References BYPASS, ERROR_OK, ISC_DISABLE, jtag_add_runtest(), jtag_execute_queue(), lattice_set_instr(), and TAP_IDLE.
Referenced by lattice_certus_connect_spi_to_jtag(), and lattice_certus_load().
int lattice_certus_get_facing_read_bits | ( | struct lattice_pld_device * | pld_device_info, |
unsigned int * | facing_read_bits | ||
) |
Definition at line 299 of file certus.c.
References ERROR_FAIL, and ERROR_OK.
Referenced by lattice_get_stuff_bits().
|
static |
Definition at line 130 of file certus.c.
References ERROR_OK, jtag_add_runtest(), jtag_execute_queue(), lattice_set_instr(), LSC_INIT_ADDRESS, and TAP_IDLE.
Referenced by lattice_certus_load().
int lattice_certus_load | ( | struct lattice_pld_device * | lattice_device, |
struct lattice_bit_file * | bit_file | ||
) |
Definition at line 168 of file certus.c.
References ERROR_FAIL, ERROR_OK, jtag_tap::expected, lattice_certus_enable_programming(), lattice_certus_enable_transparent_mode(), lattice_certus_erase_device(), lattice_certus_exit_programming_mode(), lattice_certus_init_address(), lattice_certus_program_config_map(), lattice_preload(), lattice_verify_status_register_u64(), LOG_ERROR, mask, and lattice_pld_device::tap.
Referenced by lattice_load_command().
|
static |
Definition at line 152 of file certus.c.
References raw_bit_file::data, ERROR_OK, scan_field::in_value, jtag_add_dr_scan(), jtag_execute_queue(), lattice_set_instr(), raw_bit_file::length, LSC_BITSTREAM_BURST, NULL, scan_field::num_bits, lattice_bit_file::offset, scan_field::out_value, lattice_bit_file::raw_bit, and TAP_IDLE.
Referenced by lattice_certus_load().
int lattice_certus_read_status | ( | struct jtag_tap * | tap, |
uint64_t * | status, | ||
uint64_t | out | ||
) |
Definition at line 20 of file certus.c.
References lattice_read_u64_register(), LSC_READ_STATUS, and status.
Referenced by lattice_read_status_u64().
int lattice_certus_read_usercode | ( | struct jtag_tap * | tap, |
uint32_t * | usercode, | ||
uint32_t | out | ||
) |
Definition at line 25 of file certus.c.
References lattice_read_u32_register(), and READ_USERCODE.
Referenced by lattice_read_usercode().
int lattice_certus_refresh | ( | struct lattice_pld_device * | lattice_device | ) |
Definition at line 309 of file certus.c.
References BYPASS, ERROR_FAIL, ERROR_OK, jtag_add_runtest(), jtag_add_sleep(), jtag_execute_queue(), lattice_preload(), lattice_set_instr(), LSC_REFRESH, lattice_pld_device::tap, and TAP_IDLE.
Referenced by COMMAND_HANDLER().
int lattice_certus_write_usercode | ( | struct lattice_pld_device * | lattice_device, |
uint32_t | usercode | ||
) |
Definition at line 30 of file certus.c.
References ERROR_FAIL, and LOG_ERROR.
Referenced by lattice_write_usercode().