diff options
| author | Philip Richard Oberfichtner <[email protected]> | 2023-10-31 08:38:48 +0100 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2023-10-31 09:09:04 +0100 |
| commit | 5b6ee512ceb8d990e010646c4fe7b8a3633fad68 (patch) | |
| tree | 143e1e10e4932c4f3f0d769b242657c958432f14 /drivers/bootcount/Makefile | |
| parent | b48355277340f156f387c31da5a0b8937643c54f (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 <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'drivers/bootcount/Makefile')
| -rw-r--r-- | drivers/bootcount/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bootcount/Makefile b/drivers/bootcount/Makefile index d6d2389c16a..e7771f5b36d 100644 --- a/drivers/bootcount/Makefile +++ b/drivers/bootcount/Makefile @@ -13,5 +13,6 @@ obj-$(CONFIG_DM_BOOTCOUNT) += bootcount-uclass.o obj-$(CONFIG_DM_BOOTCOUNT_PMIC_PFUZE100) += pmic_pfuze100.o obj-$(CONFIG_DM_BOOTCOUNT_RTC) += rtc.o obj-$(CONFIG_DM_BOOTCOUNT_I2C_EEPROM) += i2c-eeprom.o +obj-$(CONFIG_DM_BOOTCOUNT_I2C) += bootcount_dm_i2c.o obj-$(CONFIG_DM_BOOTCOUNT_SPI_FLASH) += spi-flash.o obj-$(CONFIG_DM_BOOTCOUNT_SYSCON) += bootcount_syscon.o |
