Implement the support for a new modem baseband SGLTE2
This gerrit implements the support added for the new modem
baseband SGLTE2.
Change-Id: I84885462d057427dabfbd70d56e02f975e13e1c5
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index adeca41..b90ce63 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -100,6 +100,7 @@
static const char *baseband_sglte = " androidboot.baseband=sglte";
static const char *baseband_dsda = " androidboot.baseband=dsda";
static const char *baseband_dsda2 = " androidboot.baseband=dsda2";
+static const char *baseband_sglte2 = " androidboot.baseband=sglte2";
/* Assuming unauthorized kernel image by default */
static int auth_kernel_img = 0;
@@ -197,6 +198,10 @@
cmdline_len += strlen(baseband_sglte);
break;
+ case BASEBAND_SGLTE2:
+ cmdline_len += strlen(baseband_sglte2);
+ break;
+
case BASEBAND_DSDA:
cmdline_len += strlen(baseband_dsda);
break;
@@ -283,6 +288,12 @@
while ((*dst++ = *src++));
break;
+ case BASEBAND_SGLTE2:
+ src = baseband_sglte2;
+ if (have_cmdline) --dst;
+ while ((*dst++ = *src++));
+ break;
+
case BASEBAND_DSDA:
src = baseband_dsda;
if (have_cmdline) --dst;