[PATCH v2 0/3] Variable sized cell support
Anton Staaf
robotboy at chromium.org
Fri Sep 23 04:25:24 EST 2011
This patch set adds, tests, and documents support for variable sized cells in
cell arrays. The new syntax is:
property = /size/ [8|16|32|64] <0x00 .... 0x12>;
So cell arrays of 8, 16, 32, or 64-bits can now be created. No padding is
done on the resulting cell array. So if three 8-bit cells are specified the
resulting property will contain three bytes.
Changes in v2:
- sized_data renamed to celllist
- celllist definition moved to dtc-parser.y
- celllist non-terminal renamed to celllistprefix
- references always appended as -1 masked to the size of the cell
- smaller test values derived from TEST_VALUE_1
- data_append_literal renamed to data_append_integer
- be_ removed from values in data_append_integer
- len renamed to bits in data_append_integer
Anton Staaf (3):
libfdt: Add fdt16_to_cpu utility function
dtc: Add data_append_integer function
dtc: Add support for variable sized cells
Documentation/dts-format.txt | 18 +++++++-
data.c | 33 ++++++++++++++++
dtc-lexer.l | 6 +++
dtc-parser.y | 67 ++++++++++++++++++++++-----------
dtc.h | 1 +
libfdt/libfdt_env.h | 6 +++
tests/.gitignore | 1 +
tests/Makefile.tests | 1 +
tests/run_tests.sh | 3 +
tests/sized_cells.c | 84 ++++++++++++++++++++++++++++++++++++++++++
tests/sized_cells.dts | 11 +++++
11 files changed, 206 insertions(+), 25 deletions(-)
create mode 100644 tests/sized_cells.c
create mode 100644 tests/sized_cells.dts
--
1.7.3.1
More information about the devicetree-discuss
mailing list