summaryrefslogtreecommitdiff
path: root/utils/regtools/desc/XML.txt
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-11-25 23:22:28 +0000
committerAmaury Pouly <amaury.pouly@gmail.com>2013-11-26 00:29:48 +0100
commitf04d3c518a3c26def9a003a108bec254499c7c90 (patch)
treea32a8022ad9c7d6de94bc031dcbd0e12278a1e57 /utils/regtools/desc/XML.txt
parentef2b6db066dc1b25863887eec0b65dadc8e54bb3 (diff)
downloadrockbox-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.txt13
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.
64As a shortcut, in the case the register has a single address, one can add one more
65property:
66- "addr" (optional,integer): base address of this instance of the register.
64 67
65Example: 68Example:
66<reg name="TIMCTRLn" sct="yes"> 69<reg name="TIMCTRLn" sct="yes">
67<!-- reg desc --> 70<!-- reg desc -->
68</reg> 71</reg>
69 72
73The address shortcut has the following standard translation:
74<reg name="GPIO_PADR" addr="0x00">
75<!-- bla -->
76</reg>
77is equivalent to:
78<reg name="GPIO_PADR">
79<addr name="GPIO_PADR" addr="0x00">
80<!-- bla -->
81</reg>
82
70Element: soc.dev.reg.addr 83Element: soc.dev.reg.addr
71------------------------- 84-------------------------
72Each device can have one or more addresses associated with it. Each address 85Each device can have one or more addresses associated with it. Each address