mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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>
This commit is contained in:
parent
ef2b6db066
commit
f04d3c518a
2 changed files with 26 additions and 2 deletions
|
|
@ -61,12 +61,25 @@ The following properties are defined:
|
|||
- "name" (mandatory,string): the mnemonic of the register.
|
||||
- "sct" (optional,"yes" or "no"): STMP specific attribute to specify the existence
|
||||
of the SCT variants of this register.
|
||||
As a shortcut, in the case the register has a single address, one can add one more
|
||||
property:
|
||||
- "addr" (optional,integer): base address of this instance of the register.
|
||||
|
||||
Example:
|
||||
<reg name="TIMCTRLn" sct="yes">
|
||||
<!-- reg desc -->
|
||||
</reg>
|
||||
|
||||
The address shortcut has the following standard translation:
|
||||
<reg name="GPIO_PADR" addr="0x00">
|
||||
<!-- bla -->
|
||||
</reg>
|
||||
is equivalent to:
|
||||
<reg name="GPIO_PADR">
|
||||
<addr name="GPIO_PADR" addr="0x00">
|
||||
<!-- bla -->
|
||||
</reg>
|
||||
|
||||
Element: soc.dev.reg.addr
|
||||
-------------------------
|
||||
Each device can have one or more addresses associated with it. Each address
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue