path: root/utils/regtools
AgeCommit message (Collapse)AuthorFilesLines
2014-12-15Revert "regtools/qeditor: use the new model, drop unused code"Amaury Pouly4-67/+111
This reverts commit 3b3d9bf725a5b04e4cd9bc4254fbd2594b518e89. Gerrit did crap on this one.
2014-12-15regtools/qeditor: use the new model, drop unused codeAmaury Pouly4-111/+67
Change-Id: Ic4e2e201f6d055c85d52b7fe15d25980386df5b8 Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-11-28qeditor: add clock analyser for ATJ213xMarcin Bukat3-16/+377
Change-Id: I5f5a3537d1ddf6b02684dd4c1dd13be862d3a918 Reviewed-on: Reviewed-by: Marcin Bukat <>
2014-11-28hwstub: lua functions for atj213x/irivere150Marcin Bukat1-1/+61
Change-Id: I3ab32996b4b6603fd7d66eee5b3bfd795b79eee1 Reviewed-on: Reviewed-by: Marcin Bukat <> Tested: Marcin Bukat <>
2014-11-18regs-atj213x.xml upadteMarcin Bukat1-0/+144
Change-Id: Ia34dcf651e68ea66baebdeb8c056db86799ea33c
2014-11-18hwstub/qeditor: add support for atomic read/writesMarcin Bukat1-2/+2
The current code assumed that READ/WRITE would produce atomic read/writes for 8/16/32-bit words, which in turned put assumption on the memcpy function. Since some memcpy implementation do not always guarantee such strong assumption, introduce two new operation READ/WRITE_ATOMIC which provide the necessary tools to do correct read and write to register in a single memory access. Change-Id: I37451bd5057bb0dcaf5a800d8aef8791c792a090
2014-11-06regtools: ATJ213x description fileMarcin Bukat1-0/+759
Change-Id: I5b4d29e0808c57e252f5b6c3b9ba26a52c1bd112
2014-10-08regtools/socdesc: fix redAmaury Pouly1-0/+1
Change-Id: If40c52168eb5cd2d194c90c3f65263d2b9da0451
2014-09-19regtools: reg-rk27xx.xml description file rework and cleanupMarcin Bukat1-97/+381
Change-Id: I0a2e45eb1b4aa03122382cc93bbc0c292b3249be
2014-09-19qeditor: Implement clock analyzer for rk27xxMarcin Bukat3-5/+200
Change-Id: Ib8f53d32120893b6c1054299ed434a6650a0d7c2 Reviewed-on: Reviewed-by: Marcin Bukat <>
2014-09-19qeditor: rework modified indicator, register tab names depend on contentAmaury Pouly7-48/+129
Because Qt doesn't support QObject multiple inherance, it is a bit tricky to have a base class which interact with the UI. The register tab name now display: - file dump name (for dumps) - hwstub device path (for hwstub) And the register editor display the filename Change-Id: If2579992098c02627c67d560c824f1668e73bc45 Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-09-19qeditor: implement usb device list refresh (if supported)Amaury Pouly2-0/+10
Change-Id: Iaf05cad0e057f767dcde963d194027b2e290dbea Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-09-19qeditor: fix UI to update register/analyser view on each tree/list clickAmaury Pouly2-19/+5
Change-Id: Idaceb7ffaf33c2184a43353dd9d7dee20ac807a9 Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-09-19qeditor: fix horrible out of bound bugAmaury Pouly1-1/+1
Change-Id: I1b34b1cd7be83d90e38559e386d0c6c64797b707 Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-09-19qeditor: when switching type tab, automagically switch view, implement reloadAmaury Pouly2-0/+19
Change-Id: I7360af3b5dd7380151732687d6d8de3dbd503f20 Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-09-19qeditor: avoid memory leak in RegTabAmaury Pouly1-1/+1
Change-Id: Ib7cd87b66c0ceb3d3ff93714709a43e2a97ce79a Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-09-19qeditor: move backend selector to its own class, that's cleanerAmaury Pouly4-163/+196
Change-Id: I7f3fa66a8f67639b4b64cf9f6acc5fb10e227653 Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-09-19qeditor: initialise libusb once in a static ctorAmaury Pouly1-5/+18
Change-Id: Ic93def2b3633c498c9863b0dada3281853be8c6c Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-09-18regtoools: Enhance rk27xx description fileMarcin Bukat1-1928/+2416
Change-Id: If37551757188d98bcb27f7f469c11cf89bf64f62
2014-09-16regtools/soc_desc: fix libxml2 misinitAmaury Pouly1-1/+17
The code did not call xmlInitParser() and would call xmlCleanupParser() each time which is doubly wrong because 1) it's not init 2) all init/cleanup must be done from the main thread. To ensure 2), call it from a static ctor. Change-Id: I3d191bf3b8c0cfc51da78157e88c786636fd3ebf Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-09-15rk27xx: Fill UDC block description in regs-rk27xx.xmlMarcin Bukat1-84/+740
Change-Id: Ia44169bda8f1558c1cbd4c8c0d2d3aaee262c991
2014-09-07qeditor: add soc panel, to display soc informationAmaury Pouly4-6/+92
Change-Id: Ie442b82d96fb150c7466f1a274240f9b111fd91e
2014-09-07qeditor: use hwstub library function to identify devicesAmaury Pouly1-15/+8
The new protocol is interface based, so matching PID:VID is not sufficient Change-Id: I27983a9c3b7db01b8e63b41e885f86d09c362f60
2014-06-15Rework reg description file for rk27xxMarcin Bukat1-649/+601
Change-Id: I3fc1c6c70c828dca285479eaa168328a2a8fdf2c
2014-05-25regtools: add new reg dumps from various targetsAmaury Pouly6-0/+4342
Change-Id: I289f03a8404c6aa8ec2ff94a8a0a3118fd3c7456
2014-05-12qeditor: on Windows it’s not impossible to create a file with AUXDmitry Gamza5-5/+5
Change-Id: Ic7ef01328eccbed4afddb0a09d2afbb6c1f6a28f Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-05-11qeditor: many enhancementAmaury Pouly8-40/+261
Qeditor has been improved in many ways: - it can now dump all registers, just like the lua DUMPER.dump_all() command - several crash were fixed - when connected to a hwstub command, one can correctly edit individual fields - the code was simplified in several places Change-Id: I092b99ce3a12ff6417552de61d62c65f706bcff0
2014-05-11regtools: headergen can now output the description in the headersAmaury Pouly2-4/+108
This is useful to provide some documentation in the code. Change-Id: Ib440363d82c47c36fffb9567a2e7f374eaaa5cbc
2014-05-11regtools: make qeditor aware of PPAmaury Pouly2-0/+16
Change-Id: I3b4fa625499aa66bb5617971445fa3c1c209134e
2014-05-11qeditor: add support for deletion of itemsAmaury Pouly6-7/+102
Change-Id: I886e15585bd3bfed3303e4b845cd8960a9461277
2014-05-11qeditor: fix includeAmaury Pouly1-1/+1
Change-Id: Ie6013be29729267294c13fd4e86edad3904aa114
2014-05-01regtools: normalise description files, and remove obsolete file. No logical ↵Amaury Pouly3-27459/+17400
change. Files were generated using utils/regtools/tester in "write" mode. Change-Id: Ib391b8dbb5ec84eb821e0d0a3699d306414f2aa1
2014-05-01regtools: fix makefilesAmaury Pouly2-7/+7
Change-Id: Ib69aac4e7510c99398130467b7fe0f10fc4897f7
2014-05-01regtools: completely rework qeditor, improve soc desc library and toolsAmaury Pouly22-614/+4390
The graphical editor can now display and editor description files. The library has been improved to provide more useful function. The XML format has been slightly changed: only one soc is allowed per file (this is was already de facto the case since <soc> was the root tag). Also introduce a DTD to validate the files. Change-Id: If70ba35b6dc0242bdb87411cf4baee9597798aac
2014-05-01regtools: update soc desc parser/header to include desc fieldsAmaury Pouly2-7/+16
Change-Id: I32374784d17f4352905f15e404df23b01338235b
2014-02-18regtools: fix headergen variadic macro generationAmaury Pouly1-3/+3
Change-Id: I5e2439e5dcbeaaafda75c6ea457e53ee1ba26463
2014-02-13regtools: Add rk27xx register description fileMarcin Bukat1-0/+1387
Change-Id: I27101876d031cbcbb00e741ea742a6f64a7baad7
2014-02-13regtools/qeditor: fix crash when hwstub device fails to openAmaury Pouly1-0/+1
Change-Id: Ica2fd201f2ae8ee63b1ae81f27433c841d2f22cd
2014-02-12Fix redAmaury Pouly3-4/+7
Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
2014-02-10regtools/qeditor: implement UI code to write registersAmaury Pouly2-152/+374
The UI now has a "read-only" check box to prevent accidently changes: once unchecked, the UI can do write to register (only full register writes are supported for now). If the register supports it, the UI provides SCT writes as well. The display register panel was moved to its own class to cleanup things a bit. Change-Id: I0fc6aab3b351f9080076102ee6fad0037ab5353b
2014-02-10regtools/qeditor: enhance backend write with write mode (SCT)Amaury Pouly2-17/+56
Change-Id: I723bce7a60fb08c1d1d5f894a225c36bc1ba4394
2014-02-10regtools/qeditor: clean-upAmaury Pouly4-1/+17
Free the backend when closing a tab to release some memory. Implement about dialogs. Change-Id: Ic8c500a23d38e6c3dd4de6a4ba862012925968be
2014-02-10regtools/qeditor: prepare support for register writingAmaury Pouly4-8/+207
Change-Id: Ifef36a3ddb1604db63ec974da2d6a77a5540ff42
2014-02-10regtools/qeditor: rewrite soc handlingAmaury Pouly8-104/+161
The code was a mess with respect to soc handling: some code just plain copied the SoC descriptor which are big objects, some was using indexes. The new soc factor out everything in a few classes which hide these ugly details so that descriptors are never copied. Change-Id: I17af8b47f997a528b58221621389d42d24fded93
2014-02-10hwstub/regtools/qeditor: put soc descriptors in a list instead of a vectorAmaury Pouly3-12/+13
A SoC descriptor is not a small object: it can be as large as ~100KiB so it's better to avoid copying things over. Change-Id: I1ef862e1260299cdaa0c4d2822ac45968713498a
2014-02-10utils/regtools: slight rework of tab management in qeditorAmaury Pouly3-12/+10
Change-Id: Iaf41defb79bb76010f3ff5269c28e4bad991ebc3
2014-02-10utils/regtools: make qeditor able to poke directly at a hwstub deviceAmaury Pouly6-41/+486
This commit add the very handy feature of being able to read registers directly from a device using hwstub. This is mostly trivial using the hwstub library and the biggest change here is actually: - being able to read registers by name and/or addresses - being able to enumerate devives The UI code currently doesn't handle hotplug but the backend does so it should be trivial to add in the future. It also opens up the possibility the write registers from hwstub or save the register values to a file. Since it relies on both hwstub and libusb, a switch has been introduced in qmake to disable it (use -config nohwstub). Change-Id: I5d7d7a2a7c97ecd7407227357c8553c2773ea6cc
2013-12-24regtools/qeditor: always open a register tab at initAmaury Pouly1-0/+2
Change-Id: I47a1413ca648c7166571e6b0ba88c7ebb5ce86a8
2013-12-06regtools: update STMP3600 descriptio (fix EMI block)Amaury Pouly1-8/+141
Change-Id: I654e3210c1050e3bd559c9e9b29707a6341b111b
2013-12-02regtools: update xml format documentationAmaury Pouly1-1/+3
Change-Id: I7e293532983f350a6f7cd9c7bc2bc6633c8fd3f2 Reviewed-on: Reviewed-by: Amaury Pouly <>