mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
Revert "Bluetooth: btqca: Add WCN3988 support"
This reverts commit9409636132which is commitf904feefe6upstream. It breaks the Android kernel abi and can be brought back in the future in an abi-safe way if it is really needed. Bug: 161946584 Change-Id: I1ca051a8ba0f510b7c48a13856ed54859d09f67c Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -594,20 +594,14 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
|
|||||||
/* Firmware files to download are based on ROM version.
|
/* Firmware files to download are based on ROM version.
|
||||||
* ROM version is derived from last two bytes of soc_ver.
|
* ROM version is derived from last two bytes of soc_ver.
|
||||||
*/
|
*/
|
||||||
if (soc_type == QCA_WCN3988)
|
rom_ver = ((soc_ver & 0x00000f00) >> 0x04) | (soc_ver & 0x0000000f);
|
||||||
rom_ver = ((soc_ver & 0x00000f00) >> 0x05) | (soc_ver & 0x0000000f);
|
|
||||||
else
|
|
||||||
rom_ver = ((soc_ver & 0x00000f00) >> 0x04) | (soc_ver & 0x0000000f);
|
|
||||||
|
|
||||||
if (soc_type == QCA_WCN6750)
|
if (soc_type == QCA_WCN6750)
|
||||||
qca_send_patch_config_cmd(hdev);
|
qca_send_patch_config_cmd(hdev);
|
||||||
|
|
||||||
/* Download rampatch file */
|
/* Download rampatch file */
|
||||||
config.type = TLV_TYPE_PATCH;
|
config.type = TLV_TYPE_PATCH;
|
||||||
if (soc_type == QCA_WCN3988) {
|
if (qca_is_wcn399x(soc_type)) {
|
||||||
snprintf(config.fwname, sizeof(config.fwname),
|
|
||||||
"qca/apbtfw%02x.tlv", rom_ver);
|
|
||||||
} else if (qca_is_wcn399x(soc_type)) {
|
|
||||||
snprintf(config.fwname, sizeof(config.fwname),
|
snprintf(config.fwname, sizeof(config.fwname),
|
||||||
"qca/crbtfw%02x.tlv", rom_ver);
|
"qca/crbtfw%02x.tlv", rom_ver);
|
||||||
} else if (soc_type == QCA_QCA6390) {
|
} else if (soc_type == QCA_QCA6390) {
|
||||||
@@ -642,9 +636,6 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
|
|||||||
if (firmware_name)
|
if (firmware_name)
|
||||||
snprintf(config.fwname, sizeof(config.fwname),
|
snprintf(config.fwname, sizeof(config.fwname),
|
||||||
"qca/%s", firmware_name);
|
"qca/%s", firmware_name);
|
||||||
else if (soc_type == QCA_WCN3988)
|
|
||||||
snprintf(config.fwname, sizeof(config.fwname),
|
|
||||||
"qca/apnv%02x.bin", rom_ver);
|
|
||||||
else if (qca_is_wcn399x(soc_type)) {
|
else if (qca_is_wcn399x(soc_type)) {
|
||||||
if (le32_to_cpu(ver.soc_id) == QCA_WCN3991_SOC_ID) {
|
if (le32_to_cpu(ver.soc_id) == QCA_WCN3991_SOC_ID) {
|
||||||
snprintf(config.fwname, sizeof(config.fwname),
|
snprintf(config.fwname, sizeof(config.fwname),
|
||||||
|
|||||||
@@ -142,7 +142,6 @@ enum qca_btsoc_type {
|
|||||||
QCA_INVALID = -1,
|
QCA_INVALID = -1,
|
||||||
QCA_AR3002,
|
QCA_AR3002,
|
||||||
QCA_ROME,
|
QCA_ROME,
|
||||||
QCA_WCN3988,
|
|
||||||
QCA_WCN3990,
|
QCA_WCN3990,
|
||||||
QCA_WCN3998,
|
QCA_WCN3998,
|
||||||
QCA_WCN3991,
|
QCA_WCN3991,
|
||||||
@@ -163,15 +162,8 @@ int qca_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr);
|
|||||||
int qca_send_pre_shutdown_cmd(struct hci_dev *hdev);
|
int qca_send_pre_shutdown_cmd(struct hci_dev *hdev);
|
||||||
static inline bool qca_is_wcn399x(enum qca_btsoc_type soc_type)
|
static inline bool qca_is_wcn399x(enum qca_btsoc_type soc_type)
|
||||||
{
|
{
|
||||||
switch (soc_type) {
|
return soc_type == QCA_WCN3990 || soc_type == QCA_WCN3991 ||
|
||||||
case QCA_WCN3988:
|
soc_type == QCA_WCN3998;
|
||||||
case QCA_WCN3990:
|
|
||||||
case QCA_WCN3991:
|
|
||||||
case QCA_WCN3998:
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
static inline bool qca_is_wcn6750(enum qca_btsoc_type soc_type)
|
static inline bool qca_is_wcn6750(enum qca_btsoc_type soc_type)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1832,17 +1832,6 @@ static const struct hci_uart_proto qca_proto = {
|
|||||||
.dequeue = qca_dequeue,
|
.dequeue = qca_dequeue,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct qca_device_data qca_soc_data_wcn3988 __maybe_unused = {
|
|
||||||
.soc_type = QCA_WCN3988,
|
|
||||||
.vregs = (struct qca_vreg []) {
|
|
||||||
{ "vddio", 15000 },
|
|
||||||
{ "vddxo", 80000 },
|
|
||||||
{ "vddrf", 300000 },
|
|
||||||
{ "vddch0", 450000 },
|
|
||||||
},
|
|
||||||
.num_vregs = 4,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct qca_device_data qca_soc_data_wcn3990 __maybe_unused = {
|
static const struct qca_device_data qca_soc_data_wcn3990 __maybe_unused = {
|
||||||
.soc_type = QCA_WCN3990,
|
.soc_type = QCA_WCN3990,
|
||||||
.vregs = (struct qca_vreg []) {
|
.vregs = (struct qca_vreg []) {
|
||||||
@@ -2368,7 +2357,6 @@ static const struct of_device_id qca_bluetooth_of_match[] = {
|
|||||||
{ .compatible = "qcom,qca6174-bt" },
|
{ .compatible = "qcom,qca6174-bt" },
|
||||||
{ .compatible = "qcom,qca6390-bt", .data = &qca_soc_data_qca6390},
|
{ .compatible = "qcom,qca6390-bt", .data = &qca_soc_data_qca6390},
|
||||||
{ .compatible = "qcom,qca9377-bt" },
|
{ .compatible = "qcom,qca9377-bt" },
|
||||||
{ .compatible = "qcom,wcn3988-bt", .data = &qca_soc_data_wcn3988},
|
|
||||||
{ .compatible = "qcom,wcn3990-bt", .data = &qca_soc_data_wcn3990},
|
{ .compatible = "qcom,wcn3990-bt", .data = &qca_soc_data_wcn3990},
|
||||||
{ .compatible = "qcom,wcn3991-bt", .data = &qca_soc_data_wcn3991},
|
{ .compatible = "qcom,wcn3991-bt", .data = &qca_soc_data_wcn3991},
|
||||||
{ .compatible = "qcom,wcn3998-bt", .data = &qca_soc_data_wcn3998},
|
{ .compatible = "qcom,wcn3998-bt", .data = &qca_soc_data_wcn3998},
|
||||||
|
|||||||
Reference in New Issue
Block a user