Browse Source
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>main
Simon Glass
7 years ago
committed by
David Gibson
4 changed files with 43 additions and 3 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
/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>; |
||||
}; |
Loading…
Reference in new issue