10 Jan, 2020
1 commit
-
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
03 Dec, 2019
1 commit
-
These functions are CPU-related and do not use driver model. Move them to
cpu_func.hSigned-off-by: Simon Glass
Reviewed-by: Daniel Schwierzeck
Reviewed-by: Tom Rini
12 Aug, 2019
2 commits
-
This header file is now only used by files that access internal
environment features. Drop it from various places where it is not needed.Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move env_set_ulong() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger
10 Dec, 2018
2 commits
-
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
-
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 devicesSigned-off-by: Philipp Tomsich
Tested-by: Klaus Goger
20 Oct, 2018
1 commit
-
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
Cc: Tom Rini
18 Aug, 2018
1 commit
-
Add ability to set environment bootlimit from Kconfig
Signed-off-by: Alex Kiernan
04 Aug, 2018
1 commit
-
1947c2d2a0 introduces cache line flushes for the bootcounter, but if
the start address is not aligned then the flush causes warnings of
the form:CACHE: Misaligned operation at range [4030b7fc, 4030b83c]
Align both the start and end of the buffer (possibly crossing multiple
lines).Fixes: 1947c2d2a0 ("bootcount: flush after storing the bootcounter")
Signed-off-by: Alex Kiernan
Acked-by: Stefano Babic
23 Jul, 2018
1 commit
-
If the bootcounter address is in a cached memory,
a flush of dcache must occur after updateing the bootcounter.Issue found on i.MX6 where bootcounter is put into the internal
(cached) IRAM.Signed-off-by: Stefano Babic
07 May, 2018
1 commit
-
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.Signed-off-by: Tom Rini
07 Apr, 2018
1 commit
-
This converts CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC to Kconfig
Signed-off-by: Alex Kiernan
26 Feb, 2018
1 commit
-
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
Reviewed-by: Alex Kiernan
Signed-off-by: Tom Rini
24 Feb, 2018
9 commits
-
Convert CONFIG_BOOTCOUNT_ALEN to Kconfig
Signed-off-by: Alex Kiernan -
Make generate boot counter selected in the same way as other boot count
driversReviewed-by: Lukasz Majewski
Signed-off-by: Alex Kiernan -
Integrate Boot counter for Atmel AT91SAM9XE into Kconfig
Reviewed-by: Lukasz Majewski
Signed-off-by: Alex Kiernan -
This converts the following to Kconfig:
CONFIG_BOOTCOUNT_I2CSigned-off-by: Alex Kiernan
Reviewed-by: Lukasz Majewski -
This converts the following to Kconfig:
CONFIG_BOOTCOUNT_RAMSigned-off-by: Alex Kiernan
Reviewed-by: Lukasz Majewski -
This converts the following to Kconfig:
CONFIG_BOOTCOUNT_ENVSigned-off-by: Alex Kiernan
Reviewed-by: Lukasz Majewski -
This converts the following to Kconfig:
CONFIG_BOOTCOUNT_AM33XXReviewed-by: Lukasz Majewski
Reviewed-by: Hannes Schmelzer
Acked-by: Hannes Schmelzer
Signed-off-by: Alex Kiernan -
Reviewed-by: Lukasz Majewski
Signed-off-by: Alex Kiernan -
CONFIG_BOOTCOUNT was only used in mx53ppd, merge it with
CONFIG_BOOTCOUNT_LIMITSigned-off-by: Alex Kiernan
Reviewed-by: Lukasz Majewski
Reviewed-by: Ian Ray
15 Feb, 2018
2 commits
-
This converts the following to Kconfig:
CONFIG_SYS_BOOTCOUNT_SINGLEWORDSigned-off-by: Lukasz Majewski
Tested-by: Alex Kiernan
Reviewed-by: Ian Ray -
This converts the following to Kconfig:
CONFIG_BOOTCOUNT_LIMITSigned-off-by: Lukasz Majewski
Tested-by: Alex Kiernan
Reviewed-by: Hannes Schmelzer
Acked-by: Hannes Schmelzer
20 Nov, 2017
1 commit
-
Add support for bootcounter on an EXT filesystem.
Sync configuration whitelist.Signed-off-by: Ian Ray
Signed-off-by: Martyn Welch
13 Sep, 2017
1 commit
-
Signed-off-by: Tomas Melin
16 Aug, 2017
3 commits
-
We are now using an env_ prefix for environment functions. Rename these
for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
We are now using an env_ prefix for environment functions. Rename these
commonly used functions, for consistency. Also add function comments in
common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
Use the env_save() function directly now that there is only one
implementation of saveenv().Signed-off-by: Simon Glass
Reviewed-by: Wolfgang Denk
Reviewed-by: Tom Rini
04 Jul, 2017
1 commit
-
There was for long time no activity in the 4xx area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in 4xx,
so remove it.Signed-off-by: Heiko Schocher
16 Jun, 2017
1 commit
-
There was for long time no activity in the mpx5xxx area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in mpc5xxx,
so remove it.Signed-off-by: Heiko Schocher
12 Jun, 2017
2 commits
-
There was for long time no activity in the 8260 area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in 8260,
so remove it.Signed-off-by: Heiko Schocher
-
There was for long time no activity in the 8xx area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in 8xx,
so remove it (with a heavy heart, knowing that I remove
here the root of U-Boot).Signed-off-by: Heiko Schocher
06 Apr, 2017
1 commit
-
The architecture is currently unmaintained, remove.
Cc: Benjamin Matthews
Cc: Chong Huang
Cc: Dimitar Penev
Cc: Haitao Zhang
Cc: I-SYST Micromodule
Cc: M.Hasewinkel (MHA)
Cc: Marek Vasut
Cc: Martin Strubel
Cc: Peter Meerwald
Cc: Sonic Zhang
Cc: Valentin Yakovenkov
Cc: Wojtek Skulski
Cc: Wojtek Skulski
Signed-off-by: Tom Rini
29 Nov, 2016
1 commit
-
This patch fixes the warning about misaligned cache on Armada XP:
CACHE: Misaligned operation at range [7ffff000, 7fffffac]
Signed-off-by: Stefan Roese
Cc: Valentin Longchamp
Reviewed-by: Tom Rini
12 Apr, 2016
1 commit
-
This patch adds a call to flush_dcache_range() to bootcount_store() to
make sure, that the bootcounter data (including the patterns) is
written to memory. Without this, platforms with dcache enabled may not
have the bootcounter updated upon reset.Signed-off-by: Stefan Roese
Cc: Valentin Longchamp
08 Jan, 2016
1 commit
-
Correct mismatched comment on #endif to agree with its #if defined().
Also add some missing #endif comments for consistency, take out
extraneous blank lines for readability.rday
23 Jul, 2014
1 commit
-
ls1021 is arm-core and supports qe too.
Move immap_qe.h into common directory for both arm and powerpc.Signed-off-by: Zhao Qiang
Reviewed-by: York Sun
20 Feb, 2014
1 commit
-
add support for bootcounter on an i2c device. And add a
README for all bootcounter options.Signed-off-by: Heiko Schocher
12 Nov, 2013
1 commit
-
Some am33xx boards may not use the RTC block for bootcount (as it may
not be wired up for the board) and use some other facility. So add
another symbol for the bootcount driver for the IP block.Acked-by: Heiko Schocher
Signed-off-by: Tom Rini