forked from auracaster/openocd
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>
This commit is contained in:
committed by
Antonio Borneo
parent
cf596a61db
commit
e33eae340d
18
src/pld/certus.h
Normal file
18
src/pld/certus.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2022 by Daniel Anselmi *
|
||||
* danselmi@gmx.ch *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef OPENOCD_PLD_CERTUS_H
|
||||
#define OPENOCD_PLD_CERTUS_H
|
||||
|
||||
#include "lattice.h"
|
||||
|
||||
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_write_usercode(struct lattice_pld_device *lattice_device, uint32_t usercode);
|
||||
int lattice_certus_load(struct lattice_pld_device *lattice_device, struct lattice_bit_file *bit_file);
|
||||
|
||||
#endif /* OPENOCD_PLD_CERTUS_H */
|
||||
Reference in New Issue
Block a user