summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Haoran <Haoran.Wang@freescale.com>2016-07-12 14:27:06 +0800
committerWang Haoran <Haoran.Wang@freescale.com>2016-07-21 13:51:06 +0800
commit188adeec4e4f12d1dbd641f68cae6988a5e71bbd (patch)
treec3f7a53da0c9ac66b21ea83ea514d28774858f53
parentd7ca0b60b95ebc24128b4dccd6d8a09867ae0163 (diff)
downloadu-boot-imx-188adeec4e4f12d1dbd641f68cae6988a5e71bbd.zip
u-boot-imx-188adeec4e4f12d1dbd641f68cae6988a5e71bbd.tar.gz
u-boot-imx-188adeec4e4f12d1dbd641f68cae6988a5e71bbd.tar.bz2
MA-7875-2 Support fastboot lock/unlock in i.MX6 platform
Enable fastboot lock/unlock support for Android in i.MX6 platform include: o i.MX6QP/Q/DL sabresd o i.MX6QP/Q/DL sabreauto (non NAND) o i.MX6SX sabresd o i.MX6SX sabreauto (nan NAND) Signed-off-by: Wang Haoran <Haoran.Wang@freescale.com>
-rw-r--r--include/configs/mx6sabreandroid_common.h15
-rw-r--r--include/configs/mx6sxsabreautoandroid.h15
-rw-r--r--include/configs/mx6sxsabresdandroid.h15
3 files changed, 45 insertions, 0 deletions
diff --git a/include/configs/mx6sabreandroid_common.h b/include/configs/mx6sabreandroid_common.h
index ae23923..2b22782 100644
--- a/include/configs/mx6sabreandroid_common.h
+++ b/include/configs/mx6sabreandroid_common.h
@@ -27,6 +27,21 @@
#define CONFIG_ANDROID_BOOT_IMAGE
#define CONFIG_FASTBOOT_FLASH
+/* For NAND we don't support lock/unlock */
+#ifndef CONFIG_SYS_BOOT_NAND
+#define CONFIG_FASTBOOT_LOCK
+#endif
+
+#define FSL_FASTBOOT_FB_DEV "mmc"
+#define FSL_FASTBOOT_DATA_PART_NUM 4
+#define FSL_FASTBOOT_FB_PART_NUM 11
+#define FSL_FASTBOOT_PR_DATA_PART_NUM 12
+
+#define CONFIG_FSL_CAAM_KB
+#define CONFIG_CMD_FSL_CAAM_KB
+#define CONFIG_SHA1
+#define CONFIG_SHA256
+
#define CONFIG_FSL_FASTBOOT
#define CONFIG_ANDROID_RECOVERY
diff --git a/include/configs/mx6sxsabreautoandroid.h b/include/configs/mx6sxsabreautoandroid.h
index 7cebe49..b15b924 100644
--- a/include/configs/mx6sxsabreautoandroid.h
+++ b/include/configs/mx6sxsabreautoandroid.h
@@ -28,6 +28,21 @@
#define CONFIG_ANDROID_BOOT_IMAGE
#define CONFIG_FASTBOOT_FLASH
+/* For NAND we don't support lock/unlock */
+#ifndef CONFIG_SYS_BOOT_NAND
+#define CONFIG_FASTBOOT_LOCK
+#endif
+
+#define FSL_FASTBOOT_FB_DEV "mmc"
+#define FSL_FASTBOOT_DATA_PART_NUM 4
+#define FSL_FASTBOOT_FB_PART_NUM 11
+#define FSL_FASTBOOT_PR_DATA_PART_NUM 12
+
+#define CONFIG_FSL_CAAM_KB
+#define CONFIG_CMD_FSL_CAAM_KB
+#define CONFIG_SHA1
+#define CONFIG_SHA256
+
#define CONFIG_FSL_FASTBOOT
#define CONFIG_ANDROID_RECOVERY
diff --git a/include/configs/mx6sxsabresdandroid.h b/include/configs/mx6sxsabresdandroid.h
index 7d8c64e..22c7892 100644
--- a/include/configs/mx6sxsabresdandroid.h
+++ b/include/configs/mx6sxsabresdandroid.h
@@ -28,6 +28,21 @@
#define CONFIG_ANDROID_BOOT_IMAGE
#define CONFIG_FASTBOOT_FLASH
+/* For NAND we don't support lock/unlock */
+#ifndef CONFIG_SYS_BOOT_NAND
+#define CONFIG_FASTBOOT_LOCK
+#endif
+
+#define FSL_FASTBOOT_FB_DEV "mmc"
+#define FSL_FASTBOOT_DATA_PART_NUM 4
+#define FSL_FASTBOOT_FB_PART_NUM 11
+#define FSL_FASTBOOT_PR_DATA_PART_NUM 12
+
+#define CONFIG_FSL_CAAM_KB
+#define CONFIG_CMD_FSL_CAAM_KB
+#define CONFIG_SHA1
+#define CONFIG_SHA256
+
#define CONFIG_FSL_FASTBOOT
#define CONFIG_ANDROID_RECOVERY