BT: Add support for Hastings in BT vendor library.

Add support for Hastings with new ID BT_SOC_HASTINGS.

CRs-fixed: 2344703
Change-Id: Ib07389375353ce743cfac80c0b0756b174bbbe81
diff --git a/libbt-vendor/include/bt_vendor_qcom.h b/libbt-vendor/include/bt_vendor_qcom.h
index 12ba51e..fe1fe3f 100644
--- a/libbt-vendor/include/bt_vendor_qcom.h
+++ b/libbt-vendor/include/bt_vendor_qcom.h
@@ -39,6 +39,7 @@
     BT_SOC_ROME,
     BT_SOC_CHEROKEE,
     BT_SOC_NAPIER,
+    BT_SOC_HASTINGS,
     /* Add chipset type here */
     BT_SOC_RESERVED
 }bt_soc_type;
diff --git a/libbt-vendor/src/bt_vendor_qcom.c b/libbt-vendor/src/bt_vendor_qcom.c
index 1d83a86..d6d354f 100644
--- a/libbt-vendor/src/bt_vendor_qcom.c
+++ b/libbt-vendor/src/bt_vendor_qcom.c
@@ -209,6 +209,9 @@
         else if (!strncasecmp(bt_soc_type, "cherokee", sizeof("cherokee"))) {
             return BT_SOC_CHEROKEE;
         }
+        else if (!strncasecmp(bt_soc_type, "hastings", sizeof("hastings"))) {
+            return BT_SOC_HASTINGS;
+        }
         else {
             ALOGI("vendor.qcom.bluetooth.soc not set, so using default.\n");
             return BT_SOC_DEFAULT;
@@ -804,6 +807,7 @@
                     case BT_SOC_ROME:
                     case BT_SOC_AR3K:
                     case BT_SOC_CHEROKEE:
+                    case BT_SOC_HASTINGS:
                         if (q->soc_type == BT_SOC_ROME)
                         {
                             if (nState == BT_VND_PWR_ON)
diff --git a/tools/btconfig/btconfig.c b/tools/btconfig/btconfig.c
index 3f0d151..2f5ab14 100644
--- a/tools/btconfig/btconfig.c
+++ b/tools/btconfig/btconfig.c
@@ -6844,7 +6844,8 @@
     property_get("vendor.qcom.bluetooth.soc", soc_type, "pronto");
 #endif
 
-    if((!strcasecmp(soc_type, "rome")) || (!strcasecmp(soc_type, "cherokee")))
+    if((!strcasecmp(soc_type, "rome")) || (!strcasecmp(soc_type, "cherokee"))
+                ||(!strcasecmp(soc_type, "hastings")))
         is_qca_transport_uart = true;
 
     if(is_qca_transport_uart)  min_para = 1;