* [U-Boot] [PATCH] am33xx: Make SoC bootcount driver have its own symbol
@ 2013-11-08 18:54 Tom Rini
2013-11-11 6:38 ` Heiko Schocher
2013-11-12 14:53 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Tom Rini @ 2013-11-08 18:54 UTC (permalink / raw)
To: u-boot
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.
Cc: Heiko Schocher <hs@denx.de>
Signed-off-by: Tom Rini <trini@ti.com>
---
drivers/bootcount/Makefile | 2 +-
drivers/bootcount/bootcount_davinci.c | 4 ++++
include/configs/am335x_evm.h | 4 ++++
include/configs/ti_am335x_common.h | 4 ++--
4 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/drivers/bootcount/Makefile b/drivers/bootcount/Makefile
index d0b8a79..4154352 100644
--- a/drivers/bootcount/Makefile
+++ b/drivers/bootcount/Makefile
@@ -10,7 +10,7 @@ COBJS-y += bootcount.o
COBJS-$(CONFIG_AT91SAM9XE) += bootcount_at91.o
COBJS-$(CONFIG_BLACKFIN) += bootcount_blackfin.o
COBJS-$(CONFIG_SOC_DA8XX) += bootcount_davinci.o
-COBJS-$(CONFIG_AM33XX) += bootcount_davinci.o
+COBJS-$(CONFIG_BOOTCOUNT_AM33XX) += bootcount_davinci.o
COBJS-$(CONFIG_BOOTCOUNT_RAM) += bootcount_ram.o
COBJS-$(CONFIG_BOOTCOUNT_ENV) += bootcount_env.o
diff --git a/drivers/bootcount/bootcount_davinci.c b/drivers/bootcount/bootcount_davinci.c
index f0acfad..fa87b5e 100644
--- a/drivers/bootcount/bootcount_davinci.c
+++ b/drivers/bootcount/bootcount_davinci.c
@@ -2,6 +2,10 @@
* (C) Copyright 2011
* Heiko Schocher, DENX Software Engineering, hs at 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+
*/
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index c2ba7e3..9015927 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -199,6 +199,10 @@
#define CONFIG_SPL_POWER_SUPPORT
#define CONFIG_SPL_YMODEM_SUPPORT
+/* Bootcount using the RTC block */
+#define CONFIG_BOOTCOUNT_LIMIT
+#define CONFIG_BOOTCOUNT_AM33XX
+
/* CPSW support */
#define CONFIG_SPL_ETH_SUPPORT
diff --git a/include/configs/ti_am335x_common.h b/include/configs/ti_am335x_common.h
index 0f6fa62..4364eef 100644
--- a/include/configs/ti_am335x_common.h
+++ b/include/configs/ti_am335x_common.h
@@ -43,9 +43,9 @@
/*
* 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
/* Enable the HW watchdog, since we can use this with bootcount */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] am33xx: Make SoC bootcount driver have its own symbol
2013-11-08 18:54 [U-Boot] [PATCH] am33xx: Make SoC bootcount driver have its own symbol Tom Rini
@ 2013-11-11 6:38 ` Heiko Schocher
2013-11-12 14:53 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Schocher @ 2013-11-11 6:38 UTC (permalink / raw)
To: u-boot
Hello Tom,
Am 08.11.2013 19:54, schrieb Tom Rini:
> 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.
>
> Cc: Heiko Schocher<hs@denx.de>
> Signed-off-by: Tom Rini<trini@ti.com>
> ---
> drivers/bootcount/Makefile | 2 +-
> drivers/bootcount/bootcount_davinci.c | 4 ++++
> include/configs/am335x_evm.h | 4 ++++
> include/configs/ti_am335x_common.h | 4 ++--
> 4 files changed, 11 insertions(+), 3 deletions(-)
Thanks!
Acked-by: Heiko Schocher <hs@denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] am33xx: Make SoC bootcount driver have its own symbol
2013-11-08 18:54 [U-Boot] [PATCH] am33xx: Make SoC bootcount driver have its own symbol Tom Rini
2013-11-11 6:38 ` Heiko Schocher
@ 2013-11-12 14:53 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2013-11-12 14:53 UTC (permalink / raw)
To: u-boot
On Fri, Nov 08, 2013 at 01:54:32PM -0500, Tom Rini wrote:
> 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.
>
> Cc: Heiko Schocher <hs@denx.de>
> Signed-off-by: Tom Rini <trini@ti.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131112/34044cd1/attachment.pgp>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-12 14:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 18:54 [U-Boot] [PATCH] am33xx: Make SoC bootcount driver have its own symbol Tom Rini
2013-11-11 6:38 ` Heiko Schocher
2013-11-12 14:53 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox