Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #
  2. # Boot count configuration
  3. #
  4. menuconfig BOOTCOUNT_LIMIT
  5. bool "Enable support for checking boot count limit"
  6. help
  7. Enable checking for exceeding the boot count limit.
  8. More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
  9. if BOOTCOUNT_LIMIT
  10. choice
  11. prompt "Boot count device"
  12. default BOOTCOUNT_AM33XX if AM33XX || SOC_DA8XX
  13. default BOOTCOUNT_AT91 if AT91SAM9XE
  14. default BOOTCOUNT_GENERIC
  15. config BOOTCOUNT_GENERIC
  16. bool "Generic default boot counter"
  17. help
  18. Generic bootcount stored at SYS_BOOTCOUNT_ADDR.
  19. SYS_BOOTCOUNT_ADDR:
  20. Set to the address where the bootcount and bootcount magic
  21. will be stored.
  22. config BOOTCOUNT_EXT
  23. bool "Boot counter on EXT filesystem"
  24. help
  25. Add support for maintaining boot count in a file on an EXT
  26. filesystem.
  27. config BOOTCOUNT_AM33XX
  28. bool "Boot counter in AM33XX RTC IP block"
  29. depends on AM33XX || SOC_DA8XX
  30. select SPL_AM33XX_ENABLE_RTC32K_OSC if AM33XX
  31. help
  32. A bootcount driver for the RTC IP block found on many TI platforms.
  33. This requires the RTC clocks, etc, to be enabled prior to use and
  34. not all boards with this IP block on it will have the RTC in use.
  35. config BOOTCOUNT_ENV
  36. bool "Boot counter in environment"
  37. help
  38. If no softreset save registers are found on the hardware
  39. "bootcount" is stored in the environment. To prevent a
  40. saveenv on all reboots, the environment variable
  41. "upgrade_available" is used. If "upgrade_available" is
  42. 0, "bootcount" is always 0, if "upgrade_available" is
  43. 1 "bootcount" is incremented in the environment.
  44. So the Userspace Application must set the "upgrade_available"
  45. and "bootcount" variable to 0, if a boot was successfully.
  46. config BOOTCOUNT_RAM
  47. bool "Boot counter in RAM"
  48. help
  49. Store the bootcount in DRAM protected against against bit errors
  50. due to short power loss or holding a system in RESET.
  51. config BOOTCOUNT_I2C
  52. bool "Boot counter on I2C device"
  53. help
  54. Enable support for the bootcounter on an i2c (like RTC) device.
  55. CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
  56. CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
  57. the bootcounter.
  58. config BOOTCOUNT_AT91
  59. bool "Boot counter for Atmel AT91SAM9XE"
  60. depends on AT91SAM9XE
  61. endchoice
  62. config BOOTCOUNT_ALEN
  63. int "I2C address length"
  64. default 1
  65. depends on BOOTCOUNT_I2C
  66. help
  67. Length of the the I2C address at SYS_BOOTCOUNT_ADDR for storing
  68. the boot counter.
  69. config SYS_BOOTCOUNT_SINGLEWORD
  70. bool "Use single word to pack boot count and magic value"
  71. depends on BOOTCOUNT_GENERIC
  72. help
  73. This option enables packing boot count magic value and boot count
  74. into single word (32 bits).
  75. config SYS_BOOTCOUNT_EXT_INTERFACE
  76. string "Interface on which to find boot counter EXT filesystem"
  77. default "mmc"
  78. depends on BOOTCOUNT_EXT
  79. help
  80. Set the interface to use when locating the filesystem to use for the
  81. boot counter.
  82. config SYS_BOOTCOUNT_EXT_DEVPART
  83. string "Partition of the boot counter EXT filesystem"
  84. default "0:1"
  85. depends on BOOTCOUNT_EXT
  86. help
  87. Set the partition to use when locating the filesystem to use for the
  88. boot counter.
  89. config SYS_BOOTCOUNT_EXT_NAME
  90. string "Path and filename of the EXT filesystem based boot counter"
  91. default "/boot/failures"
  92. depends on BOOTCOUNT_EXT
  93. help
  94. Set the filename and path of the file used to store the boot counter.
  95. config SYS_BOOTCOUNT_ADDR
  96. hex "RAM address used for reading and writing the boot counter"
  97. default 0x44E3E000 if BOOTCOUNT_AM33XX
  98. default 0xE0115FF8 if ARCH_LS1043A || ARCH_LS1021A
  99. depends on BOOTCOUNT_AM33XX || BOOTCOUNT_GENERIC || BOOTCOUNT_EXT || \
  100. BOOTCOUNT_I2C
  101. help
  102. Set the address used for reading and writing the boot counter.
  103. endif