jtag/drivers: send bitstream size to firmware via libusb
commit995a7af21d6f97f628382e26dc21dc38e4fa846e
authorAhmed BOUDJELIDA <aboudjelida@nanoxplore.com>
Tue, 21 Nov 2023 16:45:55 +0000 (21 17:45 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 13 Jan 2024 14:47:10 +0000 (13 14:47 +0000)
treed6b416a6066bb5e7c4961a0bea2fb1b7aa1ea1b8
parentfce7aa754f40475228db345c9dd0bf3eb929fc7b
jtag/drivers: send bitstream size to firmware via libusb

Send bitstream size to firmware to initialize the GPIF count registers,
since we're going to send this size via GPIF, we need to give the exact
number of bytes to be sent, then the GPIF counter will decrement with
every clock cycle (every byte sent) until reaching zero and stops.

Change-Id: Ib4e8e0f95a6a4a95ef4888ba8a04a0ea45567f5a
Signed-off-by: Ahmed BOUDJELIDA <aboudjelida@nanoxplore.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7988
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/jtag/drivers/angie.c