summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/f_fastboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/f_fastboot.c')
-rw-r--r--drivers/usb/gadget/f_fastboot.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 0939234..5280adf 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -33,6 +33,7 @@
#endif
#ifdef CONFIG_FSL_FASTBOOT
+#include <asm/imx-common/sys_proto.h>
#include <fsl_fastboot.h>
#include <mmc.h>
#include <android_image.h>
@@ -1754,6 +1755,33 @@ void board_fastboot_setup(void)
printf("unsupported boot devices\n");
break;
}
+
+ /* add soc type into bootargs */
+ if (is_mx6dqp()) {
+ if (!getenv("soc_type"))
+ setenv("soc_type", "imx6qp");
+ } else if (is_mx6dq()) {
+ if (!getenv("soc_type"))
+ setenv("soc_type", "imx6q");
+ } else if (is_mx6sdl()) {
+ if (!getenv("soc_type"))
+ setenv("soc_type", "imx6dl");
+ } else if (is_mx6sx()) {
+ if (!getenv("soc_type"))
+ setenv("soc_type", "imx6sx");
+ } else if (is_mx6sl()) {
+ if (!getenv("soc_type"))
+ setenv("soc_type", "imx6sl");
+ } else if (is_mx6ul()) {
+ if (!getenv("soc_type"))
+ setenv("soc_type", "imx6ul");
+ } else if (is_mx7()) {
+ if (!getenv("soc_type"))
+ setenv("soc_type", "imx7d");
+ } else if (is_mx7ulp()) {
+ if (!getenv("soc_type"))
+ setenv("soc_type", "imx7ulp");
+ }
}
#ifdef CONFIG_ANDROID_RECOVERY