Bluetooth: btnxpuart: Add support to download helper FW file for w8997
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Mon, 3 Apr 2023 12:24:27 +0000 (17:54 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 24 Apr 2023 05:01:14 +0000 (22:01 -0700)
commit38a4f83d802caf5e7ec93a187d211d87b6d67800
tree985990058ad67ae0fea4d617b801c6469afee837
parent09df5a91e620a2d21f7f410938e5e28364fae0bf
Bluetooth: btnxpuart: Add support to download helper FW file for w8997

This adds support to download helper FW file for the legacy NXP chipset
88w8997 for the btnxpuart driver. This helper FW file is necessary to
set the bootloader baudrate to 3000000 after which the actual BT FW file
can be downloaded. This change helps bring the FW download time from
around 10 sec to less than 2 sec for 88w8997 chip. For newer chipsets,
both V1 and V3 bootloader, driver sends the cmd5 and cmd7 to the chip
bootloader, and does not need a helper FW file.

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btnxpuart.c