summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-04-16 21:09:01 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-04-16 21:09:01 +0000
commitae2bada6379b2d56825f0d8cc48dbd9a1890a1bd (patch)
tree85faa808e1933d20266a9d1a00f7c3222f2f4834
parentb853badf9af0a9ea4acf13559137c0b958e86e05 (diff)
Update STLC2500 init routine
-rw-r--r--tools/hciattach.c10
-rw-r--r--tools/hciattach_st.c5
2 files changed, 15 insertions, 0 deletions
diff --git a/tools/hciattach.c b/tools/hciattach.c
index cfccb9ab..885f202d 100644
--- a/tools/hciattach.c
+++ b/tools/hciattach.c
@@ -821,6 +821,13 @@ static int st(int fd, struct uart_t *u, struct termios *ti)
return 0;
}
+extern stlc2500_init(int fd);
+
+static int stlc2500(int fd, struct uart_t *u, struct termios *ti)
+{
+ return stlc2500_init(fd);
+}
+
/*
* Broadcom specific initialization
* Extracted from Jungo openrg
@@ -962,6 +969,9 @@ struct uart_t uart[] = {
/* ST Microelectronics minikits based on STLC2410/STLC2415 */
{ "st", 0x0000, 0x0000, HCI_UART_H4, 57600, 115200, FLOW_CTL, st },
+ /* ST Microelectronics minikits based on STLC2500 */
+ { "stlc2500", 0x0000, 0x0000, HCI_UART_H4, 115200, 115200, FLOW_CTL, stlc2500 },
+
/* Sphinx Electronics PICO Card */
{ "picocard", 0x025e, 0x1000, HCI_UART_H4, 115200, 115200, FLOW_CTL, NULL },
diff --git a/tools/hciattach_st.c b/tools/hciattach_st.c
index db73cfb5..744ae838 100644
--- a/tools/hciattach_st.c
+++ b/tools/hciattach_st.c
@@ -27,3 +27,8 @@
#include <stdio.h>
#include <errno.h>
+
+int stlc2500_init(int fd)
+{
+ return 0;
+}