diff options
author | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-07-12 03:26:18 +0400 |
---|---|---|
committer | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-07-12 03:47:34 +0400 |
commit | 89904c08bb3768ff993da750dab268989fe6dec0 (patch) | |
tree | bf4aeb604671bf50df11e0a57729c6bdbf40cf37 | |
parent | 1777a0ad0303e095b6e576bd2d9431d02226a191 (diff) | |
download | external_libsamsung-ipc-89904c08bb3768ff993da750dab268989fe6dec0.zip external_libsamsung-ipc-89904c08bb3768ff993da750dab268989fe6dec0.tar.gz external_libsamsung-ipc-89904c08bb3768ff993da750dab268989fe6dec0.tar.bz2 |
Fix GPS on tuna by setting the UART mux correctly
-rw-r--r-- | samsung-ipc/device/maguro/maguro_loader.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/samsung-ipc/device/maguro/maguro_loader.c b/samsung-ipc/device/maguro/maguro_loader.c index 0bf757a..4d15e04 100644 --- a/samsung-ipc/device/maguro/maguro_loader.c +++ b/samsung-ipc/device/maguro/maguro_loader.c @@ -605,26 +605,9 @@ static int maguro_modem_reboot(struct ipc_client *client, else { ipc_client_log(client, "disabled modem power"); } - - if ((ret = modemctl_modem_boot_power(client, io_data, false)) < 0) { - ipc_client_log(client, "Error: failed to disable modem boot power"); - goto fail; - } - else { - ipc_client_log(client, "disabled modem boot power"); - } - /* * Now, initialize the hardware */ - if ((ret = modemctl_modem_boot_power(client, io_data, true)) < 0) { - ipc_client_log(client, "Error: failed to enable modem boot power"); - goto fail; - } - else { - ipc_client_log(client, "enabled modem boot power"); - } - if ((ret = modemctl_modem_power(client, io_data, true)) < 0) { ipc_client_log(client, "Error: failed to enable modem power"); goto fail; @@ -797,6 +780,11 @@ int maguro_modem_bootstrap(struct ipc_client *client) ipc_client_log(client, "Error: failed to wait for modem to become online"); goto fail; } + + /* + * This restores UART MUX to GPS + */ + modemctl_modem_boot_power(client, &io_data, false); ipc_client_log(client, "Modem is online!"); ret = 0; |