summaryrefslogtreecommitdiffstats
path: root/drivers/bootcount/Kconfig
Commit message (Collapse)AuthorAgeFilesLines
* bootcount: add a DM SPI flash backing store for bootcountSebastian Reichel2020-11-011-0/+10
| | | | | | | This driver allows to use SPI flash as backing store for boot counter values with DM enabled. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
* bootcount_ext: Add Ext4 build dependencyFrédéric Danis2020-06-021-0/+2
| | | | | | | | This config option depends on EXT4 support. If Ext4 write capability is not selected, it generate write error messages and is unable to maintain boot counter. Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
* bootcounter: add DM support for memory based bootcounterHeiko Schocher2020-03-161-0/+7
| | | | | | | | | | | add DM/DTS support for the memory based bootcounter in drivers/bootcount/bootcount.c. Let the old implementation in, so boards which have not yet convert to DM/DTS do not break. Signed-off-by: Heiko Schocher <hs@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
* bootcount: add a DM i2c eeprom backing store for bootcountRobert Beckett2020-01-101-0/+10
| | | | | | | This driver allows the use of i2c eeprom device or partition as backing store for boot counter values with DM enabled. Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
* bootcount: add a DM RTC backing store for bootcountPhilipp Tomsich2018-12-101-0/+20
| | | | | | | | | | | | | This implements a driver using a RTC-based backing store for the DM bootcount implementation. The node configuring this feature will be compatible with 'u-boot,bootcount-rtc' and the underlying RTC device shall be reference through the property 'rtc'. An offset into the RTC device's register space can be provided through the 'offset' property. Tested on a RK3399-Q7 on a Flamingo carrier board using the SRAM area of the carrier board's RV3029 RTC. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
* bootcount: add uclass for bootcountPhilipp Tomsich2018-12-101-0/+8
| | | | | | | | | | | | | | | | | | | The original bootcount methods do not provide an interface to DM and rely on a static configuration for I2C devices (e.g. bus, chip-addr, etc. are configured through defines statically). On a modern system that exposes multiple devices in a DTS-configurable way, this is less than optimal and a interface to DM-based devices will be desirable. This adds a simple driver that is DM-aware and configurable via DTS. If ambiguous (i.e. multiple bootcount-devices are present) the /chosen/u-boot,bootcount-device property can be used to select one bootcount device. Initially, this provides support for the following DM devices: * RTC devices Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
* bootcount: Make bootcount magic configurableMarek Vasut2018-10-191-0/+6
| | | | | | | | | Add new Kconfig option, SYS_BOOTCOUNT_MAGIC, to select the boot counter magic word. This can be useful ie. in case the entire boot counter register is not usable. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com>
* Add BOOTCOUNT_BOOTLIMIT to set reboot limitAlex Kiernan2018-08-171-0/+8
| | | | | | Add ability to set environment bootlimit from Kconfig Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
* Migrate CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSCAlex Kiernan2018-04-061-0/+1
| | | | | | This converts CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC to Kconfig Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
* bootcount: Migrate CONFIG_SYS_BOOTCOUNT_ADDRTom Rini2018-02-251-2/+4
| | | | | | | | | | | | | | Migrate the users of CONFIG_SYS_BOOTCOUNT_ADDR to Kconfig. We can provide a default for BOOTCOUNT_AM33XX as that's a specific part of the RTC in use. We can also provide a default for ARCH_LS1043A and ARCH_LS1021A as they had been previously calculated and their symbols are in Kconfig. In the case of other QE-enabled platforms, they are not so we must update the relevant defconfig files. The previous default only applied in some cases, even on a specific SoC family. Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* Migrate CONFIG_BOOTCOUNT_ALEN to KconfigAlex Kiernan2018-02-241-1/+8
| | | | | Convert CONFIG_BOOTCOUNT_ALEN to Kconfig Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
* Migrate generic bootcount to KconfigAlex Kiernan2018-02-241-0/+11
| | | | | | | | Make generate boot counter selected in the same way as other boot count drivers Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
* Integrate AT91 bootcount driverAlex Kiernan2018-02-241-0/+5
| | | | | | | Integrate Boot counter for Atmel AT91SAM9XE into Kconfig Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
* Convert CONFIG_BOOTCOUNT_I2C to KconfigAlex Kiernan2018-02-241-0/+9
| | | | | | | | This converts the following to Kconfig: CONFIG_BOOTCOUNT_I2C Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
* Convert CONFIG_BOOTCOUNT_RAM to KconfigAlex Kiernan2018-02-241-0/+6
| | | | | | | | This converts the following to Kconfig: CONFIG_BOOTCOUNT_RAM Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
* Convert CONFIG_BOOTCOUNT_ENV to KconfigAlex Kiernan2018-02-241-0/+12
| | | | | | | | This converts the following to Kconfig: CONFIG_BOOTCOUNT_ENV Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
* Convert CONFIG_BOOTCOUNT_AM33XX to KconfigAlex Kiernan2018-02-241-0/+9
| | | | | | | | | | This converts the following to Kconfig: CONFIG_BOOTCOUNT_AM33XX Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Acked-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
* Prepare for multiple bootcount driversAlex Kiernan2018-02-241-14/+11
| | | | | Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
* Merge CONFIG_BOOTCOUNT and CONFIG_BOOTCOUNT_LIMITAlex Kiernan2018-02-241-8/+1
| | | | | | | | | CONFIG_BOOTCOUNT was only used in mx53ppd, merge it with CONFIG_BOOTCOUNT_LIMIT Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Ian Ray <ian.ray@ge.com>
* Convert CONFIG_SYS_BOOTCOUNT_SINGLEWORD to KconfigLukasz Majewski2018-02-151-0/+6
| | | | | | | | | This converts the following to Kconfig: CONFIG_SYS_BOOTCOUNT_SINGLEWORD Signed-off-by: Lukasz Majewski <lukma@denx.de> Tested-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Ian Ray <ian.ray@ge.com>
* Convert CONFIG_BOOTCOUNT_LIMIT to KconfigLukasz Majewski2018-02-151-0/+6
| | | | | | | | | | This converts the following to Kconfig: CONFIG_BOOTCOUNT_LIMIT Signed-off-by: Lukasz Majewski <lukma@denx.de> Tested-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Acked-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
* bootcount: add support for bootcounter on EXT filesystemIan Ray2017-11-201-0/+58
Add support for bootcounter on an EXT filesystem. Sync configuration whitelist. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>