Mike Frysinger
5b29e0dbe5
workaround lex build warnings so we can use -Werror with them too
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1969 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Jie Zhang
70eb4a8270
ice-100b: add firmware updater
...
* include/urjtag/cable.h (urj_cable_param_key_t): Add
URJ_CABLE_PARAM_KEY_FIRMWARE.
* src/tap/cable.c (cable_param[]): Add URJ_CABLE_PARAM_KEY_FIRMWARE.
* src/tap/cable/ice100.c: Include "libiberty.h".
(params_t): Add firmware_filename.
(HOST_PROGRAM_FLASH): Define.
(ICE100B_DOC_URL): Define.
(adi_usb_read_or_ret): Use urj_error_IO_set.
(adi_usb_write_or_ret): Likewise.
(struct flash_block): Define.
(NIBBLE): Define.
(HEX2): Define.
(HEX4): Define.
(ISHEX): Define.
(ISHEX2): Define.
(ISHEX4): Define.
(ice_read_hex_file): New.
(ice_calculate_crc): New.
(ice_send_flash_data): New.
(ice_firmware_crc): New.
(ice_update_firmware): New.
(ice_connect): Handle firmware parameter.
(kit_10_connect): Initialize firmware_filename to NULL.
(kit_20_connect): Likewise.
(ice_init): Add firmware updater.
(ice_cable_free): Free firmware_filename.
(ice_cable_help): New.
(urj_tap_cable_ice100B_driver): Use ice_cable_help.
Add Emacs file local variables.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1968 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Jie Zhang
c0a20666b1
log system: refactor
...
* include/urjtag/parse.h (urj_parse_stream): Update declaration.
(urj_parse_file): Likewise.
* include/urjtag/log.h (urj_do_log): Add file, line, func parameters.
(urj_log): Pass __FILE__, __LINE__, __func__ to urj_do_log.
(urj_warning): Use urj_log.
(urj_log_error_describe): Declare.
* src/tap/detect.c (urj_tap_detect_parts): Use urj_log_error_describe.
* src/global/log-error.c: Include <stdbool.h>.
(log_printf): New.
(urj_do_log): Print log level prefix for error, warning, or when
log level is URJ_LOG_LEVEL_DETAIL or lower.
Print file, line, func when log level is URJ_LOG_LEVEL_DEBUG
or lower.
(urj_error_describe): Don't include file, line, or function.
(urj_log_error_describe): New.
* src/global/parse.c (urj_parse_stream): Remove log level argument.
Use urj_log_error_describe.
(urj_parse_file): Remove log level argument.
(urj_parse_include): Update use of urj_parse_file.
* src/apps/jtag/jtag.c (jtag_readline_multiple_commands_support):
Use urj_log_error_describe.
(jtag_parse_rc): Update use of urj_parse_file.
(main): Update use of urj_parse_file and urj_parse_stream.
Use urj_log_warning.
* src/apps/bsdl2jtag/bsdl2jtag.c (main): Use urj_log_error.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1967 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
afc51a142e
buses: add class types and more hooks in preparation for other types of buses (SPI/I2C) by Jonathan Stroud
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1966 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
da894d0249
turn flash detection routines into an array
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1965 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
424f2ec225
add command completion support to more commands
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1964 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
0d1b7f7a12
add changelog for cmd-part change
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1963 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
483875fa43
cmd_part: update help output to reflect current behavior
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1962 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
c5cb775947
unify readline filename completion code into one helper
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1961 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
f85dd5676f
add support for intel 28F256P33 flashes by Jonathan Stroud
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1960 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
5447194bce
fix date of commits
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1959 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
4367b224ef
ignore new generated stamp cmd list file
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1958 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Jie Zhang
3a0b051033
Correct checking of the parameter number of parallel cable
...
* src/tap/chain.c (urj_tap_chain_connect): Correct checking of the
parameter number of parallel cable.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1957 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
a919e31530
bus: fix style in random drivers
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1956 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
2cb4134c84
bfin: unify duplicated part data casts
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1955 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
f27cc69d0f
pxa2x0: push down global data into bus-specific instances
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1954 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
fa13811948
mpc824x: push down global data into bus-specific instances
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1953 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
a45c4e8c57
bfin: constify/localize some structures
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1952 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
4bdf94899d
writemem: tweak style
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1951 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Jie Zhang
50e84d8661
Avoid redundant initialization of hex table.
...
* src/lib/hex.c (hex_init): Avoid redundant initialization.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1950 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Jie Zhang
a19e4b8f12
Import hex.c from libiberty of GCC and move libiberty headers from src/lib/ to /include/ .
...
* src/lib/ansidecl.h: Move to include.
* src/lib/filenames.h: Likewise.
* src/lib/libiberty.h: Likewise.
* src/lib/safe-ctype.h: Likewise.
* src/lib/hex.c: Import from GCC.
* src/lib/Makefile.am (libiberty_sources): Remove ansidecl.h,
filenames.h, libiberty.h and save-ctype.h.
(libjtaglib_la_SOURCES): Add hex.c.
* include/Makefile.am: New file.
* Makefile.am (SUBDIRS): Add include.
* src/global/data_dir.c (make_relative_prefix): Don't declare.
Include libiberty.h.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1949 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Jie Zhang
5e436206ae
Forgot to commit the real change in my last commit.
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1948 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
a33cbfa3fe
blackfin buses: accept new hwait option from user to optionally drive a pin when selecting the flash to mimic the behavior of Blackfin bootroms when they boot out of flash
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1947 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
70612aab1b
urj_param_init_list: unify code for parsing user params based on a param_list struct
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1946 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
a16e5c82ed
cmd_cable: add support for sub-cable parameters by generalizing the new initbus code
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1945 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
35a70b6804
cmd_cable: restore cable-specific help output
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1944 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
223fdef548
ignore new generated_cmd_list.h.stamp
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1943 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
03ac12e292
initbus: add support for completing bus parameters
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1942 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Jie Zhang
ffe03785ef
Avoid recompile all cmd files when generated_cmd_list.h is unchanged.
...
* src/cmd/Makefile.am (generated_cmd_list.h): Depend on
generated_cmd_list.h.stamp.
(generated_cmd_list.h.stamp): New target.
(EXTRA_DIST): Add generated_cmd_list.h.stamp.
(MAINTAINERCLEANFILES): Likewise.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1941 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
3eca37f1e6
urj_tap_cable_wait: fix off-by-one logic in a previous commit pointed out by Jie Zhang
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1940 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
007750ad5f
bfin: rewrite system reset code to work around known anomalies
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1939 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
062ac8b981
urjtag.pc: make sure usb/ftdi libs are declared for static builds
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1938 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
3b461c20ad
cable: fix param count checking with parallel port cables after the refactoring
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1937 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
df1a7602ec
bfin: add support for using ITEST MMRs to access memory regions which DTEST MMRs cannot
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1936 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
44d5afb3a3
bfin: revert chain_system_reset update as this wasnt supposed to be part of the token commit, and this isnt quite done yet
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1935 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
f10d155e19
generalize log level converters between strings and urj_log_level_t types
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1934 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
1ddde8e7ec
cmd_{bfin,set}: add sub-command completions only when earlier tokens indicate that it makes sense to
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1933 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
b4730561a1
add new helpers for command completion that take arrays of strings
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1932 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
94a2e63fcc
cmd_endian: automate the completion matches
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1931 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
cfa19fc564
pass down the tokenized array to completion handlers in case they want to parse info in earlier tokens
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1930 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
adeb3616f4
cmd_bfin: update help description to include all the possible commands
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1929 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
0cb050a8cc
cmd_bfin: add a check when doing "bfin reset" to make sure we are in emulation mode first
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1928 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
3a4359c510
fix constant creation of the cmd list in case the cmd_*.c files have been updated, but the resulting command list isnt different
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1927 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
5d6c06ab80
workaround new gcc-4.6 set-but-unused build warnings
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1926 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
e7bb12754a
fjmem: update svn:ignores
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1925 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Jie Zhang
ce72cfd147
Fix my last commit
...
* include/urjtag/Makefile.am (nodist_pkginclude_HEADERS): New and
add urjtag.h.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1924 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
66b9f336fb
tweak dependency info on bison headers more to work again after OBJEXT hardcoding was dropped
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1923 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Jie Zhang
895f2384b8
Fix make dist
...
* include/urjtag/Makefile.am (pkginclude_HEADERS): Remove urjtag.h.
* extra/fjmem/Makefile.am: New file.
* src/jim/Makefile.am (EXTRA_DIST): New.
* src/pld/Makefile.am (libpld_la_SOURCES): Add xilinx.h.
* src/bus/Makefile.am (libbus_la_SOURCES): Add blackfin.h.
* src/bfin/Makefile.am (libbfin_la_SOURCES): Add bfin-part.h.
* configure.ac: Add extra/fjmem/Makefile to AC_CONFIG_FILES.
* data/Makefile.am (nobase_dist_pkgdata_DATA): Add
xilinx/xc18v02pc44/xc18v02pc44 and xilinx/xc18v02pc44/STEPPINGS.
* Makefile.am (SUBDIRS): Add extra/fjmem.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1922 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
f549fac82f
punt empty dir from svn
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1921 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago
Mike Frysinger
32ef4a6da7
split out configure summary info to make a bit more readable
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1920 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
14 years ago