diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2018-12-14 23:14:29 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-15 01:41:23 +0300 |
commit | 6f2d59cb7f16bf5bc169c87fe87de402d9fb8bf8 (patch) | |
tree | c7d8aa9bf4a212aa8bf94803e3ab40268b3a405e /arch | |
parent | d3689267f92c5956e09cc7d1baa4700141662bff (diff) | |
download | u-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.dts | 6 |
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>; |