summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2018-12-14 23:14:29 +0300
committerTom Rini <trini@konsulko.com>2019-01-15 01:41:23 +0300
commit6f2d59cb7f16bf5bc169c87fe87de402d9fb8bf8 (patch)
treec7d8aa9bf4a212aa8bf94803e3ab40268b3a405e /arch
parentd3689267f92c5956e09cc7d1baa4700141662bff (diff)
downloadu-boot-6f2d59cb7f16bf5bc169c87fe87de402d9fb8bf8.tar.xz
test: bootcount: add bootcount-uclass test
Add a test for the bootcount uclass, which uses the RTC bootcount backend (i.e. drivers/bootcount/rtc.c is implictly also tested). Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/dts/test.dts6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 3790b4c520..1d011ded7c 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -315,6 +315,12 @@
};
};
+ bootcount@0 {
+ compatible = "u-boot,bootcount-rtc";
+ rtc = <&rtc_1>;
+ offset = <0x13>;
+ };
+
adc@0 {
compatible = "sandbox,adc";
vdd-supply = <&buck2>;