aboutsummaryrefslogtreecommitdiff
path: root/src/pld/intel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pld/intel.c')
-rw-r--r--src/pld/intel.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pld/intel.c b/src/pld/intel.c
index ee30973..8422c94 100644
--- a/src/pld/intel.c
+++ b/src/pld/intel.c
@@ -362,6 +362,12 @@ static int intel_get_ipdbg_hub(int user_num, struct pld_device *pld_device, stru
return ERROR_OK;
}
+static int intel_get_jtagspi_userircode(struct pld_device *pld_device, unsigned int *ir)
+{
+ *ir = USER1;
+ return ERROR_OK;
+}
+
COMMAND_HANDLER(intel_set_bscan_command_handler)
{
unsigned int boundary_scan_length;
@@ -412,7 +418,6 @@ COMMAND_HANDLER(intel_set_check_pos_command_handler)
return ERROR_OK;
}
-
PLD_CREATE_COMMAND_HANDLER(intel_pld_create_command)
{
if (CMD_ARGC != 4 && CMD_ARGC != 6)
@@ -498,4 +503,5 @@ struct pld_driver intel_pld = {
.pld_create_command = &intel_pld_create_command,
.load = &intel_load,
.get_ipdbg_hub = intel_get_ipdbg_hub,
+ .get_jtagspi_userircode = intel_get_jtagspi_userircode,
};