mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 10:18:38 +00:00
1d06dc6d16
Add bootcount node, linking to i2c eeprom "bootcount" partitions for storage. Enable i2c eeprom bootcount backend storage. Enable bootcount command and use it for failbootcmd. Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
53 lines
649 B
Text
53 lines
649 B
Text
// SPDX-License-Identifier: GPL-2.0+ OR X11
|
|
/*
|
|
* Copyright 2019 Collabora Ltd
|
|
* Copyright 2019 General Electric Company
|
|
*/
|
|
|
|
/ {
|
|
wdt-reboot {
|
|
compatible = "wdt-reboot";
|
|
wdt = <&wdog1>;
|
|
};
|
|
|
|
bootcount {
|
|
compatible = "u-boot,bootcount-i2c-eeprom";
|
|
i2c-eeprom = <&bootcount>;
|
|
};
|
|
};
|
|
|
|
&eeprom {
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
|
|
vpd {
|
|
offset = <0>;
|
|
size = <1022>;
|
|
};
|
|
|
|
bootcount: bootcount {
|
|
offset = <1022>;
|
|
size = <2>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&gpio1 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&gpio2 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&gpio3 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&gpio4 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&gpio5 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|