mirror of
https://github.com/dgibson/dtc.git
synced 2026-01-22 01:30:34 -05:00
Elements of size 8, 16, 32, and 64 bits are supported. The new
/bits/ syntax was selected so as to not pollute the reserved
keyword space with uint8/uint16/... type names.
With this patch the following property assignment:
property = /bits/ 16 <0x1234 0x5678 0x0 0xffff>;
is equivalent to:
property = <0x12345678 0x0000ffff>;
It is now also possible to directly specify a 64 bit literal in a
cell list, also known as an array using:
property = /bits/ 64 <0xdeadbeef00000000>;
It is an error to attempt to store a literal into an element that is
too small to hold the literal, and the compiler will generate an
error when it detects this. For instance:
property = /bits/ 8 <256>;
Will fail to compile. It is also an error to attempt to place a
reference in a non 32-bit element.
The documentation has been changed to reflect that the cell list
is now an array of elements that can be of sizes other than the
default 32-bit cell size.
The sized_cells test tests the creation and access of 8, 16, 32,
and 64-bit sized elements. It also tests that the creation of two
properties, one with 16 bit elements and one with 32 bit elements
result in the same property contents.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
51 lines
753 B
Text
51 lines
753 B
Text
*.dtb
|
|
*.dtb.test.dts
|
|
*.dts.test.s
|
|
/add_subnode_with_nops
|
|
/asm_tree_dump
|
|
/boot-cpuid
|
|
/char_literal
|
|
/del_node
|
|
/del_property
|
|
/dtbs_equal_ordered
|
|
/dumptrees
|
|
/extra-terminating-null
|
|
/find_property
|
|
/get_alias
|
|
/get_mem_rsv
|
|
/get_name
|
|
/get_path
|
|
/get_phandle
|
|
/getprop
|
|
/incbin
|
|
/mangle-layout
|
|
/move_and_save
|
|
/node_check_compatible
|
|
/node_offset_by_compatible
|
|
/node_offset_by_phandle
|
|
/node_offset_by_prop_value
|
|
/nop_node
|
|
/nop_property
|
|
/nopulate
|
|
/notfound
|
|
/open_pack
|
|
/parent_offset
|
|
/path-references
|
|
/path_offset
|
|
/path_offset_aliases
|
|
/phandle_format
|
|
/references
|
|
/root_node
|
|
/rw_tree1
|
|
/set_name
|
|
/setprop
|
|
/setprop_inplace
|
|
/sized_cells
|
|
/string_escapes
|
|
/subnode_offset
|
|
/supernode_atdepth_offset
|
|
/sw_tree1
|
|
/truncated_property
|
|
/value-labels
|
|
/dtb_reverse
|
|
/dtbs_equal_unordered
|