diff options
author | Daniel Anselmi <danselmi@gmx.ch> | 2022-12-12 09:49:51 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-04-30 14:54:04 +0000 |
commit | e33eae340d3502ffab8c172c246bc392a093c2ea (patch) | |
tree | ed7cf6e30393ea712d7887a6168f284177639a10 /src/pld/lattice.h | |
parent | cf596a61db7ebace9cf097ffcb332e4de0679398 (diff) | |
download | riscv-openocd-e33eae340d3502ffab8c172c246bc392a093c2ea.zip riscv-openocd-e33eae340d3502ffab8c172c246bc392a093c2ea.tar.gz riscv-openocd-e33eae340d3502ffab8c172c246bc392a093c2ea.tar.bz2 |
pld: add support for lattice certus devices
Change-Id: Ic50a724e5793000fca11f35ba848c2d317c3cbab
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7398
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/pld/lattice.h')
-rw-r--r-- | src/pld/lattice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pld/lattice.h b/src/pld/lattice.h index 6d692cb..9a76a4e 100644 --- a/src/pld/lattice.h +++ b/src/pld/lattice.h @@ -23,10 +23,14 @@ struct lattice_pld_device { int lattice_set_instr(struct jtag_tap *tap, uint8_t new_instr, tap_state_t endstate); int lattice_read_u32_register(struct jtag_tap *tap, uint8_t cmd, uint32_t *in_val, uint32_t out_val, bool do_idle); +int lattice_read_u64_register(struct jtag_tap *tap, uint8_t cmd, uint64_t *in_val, + uint64_t out_val); int lattice_verify_usercode(struct lattice_pld_device *lattice_device, uint32_t out, uint32_t expected, uint32_t mask); int lattice_verify_status_register_u32(struct lattice_pld_device *lattice_device, uint32_t out, uint32_t expected, uint32_t mask, bool do_idle); +int lattice_verify_status_register_u64(struct lattice_pld_device *lattice_device, uint64_t out, + uint64_t expected, uint64_t mask); int lattice_preload(struct lattice_pld_device *lattice_device); #endif /* OPENOCD_PLD_LATTICE_H */ |