aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorDario Binacchi <dariobin@libero.it>2020-03-29 18:04:41 +0200
committerSimon Glass <sjg@chromium.org>2020-04-16 08:07:58 -0600
commit4bb7075c830c6f4e4512fe0277ff1f08c5a9e084 (patch)
treea1d8d9d36db2c061edd17dadddfed57a4188470e /arch/sandbox
parent70573c6c46be96d2e60497d8484b9afb119da8c1 (diff)
downloadu-boot-4bb7075c830c6f4e4512fe0277ff1f08c5a9e084.zip
u-boot-4bb7075c830c6f4e4512fe0277ff1f08c5a9e084.tar.gz
u-boot-4bb7075c830c6f4e4512fe0277ff1f08c5a9e084.tar.bz2
dm: core: support reading a single indexed u32 value
The patch adds helper functions to allow reading a single indexed u32 value from a device-tree property containing multiple u32 values, that is an array of integers. Signed-off-by: Dario Binacchi <dariobin@libero.it> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/test.dts1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 8c6a48d..1973623 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -94,6 +94,7 @@
int-value = <1234>;
uint-value = <(-1234)>;
int64-value = /bits/ 64 <0x1111222233334444>;
+ int-array = <5678 9123 4567>;
interrupts-extended = <&irq 3 0>;
};