msm8960: Add support for dsda platform
Add support for DSDA platform subtype & pass the command line
argument based on the platform subtype.
Change-Id: Id921f780184d731c937f9202cf994ce6ee73a55f
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index f6d6e50..99857cc 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -98,6 +98,7 @@
static const char *baseband_svlte2a = " androidboot.baseband=svlte2a";
static const char *baseband_mdm = " androidboot.baseband=mdm";
static const char *baseband_sglte = " androidboot.baseband=sglte";
+static const char *baseband_dsda = " androidboot.baseband=dsda";
/* Assuming unauthorized kernel image by default */
static int auth_kernel_img = 0;
@@ -194,6 +195,10 @@
case BASEBAND_SGLTE:
cmdline_len += strlen(baseband_sglte);
break;
+
+ case BASEBAND_DSDA:
+ cmdline_len += strlen(baseband_dsda);
+ break;
}
if (cmdline_len > 0) {
@@ -272,6 +277,12 @@
if (have_cmdline) --dst;
while ((*dst++ = *src++));
break;
+
+ case BASEBAND_DSDA:
+ src = baseband_dsda;
+ if (have_cmdline) --dst;
+ while ((*dst++ = *src++));
+ break;
}
}
return cmdline_final;