diff options
author | Kevin Tang <zhikait@codeaurora.org> | 2014-12-15 10:51:42 -0800 |
---|---|---|
committer | Kevin Tang <zhikait@codeaurora.org> | 2014-12-15 21:21:16 -0800 |
commit | f014665a5299f281695c8d098f7444afbf623057 (patch) | |
tree | 41e24d1249b7a8456f89c9be9377a05faee628fa /utils/loc_target.cpp | |
parent | 3aa99e9fc58817356ef6fb184e5339d5a2667222 (diff) | |
download | gps-f014665a5299f281695c8d098f7444afbf623057.tar.gz |
Enable "auto" target for APQ8960 Automotive ADP platform
APQ8960 Automotive platforms use "auto" as a target name
for ro.baseband property. Appropriate GPS driver changes
were,
1. define GNSS_AUTO enum constant
2. Enable GNSS drivers for "auto" target.
Change-Id: I463db7ac1c3e2dd6101e457ad723bb16adf5aacb
CRs-Fixed: 771597
Diffstat (limited to 'utils/loc_target.cpp')
-rw-r--r-- | utils/loc_target.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/loc_target.cpp b/utils/loc_target.cpp index 8dbe885..080e576 100644 --- a/utils/loc_target.cpp +++ b/utils/loc_target.cpp @@ -53,6 +53,7 @@ #define STR_SURF "Surf" #define STR_MTP "MTP" #define STR_APQ "apq" +#define STR_AUTO "auto" #define IS_STR_END(c) ((c) == '\0' || (c) == '\n' || (c) == '\r') #define LENGTH(s) (sizeof(s) - 1) #define GPS_CHECK_NO_ERROR 0 @@ -207,6 +208,11 @@ unsigned int loc_get_target(void) } else { read_a_line(id_dep, rd_id, LINE_LEN); } + if( !memcmp(baseband, STR_AUTO, LENGTH(STR_AUTO)) ) + { + gTarget = TARGET_AUTO; + goto detected; + } if( !memcmp(rd_hw_platform, STR_MTP, LENGTH(STR_MTP)) ){ if( !memcmp(rd_id, PDS_ID_1, LENGTH(PDS_ID_1)) && IS_STR_END(rd_id[LENGTH(PDS_ID_1)]) ) |