mmi_muc_uart: set gpio 35 and 59

Set gpio 35 and 59 to indicate kernel entry
to the muc.

Change-Id: I6c2c2999ff4cedb75191d2a2d1d0b0aa49348449
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1235964
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
This commit is contained in:
Ryan Lattrel 2018-08-30 15:44:02 -05:00
commit 534b70fd13

View file

@ -66,6 +66,8 @@ struct mod_muc_data_t {
int wake_out_gpio;
int wake_in_gpio;
int wake_irq;
int muc_1_gpio;
int muc_2_gpio;
int mod_attached_gpio;
int mod_attached_irq;
int uart_pm_state;
@ -1224,6 +1226,22 @@ static int muc_uart_probe(struct platform_device *pdev)
else
goto err2;
mm_data->muc_1_gpio = of_get_gpio(np, 3);
if (mm_data->muc_1_gpio >= 0) {
if (muc_uart_config_gpio(&pdev->dev,
mm_data->muc_1_gpio, "muc_1", 1, 0))
goto err1;
} else
goto err2;
mm_data->muc_2_gpio = of_get_gpio(np, 4);
if (mm_data->muc_2_gpio >= 0) {
if (muc_uart_config_gpio(&pdev->dev,
mm_data->muc_2_gpio, "muc_2", 1, 1))
goto err1;
} else
goto err2;
if (devm_request_irq(&pdev->dev,
mm_data->mod_attached_irq,
muc_uart_attach_irq_handler,