diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-11-25 23:22:28 +0000 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-11-26 00:29:48 +0100 |
commit | f04d3c518a3c26def9a003a108bec254499c7c90 (patch) | |
tree | a32a8022ad9c7d6de94bc031dcbd0e12278a1e57 /utils/regtools/desc/XML.txt | |
parent | ef2b6db066dc1b25863887eec0b65dadc8e54bb3 (diff) | |
download | rockbox-f04d3c518a3c26def9a003a108bec254499c7c90.tar.gz rockbox-f04d3c518a3c26def9a003a108bec254499c7c90.zip |
regtools: add shortcut notation for simple register in the desc files
Change-Id: I2745287844ad0a47dd41ba4dae5e1f7218ae5814
Reviewed-on: http://gerrit.rockbox.org/679
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'utils/regtools/desc/XML.txt')
-rw-r--r-- | utils/regtools/desc/XML.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/regtools/desc/XML.txt b/utils/regtools/desc/XML.txt index d4dc73cc64..15164a43b9 100644 --- a/utils/regtools/desc/XML.txt +++ b/utils/regtools/desc/XML.txt | |||
@@ -61,12 +61,25 @@ The following properties are defined: | |||
61 | - "name" (mandatory,string): the mnemonic of the register. | 61 | - "name" (mandatory,string): the mnemonic of the register. |
62 | - "sct" (optional,"yes" or "no"): STMP specific attribute to specify the existence | 62 | - "sct" (optional,"yes" or "no"): STMP specific attribute to specify the existence |
63 | of the SCT variants of this register. | 63 | of the SCT variants of this register. |
64 | As a shortcut, in the case the register has a single address, one can add one more | ||
65 | property: | ||
66 | - "addr" (optional,integer): base address of this instance of the register. | ||
64 | 67 | ||
65 | Example: | 68 | Example: |
66 | <reg name="TIMCTRLn" sct="yes"> | 69 | <reg name="TIMCTRLn" sct="yes"> |
67 | <!-- reg desc --> | 70 | <!-- reg desc --> |
68 | </reg> | 71 | </reg> |
69 | 72 | ||
73 | The address shortcut has the following standard translation: | ||
74 | <reg name="GPIO_PADR" addr="0x00"> | ||
75 | <!-- bla --> | ||
76 | </reg> | ||
77 | is equivalent to: | ||
78 | <reg name="GPIO_PADR"> | ||
79 | <addr name="GPIO_PADR" addr="0x00"> | ||
80 | <!-- bla --> | ||
81 | </reg> | ||
82 | |||
70 | Element: soc.dev.reg.addr | 83 | Element: soc.dev.reg.addr |
71 | ------------------------- | 84 | ------------------------- |
72 | Each device can have one or more addresses associated with it. Each address | 85 | Each device can have one or more addresses associated with it. Each address |