3c374d46ac
Extend the Properties class with some functions to read a single integer property. Add a new getprop_obj() function to return a Property object instead of the raw data. This suggested approach can be extended to handle other types, as well as arrays. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
11 lines
264 B
Text
11 lines
264 B
Text
/dts-v1/;
|
|
|
|
/ {
|
|
compatible = "test_props";
|
|
prop-hex32 = <0xdeadbeef>;
|
|
prop-uint32 = <123>;
|
|
prop-int32 = <0xfffffffe>;
|
|
prop-hex64 = /bits/ 64 <0xdeadbeef01abcdef>;
|
|
prop-uint64 = /bits/ 64 <9223372036854775807>;
|
|
prop-int64 = /bits/ 64 <0xfffffffffffffffe>;
|
|
};
|