ARM: tegra: allow reading recovery mode boot type
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Fri, 17 Apr 2015 14:44:12 +0000 (16:44 +0200)
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>
Fri, 17 Apr 2015 14:44:12 +0000 (16:44 +0200)
Allow reading recovery mode (RCM) boot type from the boot information
table (BIT) written by the boot ROM (BR) to the IRAM.

arch/arm/include/asm/arch-tegra/tegra.h

index d63af0e5fd9c64db92f6989ef00d3c564640a350..9ff083190688dd3d08cb8a1e29ec4fbbc8711d81 100644 (file)
@@ -56,6 +56,8 @@ struct timerus {
 /* Address at which WB code runs, it must not overlap Bootrom's IRAM usage */
 #define NV_WB_RUN_ADDRESS      0x40020000
 
+#define NVBOOTTYPE_RECOVERY    2       /* BR entered RCM */
+#define NVBOOTINFOTABLE_BOOTTYPE 0xC   /* Boot type in BIT in IRAM */
 #define NVBOOTINFOTABLE_BCTSIZE        0x38    /* BCT size in BIT in IRAM */
 #define NVBOOTINFOTABLE_BCTPTR 0x3C    /* BCT pointer in BIT in IRAM */