OpenOCD
|
Go to the source code of this file.
Functions | |
int | lattice_certus_connect_spi_to_jtag (struct lattice_pld_device *pld_device_info) |
int | lattice_certus_disconnect_spi_from_jtag (struct lattice_pld_device *pld_device_info) |
int | lattice_certus_get_facing_read_bits (struct lattice_pld_device *pld_device_info, unsigned int *facing_read_bits) |
int | lattice_certus_load (struct lattice_pld_device *lattice_device, struct lattice_bit_file *bit_file) |
int | lattice_certus_read_status (struct jtag_tap *tap, uint64_t *status, uint64_t out) |
int | lattice_certus_read_usercode (struct jtag_tap *tap, uint32_t *usercode, uint32_t out) |
int | lattice_certus_refresh (struct lattice_pld_device *lattice_device) |
int | lattice_certus_write_usercode (struct lattice_pld_device *lattice_device, uint32_t usercode) |
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().
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().
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().
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().