mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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:
parent
fbf658b188
commit
534b70fd13
1 changed files with 18 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue