Skip to content
Snippets Groups Projects
Commit abcaa6ee authored by Tom Rini's avatar Tom Rini
Browse files

am33xx: Make SoC bootcount driver have its own symbol


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: default avatarHeiko Schocher <hs@denx.de>
Signed-off-by: default avatarTom Rini <trini@ti.com>
parent ebc18afd
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,6 @@ obj-y += bootcount.o ...@@ -6,6 +6,6 @@ obj-y += bootcount.o
obj-$(CONFIG_AT91SAM9XE) += bootcount_at91.o obj-$(CONFIG_AT91SAM9XE) += bootcount_at91.o
obj-$(CONFIG_BLACKFIN) += bootcount_blackfin.o obj-$(CONFIG_BLACKFIN) += bootcount_blackfin.o
obj-$(CONFIG_SOC_DA8XX) += bootcount_davinci.o obj-$(CONFIG_SOC_DA8XX) += bootcount_davinci.o
obj-$(CONFIG_AM33XX) += bootcount_davinci.o obj-$(CONFIG_BOOTCOUNT_AM33XX) += bootcount_davinci.o
obj-$(CONFIG_BOOTCOUNT_RAM) += bootcount_ram.o obj-$(CONFIG_BOOTCOUNT_RAM) += bootcount_ram.o
obj-$(CONFIG_BOOTCOUNT_ENV) += bootcount_env.o obj-$(CONFIG_BOOTCOUNT_ENV) += bootcount_env.o
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
* (C) Copyright 2011 * (C) Copyright 2011
* Heiko Schocher, DENX Software Engineering, hs@denx.de. * Heiko Schocher, DENX Software Engineering, hs@denx.de.
* *
* A bootcount driver for the RTC IP block found on many TI platforms.
* This requires the RTC clocks, etc, to be enabled prior to use and
* not all boards with this IP block on it will have the RTC in use.
*
* SPDX-License-Identifier: GPL-2.0+ * SPDX-License-Identifier: GPL-2.0+
*/ */
......
...@@ -199,6 +199,10 @@ ...@@ -199,6 +199,10 @@
#define CONFIG_SPL_POWER_SUPPORT #define CONFIG_SPL_POWER_SUPPORT
#define CONFIG_SPL_YMODEM_SUPPORT #define CONFIG_SPL_YMODEM_SUPPORT
/* Bootcount using the RTC block */
#define CONFIG_BOOTCOUNT_LIMIT
#define CONFIG_BOOTCOUNT_AM33XX
/* CPSW support */ /* CPSW support */
#define CONFIG_SPL_ETH_SUPPORT #define CONFIG_SPL_ETH_SUPPORT
......
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
/* /*
* RTC related defines. To use bootcount you must set bootlimit in the * RTC related defines. To use bootcount you must set bootlimit in the
* environment to a non-zero value. * environment to a non-zero value and enable CONFIG_BOOTCOUNT_LIMIT
* in the board config.
*/ */
#define CONFIG_BOOTCOUNT_LIMIT
#define CONFIG_SYS_BOOTCOUNT_ADDR 0x44E3E000 #define CONFIG_SYS_BOOTCOUNT_ADDR 0x44E3E000
/* Enable the HW watchdog, since we can use this with bootcount */ /* Enable the HW watchdog, since we can use this with bootcount */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment