diff options
Diffstat (limited to 'utils/regtools/desc')
-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 |