bootcount: Add bootcount command

Add a command to manipulate the bootcounter. This is useful if you can
run device recovery from inside U-Boot and need to reset the bootcounter
after executing that process as part of altbootcmd.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 036bad8..cffc3af 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1229,6 +1229,13 @@
 	  the image into RAM, then using this command to look at it or display
 	  it.
 
+config CMD_BOOTCOUNT
+	bool "bootcount"
+	depends on BOOTCOUNT_LIMIT
+	help
+	  Enable the bootcount command, which allows interrogation and
+	  reset of the bootcounter.
+
 config CMD_BSP
 	bool "Enable board-specific commands"
 	help