From 1619805395bce69a08d072107472f742e4578903 Mon Sep 17 00:00:00 2001 From: Prateek Raj Singh Date: Wed, 21 Apr 2021 10:56:38 +0530 Subject: [PATCH] Add support for new HSP version This patch contains changes for adding support for new HSP SoC versions. CRs-Fixed: 2941918 Change-Id: I170bf26458dbeb84182ead97594c3dc605b1a64f Signed-off-by: Prateek Raj Singh --- drivers/bluetooth/btfm_slim.c | 4 +++- drivers/bluetooth/btfm_slim_slave.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/btfm_slim.c b/drivers/bluetooth/btfm_slim.c index 3a2f711421a3..bba66b79fab4 100644 --- a/drivers/bluetooth/btfm_slim.c +++ b/drivers/bluetooth/btfm_slim.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ #include @@ -442,6 +442,8 @@ int btfm_slim_hw_init(struct btfmslim *btfmslim) if (chipset_ver == QCA_HSP_SOC_ID_0100 || chipset_ver == QCA_HSP_SOC_ID_0110 || + chipset_ver == QCA_HSP_SOC_ID_0210 || + chipset_ver == QCA_HSP_SOC_ID_1211 || chipset_ver == QCA_HSP_SOC_ID_0200) { BTFMSLIM_INFO("chipset is hastings prime, overwriting EA"); slim->e_addr[0] = 0x00; diff --git a/drivers/bluetooth/btfm_slim_slave.h b/drivers/bluetooth/btfm_slim_slave.h index 0c75aa89e45f..4bcc12cd386e 100644 --- a/drivers/bluetooth/btfm_slim_slave.h +++ b/drivers/bluetooth/btfm_slim_slave.h @@ -110,6 +110,8 @@ enum { QCA_HSP_SOC_ID_0100 = 0x400C0100, QCA_HSP_SOC_ID_0110 = 0x400C0110, QCA_HSP_SOC_ID_0200 = 0x400C0200, + QCA_HSP_SOC_ID_0210 = 0x400C0210, + QCA_HSP_SOC_ID_1211 = 0x400C1211, }; enum {