From 1487e6b9ad2ec0fafb0a2a35c921a33fb6c37fec Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 10 Mar 2015 15:54:26 +0100 Subject: state: add framework for persistent state handling This patch adds a framework to describe, access, store and restore a set of variables. A state variable set can be fully described in a devicetree node. This node could be part of the regular devicetree blob or it could be an extra devicetree solely for the state. The state variable set contains variables of different types and a place to store the variable set. For more information see: Documentation/devicetree/bindings/barebox/barebox,state.rst Signed-off-by: Sascha Hauer Signed-off-by: Jan Luebbe Signed-off-by: Marc Kleine-Budde Signed-off-by: Sascha Hauer --- common/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/Kconfig') diff --git a/common/Kconfig b/common/Kconfig index 258a9757c9..c6923f62d8 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -698,6 +698,13 @@ config BAREBOXCRC32_TARGET config POLLER bool "generic polling infrastructure" +config STATE + bool "generic state infrastructure" + depends on OF_BAREBOX_DRIVERS + select ENVIRONMENT_VARIABLES + select OFTREE + select PARAMETER + config RESET_SOURCE bool "detect Reset cause" depends on GLOBALVAR -- cgit v1.2.3