aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormorphis <morphis@gravedo.de>2012-07-17 11:58:04 -0700
committermorphis <morphis@gravedo.de>2012-07-17 11:58:04 -0700
commit236e5a2b6d744e2aed5f834e265553ab038d5a7d (patch)
tree30263bb5ca95165d79ef8af840b3fa500d97c2fb
parenta72e2497ae5987c8ec3e8851f4d7be2f3c2eb82d (diff)
parentf0379c85382d0b853e1124e124218a6f96248c4c (diff)
downloadexternal_libsamsung-ipc-236e5a2b6d744e2aed5f834e265553ab038d5a7d.zip
external_libsamsung-ipc-236e5a2b6d744e2aed5f834e265553ab038d5a7d.tar.gz
external_libsamsung-ipc-236e5a2b6d744e2aed5f834e265553ab038d5a7d.tar.bz2
Merge pull request #1 from astarasikov/gps-fix
Fix GPS on tuna by setting the UART mux correctly
-rw-r--r--samsung-ipc/device/maguro/maguro_loader.c22
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;