Skip to contentSkip to conversation

patch for firmware download to Qualcomm Bluetooth chip

PATCH Matt Wilson 1 participant 2 messages Feb 26, 2010 – Mar 12, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Marcel,

Please let us know if this patch will be acceptable or suggestions for changes to make it so.

Thanks,

Matt Wilson

Quoted 1 line

From 76d0bdd82a0a4e5b3b9544bb864c31888f20cea1 Mon Sep 17 00:00:00 2001

From: Wilson, Matt <[email protected]>
Date: Thu, 11 Feb 2010 11:53:29 -0600
Subject: [PATCH] Firmware download for Qualcomm Bluetooth devices

---
 Makefile.tools             |    3 +-
 tools/hciattach.c          |    9 ++
 tools/hciattach.h          |    4 +
 tools/hciattach_qualcomm.c |  279 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 294 insertions(+), 1 deletions(-)
 create mode 100644 tools/hciattach_qualcomm.c
Makefile.tools +2 -1
index 2735d68..7b92c8f 100644
@@ -23,7 +23,8 @@ tools_l2ping_LDADD = lib/libbluetooth.la
 tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
 						tools/hciattach_st.c \
 						tools/hciattach_ti.c \
-						tools/hciattach_tialt.c
+						tools/hciattach_tialt.c \
+						tools/hciattach_qualcomm.c
 tools_hciattach_LDADD = lib/libbluetooth.la
 
 tools_hciconfig_SOURCES = tools/hciconfig.c tools/csr.h tools/csr.c \
tools/hciattach.c +9 -0
index 364c5ff..d6aafbe 100644
@@ -5,6 +5,7 @@
  *  Copyright (C) 2000-2001  Qualcomm Incorporated
  *  Copyright (C) 2002-2003  Maxim Krasnyansky <[email protected]>
  *  Copyright (C) 2002-2010  Marcel Holtmann <[email protected]>
+ *  Copyright (C) 2010, Code Aurora Forum. All rights reserved.
  *
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -299,6 +300,11 @@ static int texasalt(int fd, struct uart_t *u, struct termios *ti)
 	return texasalt_init(fd, u->speed, ti);
 }
 
+static int qualcomm(int fd, struct uart_t *u, struct termios *ti)
+{
+	return qualcomm_init(fd, u->speed, ti, u->bdaddr);
+}
+
 static int read_check(int fd, void *buf, int count)
 {
 	int res;
@@ -1071,6 +1077,9 @@ struct uart_t uart[] = {
 	/* Broadcom BCM2035 */
 	{ "bcm2035",    0x0A5C, 0x2035, HCI_UART_H4,   115200, 460800, FLOW_CTL, NULL, bcm2035  },
 
+	/* QUALCOMM BTS */
+	{ "qualcomm",   0x0000, 0x0000, HCI_UART_H4,   115200, 115200, FLOW_CTL, NULL, qualcomm },
+
 	{ NULL, 0 }
 };
 
tools/hciattach.h +4 -0
index 867563b..5c89013 100644
@@ -3,6 +3,7 @@
  *  BlueZ - Bluetooth protocol stack for Linux
  *
  *  Copyright (C) 2003-2010  Marcel Holtmann <[email protected]>
+ *  Copyright (c) 2010, Code Aurora Forum. All rights reserved.
  *
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -45,3 +46,6 @@ int texas_post(int fd, struct termios *ti);
 int texasalt_init(int fd, int speed, struct termios *ti);
 int stlc2500_init(int fd, bdaddr_t *bdaddr);
 int bgb2xx_init(int dd, bdaddr_t *bdaddr);
+int qualcomm_init(int fd, int speed, struct termios *ti, const char *bdaddr);
+
+
tools/hciattach_qualcomm.c new file +279 -0

279 lines not on this page · raw message

Signature · 1 line
1.6.3.3
#1 lore raw

Any comments for this patch?
Sorry to send only CC: to the list before.
I assume that error makes a review difficult.

I have an update for this patch for setting baud rate and do not know if I should update the original or make a new separate patch.

Please also find the original ones (download patch and firmware patch) here:
https://www.codeaurora.org/patches/quic/chrome/0001-Firmware-download-for-Qualcomm-Bluetooth-devices.patch

https://www.codeaurora.org/patches/quic/chrome/0001-Firmware-for-Qualcomm-Bluetooth-BTS4025.patch

These are from the Code Aurora Forum partner Qualcomm Innovation Center, Inc.

Best regards,

Matt Wilson