]> git.sur5r.net Git - u-boot/commitdiff
TI:am33xx: Add bootcount support to ti_am335x_common.h
authorTom Rini <trini@ti.com>
Wed, 28 Aug 2013 13:00:30 +0000 (09:00 -0400)
committerTom Rini <trini@ti.com>
Fri, 1 Nov 2013 19:30:32 +0000 (15:30 -0400)
Enable the bootcount driver for am335x in general.  We leave adding a
bootlimit and altbootcmd to the environment to the board ports.

Signed-off-by: Tom Rini <trini@ti.com>
drivers/bootcount/Makefile
include/configs/ti_am335x_common.h

index 2b517b6dfb49be6b8c750067bbb537edaee63f97..352a0a16d9b178b41372503cf550def026a53f78 100644 (file)
@@ -10,6 +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_RAM)  += bootcount_ram.o
 
 COBJS  := $(COBJS-y)
index d2e34aeed48142e0b086c834ce73ac70045afe4e..03726f257c715d9057cbeb29091c9c2f255b8c71 100644 (file)
 #define CONFIG_DRIVER_TI_CPSW          /* Driver for IP block */
 #define CONFIG_MII                     /* Required in net/eth.c */
 
+/*
+ * RTC related defines. To use bootcount you must set bootlimit in the
+ * environment to a non-zero value.
+ */
+#define CONFIG_BOOTCOUNT_LIMIT
+#define CONFIG_SYS_BOOTCOUNT_ADDR      0x44E3E000
+
 /*
  * SPL related defines.  The Public RAM memory map the ROM defines the
  * area between 0x402F0400 and 0x4030B800 as a download area and