Skip to content
Commit 5b6ee512 authored by Philip Richard Oberfichtner's avatar Philip Richard Oberfichtner Committed by Heiko Schocher
Browse files

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: default avatarPhilip Richard Oberfichtner <pro@denx.de>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent b4835527
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment