zte's code,first commit

Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/ap/os/linux/linux-3.4.x/drivers/mtd/partition_guard.c b/ap/os/linux/linux-3.4.x/drivers/mtd/partition_guard.c
new file mode 100755
index 0000000..e88820a
--- /dev/null
+++ b/ap/os/linux/linux-3.4.x/drivers/mtd/partition_guard.c
@@ -0,0 +1,26 @@
+/*
+ *  drivers/mtd/nand/zftl_barrier.c
+ *
+ *  Copyright (C) 2002 Thomas Gleixner (tglx@linutronix.de)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+ 
+#include <linux/mtd/partition_guard.h>
+
+
+/*
+***************************************************************************************
+* zftl used partition for phone
+***************************************************************************************
+*/
+//const unsigned char *zftl_partition_name[] = {{"nvfac"},{"nvro"},{"nvrw"},{"nvrwo"},{"fotaflag"},{"sms"},{0}};
+#ifdef CONFIG_ZX297520V3_MDL_AB
+const unsigned char *read_only_partition_name[] = {{"zloader"},{"uboot"},{"uboot2"},{"flags"},{0}};
+#else
+const unsigned char *read_only_partition_name[] = {{"zloader"}, {"uboot"},{0}};
+#endif
+