ASR_BASE

Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/marvell/linux/include/soc/asr/asr_mflag.h b/marvell/linux/include/soc/asr/asr_mflag.h
new file mode 100644
index 0000000..a68541c
--- /dev/null
+++ b/marvell/linux/include/soc/asr/asr_mflag.h
@@ -0,0 +1,31 @@
+/*
+ * include/soc/asr/asr_mflag.h
+ *
+ */
+#ifndef __ASR_MFLAG_H__
+#define __ASR_MFLAG_H__
+
+#include <linux/kernel.h>
+
+#define ASR_MFLAG_OFFSET_FROM_CRASHKERNEL	(0x300)
+
+#define AP_DIAG_BUF_SET_MAGIC           (0x41504447)  /* APDG */
+#define AP_DIAG_BUF_SET_MAGIC2          (0x41504467)  /* APDg */
+
+/* resever a 128 bytes(0x300 to 0x380) structure to save asr memory flags */
+struct asr_mflag {
+	u32 reserved1[0x28 / sizeof(u32)];
+
+	u32 diag_buff_magic;
+	u32 diag_buff_addr;
+	u32 diag_buff_len;
+
+	u32 fastboot_flag;		/* fast boot mode flag, offset 0x34 */
+	u32 ubifs_error_magic;		/* ubifs error magic offset 0x38 */
+	u32 ubifs_error_type;		/* ubifs error magic offset 0x3c */
+	u32 reserved2[0x40 / sizeof(u32)];
+} __attribute__ ((__packed__));
+
+extern struct asr_mflag * get_asr_mflag(void);
+#endif
+