aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>2011-10-14 12:52:18 +0200
committerRobert Marklund <robert.marklund@stericsson.com>2011-10-27 16:09:03 +0200
commitebd4984fbb0a90f69ecef2ef721a6df96a859a2f (patch)
tree3799bb1d20b8ea897818003ba1efa40a610b3c90
parentc46fbdcc19f267053e7613a424f8b939abc3f238 (diff)
downloadlinux-3.0-ux500-ebd4984fbb0a90f69ecef2ef721a6df96a859a2f.tar.gz
cg2900: Add support for 3.25 Mbps
With this patch it is possible to set baud rate 3.25 Mbps on CG2900 UART. ST-Ericsson ID: 364789 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: Not tested, 364789 Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com> Change-Id: If54af597b949038e9ef4c05d80c9235666e127a4 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32689 Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Tested-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
-rw-r--r--drivers/staging/cg2900/bluetooth/cg2900_uart.c4
-rw-r--r--drivers/staging/cg2900/mfd/cg2900_chip.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/cg2900/bluetooth/cg2900_uart.c b/drivers/staging/cg2900/bluetooth/cg2900_uart.c
index d766e11..35df53c 100644
--- a/drivers/staging/cg2900/bluetooth/cg2900_uart.c
+++ b/drivers/staging/cg2900/bluetooth/cg2900_uart.c
@@ -114,6 +114,7 @@
#define CG2900_BAUD_RATE_921600 0x20
#define CG2900_BAUD_RATE_2000000 0x25
#define CG2900_BAUD_RATE_3000000 0x27
+#define CG2900_BAUD_RATE_3250000 0x28
#define CG2900_BAUD_RATE_4000000 0x2B
/* GNSS */
@@ -1061,6 +1062,9 @@ static struct sk_buff *alloc_set_baud_rate_cmd(struct uart_info *uart_info,
case 3000000:
cmd->baud_rate = CG2900_BAUD_RATE_3000000;
break;
+ case 3250000:
+ cmd->baud_rate = CG2900_BAUD_RATE_3250000;
+ break;
case 4000000:
cmd->baud_rate = CG2900_BAUD_RATE_4000000;
break;
diff --git a/drivers/staging/cg2900/mfd/cg2900_chip.h b/drivers/staging/cg2900/mfd/cg2900_chip.h
index a53009f..b3fd556 100644
--- a/drivers/staging/cg2900/mfd/cg2900_chip.h
+++ b/drivers/staging/cg2900/mfd/cg2900_chip.h
@@ -109,6 +109,7 @@ struct bt_vs_bt_enable_cmd {
#define CG2900_BAUD_RATE_921600 0x20
#define CG2900_BAUD_RATE_2000000 0x25
#define CG2900_BAUD_RATE_3000000 0x27
+#define CG2900_BAUD_RATE_3250000 0x28
#define CG2900_BAUD_RATE_4000000 0x2B
/* BT VS SetBaudRate command */