]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootcount: Add driver model I2C driver
authorPhilip Richard Oberfichtner <pro@denx.de>
Tue, 31 Oct 2023 07:38:48 +0000 (08:38 +0100)
committerHeiko Schocher <hs@denx.de>
Tue, 31 Oct 2023 08:09:04 +0000 (09:09 +0100)
commit5b6ee512ceb8d990e010646c4fe7b8a3633fad68
tree143e1e10e4932c4f3f0d769b242657c958432f14
parentb48355277340f156f387c31da5a0b8937643c54f
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>
drivers/bootcount/Kconfig
drivers/bootcount/Makefile
drivers/bootcount/bootcount_dm_i2c.c [new file with mode: 0644]