From f04d3c518a3c26def9a003a108bec254499c7c90 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 25 Nov 2013 23:22:28 +0000 Subject: 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 --- utils/regtools/desc/XML.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'utils/regtools/desc') 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: - "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: +The address shortcut has the following standard translation: + + + +is equivalent to: + + + + + Element: soc.dev.reg.addr ------------------------- Each device can have one or more addresses associated with it. Each address -- cgit v1.2.3