From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Sat, 10 Feb 2018 11:20:28 +0100 Subject: [U-Boot] [PATCH v1 1/5] bootcount: config: Make the SYS_BOOTCOUNT_ADDR available also for non EXT setups In-Reply-To: <20180210102032.315-1-lukma@denx.de> References: <20180210102032.315-1-lukma@denx.de> Message-ID: <20180210102032.315-2-lukma@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This commit gives the opportunity to reuse the CONFIG_SYS_BOOTCOUNT_ADDR Kconfig entry also for boards, which do not use EXT as a storage for bootcount (i.e. on flash ones). Signed-off-by: Lukasz Majewski --- drivers/bootcount/Kconfig | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig index d82289f57b..1254bb51ca 100644 --- a/drivers/bootcount/Kconfig +++ b/drivers/bootcount/Kconfig @@ -31,6 +31,12 @@ config BOOTCOUNT_EXT Add support for maintaining boot count in a file on an EXT filesystem. +config SYS_BOOTCOUNT_ADDR + hex "RAM address used for reading and writing the boot counter" + default 0x7000A000 + help + Set the address used for reading and writing the boot counter. + if BOOTCOUNT_EXT config SYS_BOOTCOUNT_EXT_INTERFACE @@ -56,13 +62,6 @@ config SYS_BOOTCOUNT_EXT_NAME help Set the filename and path of the file used to store the boot counter. -config SYS_BOOTCOUNT_ADDR - hex "RAM address used for reading and writing the boot counter" - default 0x7000A000 - depends on BOOTCOUNT_EXT - help - Set the address used for reading and writing the boot counter. - endif endif -- 2.11.0