mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
Convert CONFIG_BOOTCOUNT_I2C to Kconfig
This converts the following to Kconfig: CONFIG_BOOTCOUNT_I2C Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
6
README
6
README
@ -2270,12 +2270,6 @@ The following options need to be configured:
|
|||||||
- bootcount support:
|
- bootcount support:
|
||||||
CONFIG_AT91SAM9XE
|
CONFIG_AT91SAM9XE
|
||||||
enable special bootcounter support on at91sam9xe based boards.
|
enable special bootcounter support on at91sam9xe based boards.
|
||||||
CONFIG_BOOTCOUNT_I2C
|
|
||||||
enable support for the bootcounter on an i2c (like RTC) device.
|
|
||||||
CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
|
|
||||||
CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
|
|
||||||
the bootcounter.
|
|
||||||
CONFIG_BOOTCOUNT_ALEN = address len
|
|
||||||
CONFIG_BOOTCOUNT_EXT
|
CONFIG_BOOTCOUNT_EXT
|
||||||
enable support for the bootcounter in EXT filesystem
|
enable support for the bootcounter in EXT filesystem
|
||||||
CONFIG_SYS_BOOTCOUNT_ADDR = RAM address used for read
|
CONFIG_SYS_BOOTCOUNT_ADDR = RAM address used for read
|
||||||
|
@ -35,6 +35,7 @@ CONFIG_BOOTP_GATEWAY=y
|
|||||||
CONFIG_BOOTP_HOSTNAME=y
|
CONFIG_BOOTP_HOSTNAME=y
|
||||||
CONFIG_BOOTP_SUBNETMASK=y
|
CONFIG_BOOTP_SUBNETMASK=y
|
||||||
CONFIG_BOOTCOUNT_LIMIT=y
|
CONFIG_BOOTCOUNT_LIMIT=y
|
||||||
|
CONFIG_BOOTCOUNT_I2C=y
|
||||||
# CONFIG_MMC is not set
|
# CONFIG_MMC is not set
|
||||||
CONFIG_MTD_NOR_FLASH=y
|
CONFIG_MTD_NOR_FLASH=y
|
||||||
CONFIG_PHYLIB=y
|
CONFIG_PHYLIB=y
|
||||||
|
@ -46,6 +46,15 @@ config BOOTCOUNT_RAM
|
|||||||
Store the bootcount in DRAM protected against against bit errors
|
Store the bootcount in DRAM protected against against bit errors
|
||||||
due to short power loss or holding a system in RESET.
|
due to short power loss or holding a system in RESET.
|
||||||
|
|
||||||
|
config BOOTCOUNT_I2C
|
||||||
|
bool "Boot counter on I2C device"
|
||||||
|
help
|
||||||
|
Enable support for the bootcounter on an i2c (like RTC) device.
|
||||||
|
CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
|
||||||
|
CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
|
||||||
|
the bootcounter.
|
||||||
|
CONFIG_BOOTCOUNT_ALEN = address len
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config SYS_BOOTCOUNT_SINGLEWORD
|
config SYS_BOOTCOUNT_SINGLEWORD
|
||||||
|
@ -509,7 +509,6 @@
|
|||||||
#define CONFIG_MTD_PARTITIONS
|
#define CONFIG_MTD_PARTITIONS
|
||||||
|
|
||||||
/* bootcount support */
|
/* bootcount support */
|
||||||
#define CONFIG_BOOTCOUNT_I2C
|
|
||||||
#define CONFIG_BOOTCOUNT_ALEN 1
|
#define CONFIG_BOOTCOUNT_ALEN 1
|
||||||
#define CONFIG_SYS_BOOTCOUNT_ADDR 0x9
|
#define CONFIG_SYS_BOOTCOUNT_ADDR 0x9
|
||||||
|
|
||||||
|
@ -146,7 +146,6 @@ CONFIG_BOARD_TYPES
|
|||||||
CONFIG_BOOGER
|
CONFIG_BOOGER
|
||||||
CONFIG_BOOTBLOCK
|
CONFIG_BOOTBLOCK
|
||||||
CONFIG_BOOTCOUNT_ALEN
|
CONFIG_BOOTCOUNT_ALEN
|
||||||
CONFIG_BOOTCOUNT_I2C
|
|
||||||
CONFIG_BOOTFILE
|
CONFIG_BOOTFILE
|
||||||
CONFIG_BOOTMAPSZ
|
CONFIG_BOOTMAPSZ
|
||||||
CONFIG_BOOTMODE
|
CONFIG_BOOTMODE
|
||||||
|
Reference in New Issue
Block a user