commit | f451e80e639afe95e9e8b6b17dbcf8f0be2f33d4 | [log] [tgz] |
---|---|---|
author | Philip Richard Oberfichtner <pro@denx.de> | Tue Oct 31 08:38:48 2023 +0100 |
committer | Heiko Schocher <hs@denx.de> | Tue Oct 31 09:09:04 2023 +0100 |
tree | 143e1e10e4932c4f3f0d769b242657c958432f14 | |
parent | e63a8403a723c35c354bcea9aaa389c792ee2f64 [diff] |
bootcount: Add driver model I2C driver This adds a generic I2C bootcounter adhering to driver model to replace the previously removed legacy implementation. There is no change in functionality, it can be used on any I2C device. The device tree configuration may look like this for example: bootcount { compatible = "u-boot,bootcount-i2c"; i2cbcdev = <&i2c_rtc>; offset = <0x11>; }; Signed-off-by: Philip Richard Oberfichtner <pro@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>