summaryrefslogtreecommitdiff
path: root/utils/regtools (follow)
Commit message (Collapse)AuthorAge
...
* hwstub: lua functions for atj213x/irivere150Marcin Bukat2014-11-28
| | | | | | | Change-Id: I3ab32996b4b6603fd7d66eee5b3bfd795b79eee1 Reviewed-on: http://gerrit.rockbox.org/1049 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Marcin Bukat <marcin.bukat@gmail.com>
* regs-atj213x.xml upadteMarcin Bukat2014-11-18
| | | | Change-Id: Ia34dcf651e68ea66baebdeb8c056db86799ea33c
* hwstub/qeditor: add support for atomic read/writesMarcin Bukat2014-11-18
| | | | | | | | | | 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
* regtools: ATJ213x description fileMarcin Bukat2014-11-06
| | | | Change-Id: I5b4d29e0808c57e252f5b6c3b9ba26a52c1bd112
* regtools/socdesc: fix redAmaury Pouly2014-10-08
| | | | Change-Id: If40c52168eb5cd2d194c90c3f65263d2b9da0451
* regtools: reg-rk27xx.xml description file rework and cleanupMarcin Bukat2014-09-19
| | | | Change-Id: I0a2e45eb1b4aa03122382cc93bbc0c292b3249be
* qeditor: Implement clock analyzer for rk27xxMarcin Bukat2014-09-19
| | | | | | Change-Id: Ib8f53d32120893b6c1054299ed434a6650a0d7c2 Reviewed-on: http://gerrit.rockbox.org/971 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
* qeditor: rework modified indicator, register tab names depend on contentAmaury Pouly2014-09-19
| | | | | | | | | | | | 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: http://gerrit.rockbox.org/979 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: implement usb device list refresh (if supported)Amaury Pouly2014-09-19
| | | | | | Change-Id: Iaf05cad0e057f767dcde963d194027b2e290dbea Reviewed-on: http://gerrit.rockbox.org/978 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: fix UI to update register/analyser view on each tree/list clickAmaury Pouly2014-09-19
| | | | | | Change-Id: Idaceb7ffaf33c2184a43353dd9d7dee20ac807a9 Reviewed-on: http://gerrit.rockbox.org/972 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: fix horrible out of bound bugAmaury Pouly2014-09-19
| | | | | | Change-Id: I1b34b1cd7be83d90e38559e386d0c6c64797b707 Reviewed-on: http://gerrit.rockbox.org/977 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: when switching type tab, automagically switch view, implement reloadAmaury Pouly2014-09-19
| | | | | | Change-Id: I7360af3b5dd7380151732687d6d8de3dbd503f20 Reviewed-on: http://gerrit.rockbox.org/976 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: avoid memory leak in RegTabAmaury Pouly2014-09-19
| | | | | | Change-Id: Ib7cd87b66c0ceb3d3ff93714709a43e2a97ce79a Reviewed-on: http://gerrit.rockbox.org/975 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: move backend selector to its own class, that's cleanerAmaury Pouly2014-09-19
| | | | | | Change-Id: I7f3fa66a8f67639b4b64cf9f6acc5fb10e227653 Reviewed-on: http://gerrit.rockbox.org/974 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: initialise libusb once in a static ctorAmaury Pouly2014-09-19
| | | | | | Change-Id: Ic93def2b3633c498c9863b0dada3281853be8c6c Reviewed-on: http://gerrit.rockbox.org/973 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtoools: Enhance rk27xx description fileMarcin Bukat2014-09-18
| | | | Change-Id: If37551757188d98bcb27f7f469c11cf89bf64f62
* regtools/soc_desc: fix libxml2 misinitAmaury Pouly2014-09-16
| | | | | | | | | | 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: http://gerrit.rockbox.org/966 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* rk27xx: Fill UDC block description in regs-rk27xx.xmlMarcin Bukat2014-09-15
| | | | Change-Id: Ia44169bda8f1558c1cbd4c8c0d2d3aaee262c991
* qeditor: add soc panel, to display soc informationAmaury Pouly2014-09-07
| | | | Change-Id: Ie442b82d96fb150c7466f1a274240f9b111fd91e
* qeditor: use hwstub library function to identify devicesAmaury Pouly2014-09-07
| | | | | | The new protocol is interface based, so matching PID:VID is not sufficient Change-Id: I27983a9c3b7db01b8e63b41e885f86d09c362f60
* Rework reg description file for rk27xxMarcin Bukat2014-06-15
| | | | Change-Id: I3fc1c6c70c828dca285479eaa168328a2a8fdf2c
* regtools: add new reg dumps from various targetsAmaury Pouly2014-05-25
| | | | Change-Id: I289f03a8404c6aa8ec2ff94a8a0a3118fd3c7456
* qeditor: on Windows it’s not impossible to create a file with AUXDmitry Gamza2014-05-12
| | | | | | Change-Id: Ic7ef01328eccbed4afddb0a09d2afbb6c1f6a28f Reviewed-on: http://gerrit.rockbox.org/811 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: many enhancementAmaury Pouly2014-05-11
| | | | | | | | | | 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
* regtools: headergen can now output the description in the headersAmaury Pouly2014-05-11
| | | | | | This is useful to provide some documentation in the code. Change-Id: Ib440363d82c47c36fffb9567a2e7f374eaaa5cbc
* regtools: make qeditor aware of PPAmaury Pouly2014-05-11
| | | | Change-Id: I3b4fa625499aa66bb5617971445fa3c1c209134e
* qeditor: add support for deletion of itemsAmaury Pouly2014-05-11
| | | | Change-Id: I886e15585bd3bfed3303e4b845cd8960a9461277
* qeditor: fix includeAmaury Pouly2014-05-11
| | | | Change-Id: Ie6013be29729267294c13fd4e86edad3904aa114
* regtools: normalise description files, and remove obsolete file. No logical ↵Amaury Pouly2014-05-01
| | | | | | | | change. Files were generated using utils/regtools/tester in "write" mode. Change-Id: Ib391b8dbb5ec84eb821e0d0a3699d306414f2aa1
* regtools: fix makefilesAmaury Pouly2014-05-01
| | | | Change-Id: Ib69aac4e7510c99398130467b7fe0f10fc4897f7
* regtools: completely rework qeditor, improve soc desc library and toolsAmaury Pouly2014-05-01
| | | | | | | | | | 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
* regtools: update soc desc parser/header to include desc fieldsAmaury Pouly2014-05-01
| | | | Change-Id: I32374784d17f4352905f15e404df23b01338235b
* regtools: fix headergen variadic macro generationAmaury Pouly2014-02-18
| | | | Change-Id: I5e2439e5dcbeaaafda75c6ea457e53ee1ba26463
* regtools: Add rk27xx register description fileMarcin Bukat2014-02-13
| | | | Change-Id: I27101876d031cbcbb00e741ea742a6f64a7baad7
* regtools/qeditor: fix crash when hwstub device fails to openAmaury Pouly2014-02-13
| | | | Change-Id: Ica2fd201f2ae8ee63b1ae81f27433c841d2f22cd
* Fix redAmaury Pouly2014-02-12
| | | | Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
* regtools/qeditor: implement UI code to write registersAmaury Pouly2014-02-10
| | | | | | | | | | 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
* regtools/qeditor: enhance backend write with write mode (SCT)Amaury Pouly2014-02-10
| | | | Change-Id: I723bce7a60fb08c1d1d5f894a225c36bc1ba4394
* regtools/qeditor: clean-upAmaury Pouly2014-02-10
| | | | | | | Free the backend when closing a tab to release some memory. Implement about dialogs. Change-Id: Ic8c500a23d38e6c3dd4de6a4ba862012925968be
* regtools/qeditor: prepare support for register writingAmaury Pouly2014-02-10
| | | | Change-Id: Ifef36a3ddb1604db63ec974da2d6a77a5540ff42
* regtools/qeditor: rewrite soc handlingAmaury Pouly2014-02-10
| | | | | | | | | 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
* hwstub/regtools/qeditor: put soc descriptors in a list instead of a vectorAmaury Pouly2014-02-10
| | | | | | | 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
* utils/regtools: slight rework of tab management in qeditorAmaury Pouly2014-02-10
| | | | Change-Id: Iaf41defb79bb76010f3ff5269c28e4bad991ebc3
* utils/regtools: make qeditor able to poke directly at a hwstub deviceAmaury Pouly2014-02-10
| | | | | | | | | | | | | | | 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
* regtools/qeditor: always open a register tab at initAmaury Pouly2013-12-24
| | | | Change-Id: I47a1413ca648c7166571e6b0ba88c7ebb5ce86a8
* regtools: update STMP3600 descriptio (fix EMI block)Amaury Pouly2013-12-06
| | | | Change-Id: I654e3210c1050e3bd559c9e9b29707a6341b111b
* regtools: update xml format documentationAmaury Pouly2013-12-02
| | | | | | Change-Id: I7e293532983f350a6f7cd9c7bc2bc6633c8fd3f2 Reviewed-on: http://gerrit.rockbox.org/671 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtools: add shortcut notation for simple register in the desc filesAmaury Pouly2013-11-26
| | | | | | Change-Id: I2745287844ad0a47dd41ba4dae5e1f7218ae5814 Reviewed-on: http://gerrit.rockbox.org/679 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtools/qeditor: fix urlAmaury Pouly2013-11-25
| | | | Change-Id: I9783ff809c69bb5617b2048d1e11374cd8f680ab
* utils/regtools/qeditor: fix compilation by avoiding g++ specific syntaxAmaury Pouly2013-11-25
| | | | Change-Id: Ie3d36c6c235a5fd70ffc51552fae3392a015beb0