dtc: Support character literals in cell lists

With this patch the following property assignment:

    property = <0x12345678 'a' '\r' 100>;

is equivalent to:

    property = <0x12345678 0x00000061 0x0000000D 0x00000064>

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Anton Staaf 2011-09-09 12:16:30 -07:00 committed by Jon Loeliger
parent 83df28bd39
commit a4ea2fa951
9 changed files with 107 additions and 1 deletions

View file

@ -33,7 +33,7 @@ Property values may be defined as an array of 32-bit integer cells, as
NUL-terminated strings, as bytestrings or a combination of these.
* Arrays of cells are represented by angle brackets surrounding a
space separated list of C-style integers
space separated list of C-style integers or character literals.
e.g. interrupts = <17 0xc>;