msm8960: Detect mdm configuration
Change-Id: Ie5c2531f306f14a10edc9935e88ce240032ae068
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index e2a6174..d318ced 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -81,6 +81,7 @@
static const char *baseband_msm = " androidboot.baseband=msm";
static const char *baseband_csfb = " androidboot.baseband=csfb";
static const char *baseband_svlte2a = " androidboot.baseband=svlte2a";
+static const char *baseband_mdm = " androidboot.baseband=mdm";
/* Assuming unauthorized kernel image by default */
static int auth_kernel_img = 0;
@@ -208,6 +209,10 @@
case BASEBAND_SVLTE2A:
cmdline_len += strlen(baseband_svlte2a);
break;
+
+ case BASEBAND_MDM:
+ cmdline_len += strlen(baseband_mdm);
+ break;
}
if (cmdline_len > 0) {
@@ -276,6 +281,12 @@
if (have_cmdline) --dst;
while ((*dst++ = *src++));
break;
+
+ case BASEBAND_MDM:
+ src = baseband_mdm;
+ if (have_cmdline) --dst;
+ while ((*dst++ = *src++));
+ break;
}
ptr += (n / 4);
}