diff options
| author | Vasileios Amoiridis <[email protected]> | 2024-11-05 14:27:44 +0100 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2024-11-15 14:32:47 +0100 |
| commit | 159dfef2615dcc83acf4e28bbed0387d72066b0c (patch) | |
| tree | 127e1c9ac5c0f1fed91b5d0300abaa1a6ecce97f /drivers/bootcount/Kconfig | |
| parent | 4bd7222c6ba36715c5a4e1f6684bec63489e1acd (diff) | |
drivers: bootcount: Add ZynqMP specific bootcount support
Add native support of the bootcount mechanism in the ZynqMP by
utilising internal PMU registers. The Persistent Global Storage
Registers of the Platform Management Unit can keep their value
during reboot cycles unless there is a POR reset, making them
appropriate for the bootcount mechanism.
Signed-off-by: Vasileios Amoiridis <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'drivers/bootcount/Kconfig')
| -rw-r--r-- | drivers/bootcount/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig index fa6d8e71281..0080d2a165c 100644 --- a/drivers/bootcount/Kconfig +++ b/drivers/bootcount/Kconfig @@ -164,6 +164,13 @@ config DM_BOOTCOUNT_SYSCON Accessing the backend is done using the regmap interface. +config DM_BOOTCOUNT_ZYNQMP + bool "Support ZynqMP PMUFW as a backing store for bootcount" + depends on ARCH_ZYNQMP + help + Enable support for the bootcount API by utilising the Persistent + Global General Storage Register 2 of the PMU. + endmenu endif |
