Restore "(CR): mmi_muc_uart: set gpio 35 and 59" This is to fix issue caused in daily #47"

This reverts commit c2c9659e5ff889f5a390fae5b0fdd6b4683336db.

Change-Id: I9f43e2c4f172dc3c2af8bf3e02326b53dcd2f455
Reviewed-on: https://gerrit.mot.com/1239005
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Dharmeshkumar Patel 2018-09-06 23:10:16 -05:00
commit a840de95fa

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,