summaryrefslogtreecommitdiffstats
path: root/utils/regtools/lib/soc_desc.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-02-04regtools/soc_desc: fix bug in libraryAmaury Pouly1-1/+1
Because a node ref is at root doesn't make it valid, check that soc is valid otherwise we return garbage. Change-Id: I6e5befc959dc670ab39a87484e87af6d90be7726
2017-01-24regtools: fix normalization procedureAmaury Pouly1-16/+57
The code was not updated when I added support for list and other stuff, and thus it did not properly sort by addresses. Change-Id: Iaed0717b607beedfb2856c020c2a760e7a5667c5
2016-09-21regtools: fix library bug when checking if a reference is valid or notAmaury Pouly1-1/+1
Change-Id: I8adea40d2fa7c1a26f1975d987233249f61af8ef
2016-09-21regtools: rename error_t to err_t to avoid name clashAmaury Pouly1-7/+6
Change-Id: Ib8d34e4f58f3225b1dafc533ce7e1b7867ad053b
2016-04-08regtools: add register access to soc descAmaury Pouly1-2/+39
Registers (and variants) can now specify the type of access supported: - unspecified: for variant means same as register, for register defaults R/W - read/write - read only - write only Backward compatibility is preserved by setting access to unspecified by default. Change-Id: I3e84ae18f962a45db62f996a542d08405d05b895
2016-02-07regtools: make description file parser stricterAmaury Pouly1-2/+48
The parser would simply ignore unknown elements or attributes, which is bad on many levels. Now any unknown tag will trigger a fatal error. Change-Id: I32eead8e96c1567241cf2a565d9e20e62877c14d
2016-02-06regtools: update v2 specification, library and toolsAmaury Pouly1-31/+442
A v2 register description file can now include register variants and instances addresses can now be a list (previously it could only be a stride or a formula). Update the library to deal with that. The convert option of swiss_knife was updated and one incompatible change was introduce: if a v1 device has several addresses, those are converted to a single v2 instance with list (instead of several single instances). This should have been the behaviour from the start. Swiss_knife can now also convert regdumps, in which case it needs to be given both the dump and register description file. Also introduce two register descriptions files (vsoc1000 and vsoc2000) which give more complicated examples of v2 register description files. Change-Id: Id9415b8363269ffaf9216abfc6dd1bd1adbfcf8d
2015-09-11soc_desc: new version of the desc file formatAmaury Pouly1-664/+866
Fix qeditor to use the old soc_desc_v1. Port hwstub_shell to the new description format. Change-Id: I9fefbff534bfaa5c3603bb3dd8307a2b76e88cfc
2014-10-08regtools/socdesc: fix redAmaury Pouly1-0/+1
Change-Id: If40c52168eb5cd2d194c90c3f65263d2b9da0451
2014-09-19qeditor: Implement clock analyzer for rk27xxMarcin Bukat1-1/+0
Change-Id: Ib8f53d32120893b6c1054299ed434a6650a0d7c2 Reviewed-on: http://gerrit.rockbox.org/971 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
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: http://gerrit.rockbox.org/966 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-05-01regtools: completely rework qeditor, improve soc desc library and toolsAmaury Pouly1-7/+693
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 Pouly1-0/+4
Change-Id: I32374784d17f4352905f15e404df23b01338235b
2014-02-12Fix redAmaury Pouly1-2/+2
Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
2014-02-10hwstub/regtools/qeditor: put soc descriptors in a list instead of a vectorAmaury Pouly1-6/+6
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
2013-11-26regtools: add shortcut notation for simple register in the desc filesAmaury Pouly1-2/+13
Change-Id: I2745287844ad0a47dd41ba4dae5e1f7218ae5814 Reviewed-on: http://gerrit.rockbox.org/679 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2013-06-13regtools: modify description format and refactor toolsAmaury Pouly1-0/+268
Change the XML description to unify multi dev/reg in a clean fashion. Move the description parser to its own library. Fix the tester and headergen tools to work with the new format and library. Move the STMP3700/3780 descriptions to the new format (and fixes many errors as well). Drop the hwemulgen tool in favor on the upcoming hwstub tools revamp. Change-Id: I7119a187aab5c8b083cc5228cb1b248ee29f184d