From 534b70fd13469a61ccc4b8beac9aab36795cdded Mon Sep 17 00:00:00 2001 From: Ryan Lattrel Date: Thu, 30 Aug 2018 15:44:02 -0500 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/1235964 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Kenneth Kessler Tested-by: Jira Key Submit-Approved: Jira Key --- drivers/mmi_muc_uart/muc_uart.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/mmi_muc_uart/muc_uart.c b/drivers/mmi_muc_uart/muc_uart.c index 946d444ddb23..853a8f50211c 100644 --- a/drivers/mmi_muc_uart/muc_uart.c +++ b/drivers/mmi_muc_uart/muc_uart.c @@ -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,