bootcount: Migrate CONFIG_SYS_BOOTCOUNT_ADDR
Migrate the users of CONFIG_SYS_BOOTCOUNT_ADDR to Kconfig. We can provide a default for BOOTCOUNT_AM33XX as that's a specific part of the RTC in use. We can also provide a default for ARCH_LS1043A and ARCH_LS1021A as they had been previously calculated and their symbols are in Kconfig. In the case of other QE-enabled platforms, they are not so we must update the relevant defconfig files. The previous default only applied in some cases, even on a specific SoC family. Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -20,9 +20,6 @@
|
||||
#define CONFIG_LCD_DT_SIMPLEFB
|
||||
#define LCD_BPP LCD_COLOR32
|
||||
|
||||
/* Bootcount using the RTC block */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR 0x44E3E000
|
||||
|
||||
/* memory */
|
||||
#define CONFIG_SYS_MALLOC_LEN (5 * 1024 * 1024)
|
||||
|
||||
|
||||
@@ -274,7 +274,6 @@
|
||||
#define CONFIG_SYS_INIT_SP_ADDR (0x8001ff00)
|
||||
|
||||
#define CONFIG_SYS_BOOTCOUNT_LE /* Use little-endian accessors */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR DAVINCI_RTC_BASE
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
int calimain_get_osc_freq(void);
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#define CONFIG_SYS_MALLOC_LEN (4 * SZ_1M)
|
||||
|
||||
/* Bootcounter */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR IRAM_BASE_ADDR
|
||||
#define CONFIG_SYS_BOOTCOUNT_BE
|
||||
|
||||
/* FEC ethernet */
|
||||
|
||||
@@ -263,6 +263,4 @@
|
||||
|
||||
#define CONFIG_BCH
|
||||
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR 0x7000A000
|
||||
|
||||
#endif /* __GE_BX50V3_CONFIG_H */
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#define CONFIG_CONS_INDEX 0
|
||||
|
||||
#define CONFIG_SYS_BOOTCOUNT_LE /* Use little-endian accessors */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR 0xfff3cf0c
|
||||
|
||||
#define CONFIG_MISC_INIT_R
|
||||
#define CONFIG_SCSI_AHCI_PLAT
|
||||
|
||||
@@ -508,9 +508,6 @@
|
||||
/* UBI Support */
|
||||
#define CONFIG_MTD_PARTITIONS
|
||||
|
||||
/* bootcount support */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR 0x9
|
||||
|
||||
#define CONFIG_IMAGE_FORMAT_LEGACY
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
||||
@@ -188,9 +188,6 @@ unsigned long get_board_sys_clk(unsigned long dummy);
|
||||
#define CONFIG_SYS_BR1_PRELIM CONFIG_SYS_QRIO_BR_PRELIM /* QRIO Base Address */
|
||||
#define CONFIG_SYS_OR1_PRELIM CONFIG_SYS_QRIO_OR_PRELIM /* QRIO Options */
|
||||
|
||||
/* bootcounter in QRIO */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR (CONFIG_SYS_QRIO_BASE + 0x20)
|
||||
|
||||
#define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */
|
||||
#define CONFIG_MISC_INIT_F
|
||||
#define CONFIG_MISC_INIT_R
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
/*
|
||||
* Bootcounter
|
||||
*/
|
||||
/* last 2 lwords in OCRAM */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR 0xfffffff8
|
||||
#define CONFIG_SYS_BOOTCOUNT_BE
|
||||
|
||||
#endif /* __CONFIG_SOCFPGA_IS1_H__ */
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
/*
|
||||
* Bootcounter
|
||||
*/
|
||||
/* last 2 lwords in OCRAM */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR 0xfffffff8
|
||||
#define CONFIG_SYS_BOOTCOUNT_BE
|
||||
|
||||
/* Environment setting for SPI flash */
|
||||
|
||||
@@ -37,13 +37,6 @@
|
||||
#endif
|
||||
|
||||
#define CONFIG_DRIVER_TI_CPSW /* Driver for IP block */
|
||||
/*
|
||||
* RTC related defines. To use bootcount you must set bootlimit in the
|
||||
* environment to a non-zero value and enable CONFIG_BOOTCOUNT_LIMIT
|
||||
* in the board config.
|
||||
*/
|
||||
#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
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
/* LED */
|
||||
|
||||
/* Bootcounter */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR IRAM_BASE_ADDR
|
||||
#define CONFIG_SYS_BOOTCOUNT_BE
|
||||
|
||||
#endif /* __CONFIG_TQMA6_WRU4_H */
|
||||
|
||||
@@ -116,10 +116,6 @@
|
||||
#define CONFIG_SYS_MALLOC_LEN (8 << 20)
|
||||
#define CONFIG_SYS_LOAD_ADDR 0x00800000
|
||||
|
||||
/* Use last 2 lwords in internal SRAM for bootcounter */
|
||||
#define CONFIG_SYS_BOOTCOUNT_ADDR (CONFIG_SRAM_BASE + \
|
||||
CONFIG_SRAM_SIZE)
|
||||
|
||||
#define CONFIG_HOSTNAME x600
|
||||
#define CONFIG_UBI_PART ubi0
|
||||
#define CONFIG_UBIFS_VOLUME rootfs
|
||||
|
||||
Reference in New Issue
Block a user