forked from auracaster/openocd
Provide jtagspi with specific procedures to be able to use jtagspi for programming spi-flash devices on lattice ecp5 devices. Change-Id: I4a4a60f21d7e8685a5b8320b9c6ebdc2693bbd21 Signed-off-by: Daniel Anselmi <danselmi@gmx.ch> Reviewed-on: https://review.openocd.org/c/openocd/+/7824 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
21 lines
740 B
C
21 lines
740 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/***************************************************************************
|
|
* Copyright (C) 2022 by Daniel Anselmi *
|
|
* danselmi@gmx.ch *
|
|
***************************************************************************/
|
|
|
|
#ifndef OPENOCD_PLD_LATTICE_CMD_H
|
|
#define OPENOCD_PLD_LATTICE_CMD_H
|
|
|
|
#define ISC_ERASE 0x0E
|
|
#define ISC_DISABLE 0x26
|
|
#define PROGRAM_SPI 0x3A
|
|
#define LSC_READ_STATUS 0x3C
|
|
#define LSC_INIT_ADDRESS 0x46
|
|
#define LSC_BITSTREAM_BURST 0x7A
|
|
#define READ_USERCODE 0xC0
|
|
#define ISC_ENABLE 0xC6
|
|
|
|
#endif /* OPENOCD_PLD_LATTICE_CMD_H */
|