mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
mmi_muc_uart: add recovery bootmode
Add recovery boot mode enum to the bootmode message. Change-Id: I75a62b17e69358cac14560dd944f5a298bc04993 Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1268597 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
8eec4e9c18
commit
da078cf7b0
2 changed files with 3 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ struct mmi_uart_pb_hdr_t {
|
|||
#define MUC_FIRMWARE_NAME "muc_firmware.zip"
|
||||
#define MUC_FW_PAYLOAD_SIZE 1022
|
||||
|
||||
enum { NORMAL = 0, BP_TOOLS, FACTORY, QCOM, };
|
||||
enum { NORMAL = 0, BP_TOOLS, FACTORY, QCOM, RECOVERY };
|
||||
struct boot_mode_t {
|
||||
uint8_t boot_mode; /* androidboot.mode */
|
||||
uint32_t hwid; /* androidboot.hwrev */
|
||||
|
|
|
|||
|
|
@ -583,6 +583,8 @@ static int muc_uart_send_bootmode(struct mod_muc_data_t *mm_data)
|
|||
bootmode.boot_mode = QCOM;
|
||||
} else if (strncmp(bi_bootmode(), "bp-tools", strlen("bp-tools")) == 0) {
|
||||
bootmode.boot_mode = BP_TOOLS;
|
||||
} else if (strncmp(bi_bootmode(), "recovery", strlen("recovery")) == 0) {
|
||||
bootmode.boot_mode = RECOVERY;
|
||||
} else {
|
||||
/* TODO defaults to normal. Should we have unknown/other? */
|
||||
bootmode.boot_mode = NORMAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue