2 * Shared Transport Line discipline driver Core
3 * Init Manager module responsible for GPIO control
4 * and firmware download
5 * Copyright (C) 2009-2010 Texas Instruments
6 * Author: Pavan Savoy <pavan_savoy@ti.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #define pr_fmt(fmt) "(stk) :" fmt
24 #include <linux/platform_device.h>
25 #include <linux/jiffies.h>
26 #include <linux/firmware.h>
27 #include <linux/delay.h>
28 #include <linux/wait.h>
29 #include <linux/gpio.h>
30 #include <linux/debugfs.h>
31 #include <linux/seq_file.h>
32 #include <linux/sched.h>
33 #include <linux/rfkill.h>
35 /* understand BT events for fw response */
36 #include <net/bluetooth/bluetooth.h>
37 #include <net/bluetooth/hci_core.h>
38 #include <net/bluetooth/hci.h>
40 #include <linux/ti_wilink_st.h>
43 static int kim_probe(struct platform_device
*pdev
);
44 static int kim_remove(struct platform_device
*pdev
);
46 /* KIM platform device driver structure */
47 static struct platform_driver kim_platform_driver
= {
50 /* TODO: ST driver power management during suspend/resume ?
53 .suspend
= kim_suspend
,
62 static int kim_toggle_radio(void*, bool);
63 static const struct rfkill_ops kim_rfkill_ops
= {
64 .set_block
= kim_toggle_radio
,
67 /* strings to be used for rfkill entries and by
68 * ST Core to be used for sysfs debug entry
70 #define PROTO_ENTRY(type, name) name
71 const unsigned char *protocol_names
[] = {
72 PROTO_ENTRY(ST_BT
, "Bluetooth"),
73 PROTO_ENTRY(ST_FM
, "FM"),
74 PROTO_ENTRY(ST_GPS
, "GPS"),
77 #define MAX_ST_DEVICES 3 /* Imagine 1 on each UART for now */
78 struct platform_device
*st_kim_devices
[MAX_ST_DEVICES
];
80 /**********************************************************************/
81 /* internal functions */
84 * st_get_plat_device -
85 * function which returns the reference to the platform device
86 * requested by id. As of now only 1 such device exists (id=0)
87 * the context requesting for reference can get the id to be
88 * requested by a. The protocol driver which is registering or
89 * b. the tty device which is opened.
91 static struct platform_device
*st_get_plat_device(int id
)
93 return st_kim_devices
[id
];
97 * validate_firmware_response -
98 * function to return whether the firmware response was proper
99 * in case of error don't complete so that waiting for proper
102 void validate_firmware_response(struct kim_data_s
*kim_gdata
)
104 struct sk_buff
*skb
= kim_gdata
->rx_skb
;
105 if (unlikely(skb
->data
[5] != 0)) {
106 pr_err("no proper response during fw download");
107 pr_err("data6 %x", skb
->data
[5]);
108 return; /* keep waiting for the proper response */
110 /* becos of all the script being downloaded */
111 complete_all(&kim_gdata
->kim_rcvd
);
115 /* check for data len received inside kim_int_recv
116 * most often hit the last case to update state to waiting for data
118 static inline int kim_check_data_len(struct kim_data_s
*kim_gdata
, int len
)
120 register int room
= skb_tailroom(kim_gdata
->rx_skb
);
122 pr_debug("len %d room %d", len
, room
);
125 validate_firmware_response(kim_gdata
);
126 } else if (len
> room
) {
127 /* Received packet's payload length is larger.
128 * We can't accommodate it in created skb.
130 pr_err("Data length is too large len %d room %d", len
,
132 kfree_skb(kim_gdata
->rx_skb
);
134 /* Packet header has non-zero payload length and
135 * we have enough space in created skb. Lets read
137 kim_gdata
->rx_state
= ST_BT_W4_DATA
;
138 kim_gdata
->rx_count
= len
;
142 /* Change ST LL state to continue to process next
144 kim_gdata
->rx_state
= ST_W4_PACKET_TYPE
;
145 kim_gdata
->rx_skb
= NULL
;
146 kim_gdata
->rx_count
= 0;
152 * kim_int_recv - receive function called during firmware download
153 * firmware download responses on different UART drivers
154 * have been observed to come in bursts of different
155 * tty_receive and hence the logic
157 void kim_int_recv(struct kim_data_s
*kim_gdata
,
158 const unsigned char *data
, long count
)
161 struct hci_event_hdr
*eh
;
162 register int len
= 0, type
= 0;
164 pr_debug("%s", __func__
);
165 /* Decode received bytes here */
167 if (unlikely(ptr
== NULL
)) {
168 pr_err(" received null from TTY ");
172 if (kim_gdata
->rx_count
) {
173 len
= min_t(unsigned int, kim_gdata
->rx_count
, count
);
174 memcpy(skb_put(kim_gdata
->rx_skb
, len
), ptr
, len
);
175 kim_gdata
->rx_count
-= len
;
179 if (kim_gdata
->rx_count
)
182 /* Check ST RX state machine , where are we? */
183 switch (kim_gdata
->rx_state
) {
184 /* Waiting for complete packet ? */
186 pr_debug("Complete pkt received");
187 validate_firmware_response(kim_gdata
);
188 kim_gdata
->rx_state
= ST_W4_PACKET_TYPE
;
189 kim_gdata
->rx_skb
= NULL
;
191 /* Waiting for Bluetooth event header ? */
192 case ST_BT_W4_EVENT_HDR
:
193 eh
= (struct hci_event_hdr
*)kim_gdata
->
195 pr_debug("Event header: evt 0x%2.2x"
196 "plen %d", eh
->evt
, eh
->plen
);
197 kim_check_data_len(kim_gdata
, eh
->plen
);
199 } /* end of switch */
200 } /* end of if rx_state */
202 /* Bluetooth event packet? */
204 pr_info("Event packet");
205 kim_gdata
->rx_state
= ST_BT_W4_EVENT_HDR
;
206 kim_gdata
->rx_count
= HCI_EVENT_HDR_SIZE
;
207 type
= HCI_EVENT_PKT
;
210 pr_info("unknown packet");
218 bt_skb_alloc(HCI_MAX_FRAME_SIZE
, GFP_ATOMIC
);
219 if (!kim_gdata
->rx_skb
) {
220 pr_err("can't allocate mem for new packet");
221 kim_gdata
->rx_state
= ST_W4_PACKET_TYPE
;
222 kim_gdata
->rx_count
= 0;
225 bt_cb(kim_gdata
->rx_skb
)->pkt_type
= type
;
227 pr_info("done %s", __func__
);
231 static long read_local_version(struct kim_data_s
*kim_gdata
, char *bts_scr_name
)
233 unsigned short version
= 0, chip
= 0, min_ver
= 0, maj_ver
= 0;
234 char read_ver_cmd
[] = { 0x01, 0x01, 0x10, 0x00 };
236 pr_debug("%s", __func__
);
238 INIT_COMPLETION(kim_gdata
->kim_rcvd
);
239 if (4 != st_int_write(kim_gdata
->core_data
, read_ver_cmd
, 4)) {
240 pr_err("kim: couldn't write 4 bytes");
244 if (!wait_for_completion_timeout
245 (&kim_gdata
->kim_rcvd
, msecs_to_jiffies(CMD_RESP_TIME
))) {
246 pr_err(" waiting for ver info- timed out ");
251 MAKEWORD(kim_gdata
->resp_buffer
[13],
252 kim_gdata
->resp_buffer
[14]);
253 chip
= (version
& 0x7C00) >> 10;
254 min_ver
= (version
& 0x007F);
255 maj_ver
= (version
& 0x0380) >> 7;
257 if (version
& 0x8000)
260 sprintf(bts_scr_name
, "TIInit_%d.%d.%d.bts", chip
, maj_ver
, min_ver
);
262 /* to be accessed later via sysfs entry */
263 kim_gdata
->version
.full
= version
;
264 kim_gdata
->version
.chip
= chip
;
265 kim_gdata
->version
.maj_ver
= maj_ver
;
266 kim_gdata
->version
.min_ver
= min_ver
;
268 pr_info("%s", bts_scr_name
);
273 * download_firmware -
274 * internal function which parses through the .bts firmware
275 * script file intreprets SEND, DELAY actions only as of now
277 static long download_firmware(struct kim_data_s
*kim_gdata
)
281 register unsigned char *ptr
= NULL
;
282 register unsigned char *action_ptr
= NULL
;
283 unsigned char bts_scr_name
[30] = { 0 }; /* 30 char long bts scr name? */
285 err
= read_local_version(kim_gdata
, bts_scr_name
);
287 pr_err("kim: failed to read local ver");
291 request_firmware(&kim_gdata
->fw_entry
, bts_scr_name
,
292 &kim_gdata
->kim_pdev
->dev
);
293 if (unlikely((err
!= 0) || (kim_gdata
->fw_entry
->data
== NULL
) ||
294 (kim_gdata
->fw_entry
->size
== 0))) {
295 pr_err(" request_firmware failed(errno %ld) for %s", err
,
299 ptr
= (void *)kim_gdata
->fw_entry
->data
;
300 len
= kim_gdata
->fw_entry
->size
;
301 /* bts_header to remove out magic number and
304 ptr
+= sizeof(struct bts_header
);
305 len
-= sizeof(struct bts_header
);
307 while (len
> 0 && ptr
) {
308 pr_debug(" action size %d, type %d ",
309 ((struct bts_action
*)ptr
)->size
,
310 ((struct bts_action
*)ptr
)->type
);
312 switch (((struct bts_action
*)ptr
)->type
) {
313 case ACTION_SEND_COMMAND
: /* action send */
314 action_ptr
= &(((struct bts_action
*)ptr
)->data
[0]);
316 (((struct hci_command
*)action_ptr
)->opcode
==
318 /* ignore remote change
319 * baud rate HCI VS command */
321 (" change remote baud"
322 " rate command in firmware");
326 INIT_COMPLETION(kim_gdata
->kim_rcvd
);
327 err
= st_int_write(kim_gdata
->core_data
,
328 ((struct bts_action_send
*)action_ptr
)->data
,
329 ((struct bts_action
*)ptr
)->size
);
330 if (unlikely(err
< 0)) {
331 release_firmware(kim_gdata
->fw_entry
);
334 if (!wait_for_completion_timeout
335 (&kim_gdata
->kim_rcvd
,
336 msecs_to_jiffies(CMD_RESP_TIME
))) {
338 (" response timeout during fw download ");
340 release_firmware(kim_gdata
->fw_entry
);
344 case ACTION_DELAY
: /* sleep */
345 pr_info("sleep command in scr");
346 action_ptr
= &(((struct bts_action
*)ptr
)->data
[0]);
347 mdelay(((struct bts_action_delay
*)action_ptr
)->msec
);
351 len
- (sizeof(struct bts_action
) +
352 ((struct bts_action
*)ptr
)->size
);
354 ptr
+ sizeof(struct bts_action
) +
355 ((struct bts_action
*)ptr
)->size
;
357 /* fw download complete */
358 release_firmware(kim_gdata
->fw_entry
);
362 /**********************************************************************/
363 /* functions called from ST core */
364 /* function to toggle the GPIO
365 * needs to know whether the GPIO is active high or active low
367 void st_kim_chip_toggle(enum proto_type type
, enum kim_gpio_state state
)
369 struct platform_device
*kim_pdev
;
370 struct kim_data_s
*kim_gdata
;
371 pr_info(" %s ", __func__
);
373 kim_pdev
= st_get_plat_device(0);
374 kim_gdata
= dev_get_drvdata(&kim_pdev
->dev
);
376 if (kim_gdata
->gpios
[type
] == -1) {
377 pr_info(" gpio not requested for protocol %s",
378 protocol_names
[type
]);
387 if (state
== KIM_GPIO_ACTIVE
)
388 gpio_set_value(kim_gdata
->gpios
[ST_FM
], GPIO_LOW
);
390 gpio_set_value(kim_gdata
->gpios
[ST_FM
], GPIO_HIGH
);
394 if (state
== KIM_GPIO_ACTIVE
)
395 gpio_set_value(kim_gdata
->gpios
[ST_GPS
], GPIO_HIGH
);
397 gpio_set_value(kim_gdata
->gpios
[ST_GPS
], GPIO_LOW
);
408 /* called from ST Core, when REG_IN_PROGRESS (registration in progress)
410 * 1. response to read local version
411 * 2. during send/recv's of firmware download
413 void st_kim_recv(void *disc_data
, const unsigned char *data
, long count
)
415 struct st_data_s
*st_gdata
= (struct st_data_s
*)disc_data
;
416 struct kim_data_s
*kim_gdata
= st_gdata
->kim_data
;
418 pr_info(" %s ", __func__
);
419 /* copy to local buffer */
420 if (unlikely(data
[4] == 0x01 && data
[5] == 0x10 && data
[0] == 0x04)) {
421 /* must be the read_ver_cmd */
422 memcpy(kim_gdata
->resp_buffer
, data
, count
);
423 complete_all(&kim_gdata
->kim_rcvd
);
426 kim_int_recv(kim_gdata
, data
, count
);
427 /* either completes or times out */
432 /* to signal completion of line discipline installation
433 * called from ST Core, upon tty_open
435 void st_kim_complete(void *kim_data
)
437 struct kim_data_s
*kim_gdata
= (struct kim_data_s
*)kim_data
;
438 complete(&kim_gdata
->ldisc_installed
);
442 * st_kim_start - called from ST Core upon 1st registration
443 * This involves toggling the chip enable gpio, reading
444 * the firmware version from chip, forming the fw file name
445 * based on the chip version, requesting the fw, parsing it
446 * and perform download(send/recv).
448 long st_kim_start(void *kim_data
)
451 long retry
= POR_RETRY_COUNT
;
452 struct kim_data_s
*kim_gdata
= (struct kim_data_s
*)kim_data
;
454 pr_info(" %s", __func__
);
457 /* TODO: this is only because rfkill sub-system
458 * doesn't send events to user-space if the state
461 rfkill_set_hw_state(kim_gdata
->rfkill
[ST_BT
], 1);
462 /* Configure BT nShutdown to HIGH state */
463 gpio_set_value(kim_gdata
->gpios
[ST_BT
], GPIO_LOW
);
464 mdelay(5); /* FIXME: a proper toggle */
465 gpio_set_value(kim_gdata
->gpios
[ST_BT
], GPIO_HIGH
);
467 /* re-initialize the completion */
468 INIT_COMPLETION(kim_gdata
->ldisc_installed
);
469 #if 0 /* older way of signalling user-space UIM */
470 /* send signal to UIM */
471 err
= kill_pid(find_get_pid(kim_gdata
->uim_pid
), SIGUSR2
, 0);
473 pr_info(" sending SIGUSR2 to uim failed %ld", err
);
478 /* unblock and send event to UIM via /dev/rfkill */
479 rfkill_set_hw_state(kim_gdata
->rfkill
[ST_BT
], 0);
480 /* wait for ldisc to be installed */
481 err
= wait_for_completion_timeout(&kim_gdata
->ldisc_installed
,
482 msecs_to_jiffies(LDISC_TIME
));
483 if (!err
) { /* timeout */
484 pr_err("line disc installation timed out ");
488 /* ldisc installed now */
489 pr_info(" line discipline installed ");
490 err
= download_firmware(kim_gdata
);
492 pr_err("download firmware failed");
494 } else { /* on success don't retry */
503 * st_kim_stop - called from ST Core, on the last un-registration
504 * toggle low the chip enable gpio
506 long st_kim_stop(void *kim_data
)
509 struct kim_data_s
*kim_gdata
= (struct kim_data_s
*)kim_data
;
511 INIT_COMPLETION(kim_gdata
->ldisc_installed
);
512 #if 0 /* older way of signalling user-space UIM */
513 /* send signal to UIM */
514 err
= kill_pid(find_get_pid(kim_gdata
->uim_pid
), SIGUSR2
, 1);
516 pr_err("sending SIGUSR2 to uim failed %ld", err
);
520 /* set BT rfkill to be blocked */
521 err
= rfkill_set_hw_state(kim_gdata
->rfkill
[ST_BT
], 1);
523 /* wait for ldisc to be un-installed */
524 err
= wait_for_completion_timeout(&kim_gdata
->ldisc_installed
,
525 msecs_to_jiffies(LDISC_TIME
));
526 if (!err
) { /* timeout */
527 pr_err(" timed out waiting for ldisc to be un-installed");
531 /* By default configure BT nShutdown to LOW state */
532 gpio_set_value(kim_gdata
->gpios
[ST_BT
], GPIO_LOW
);
534 gpio_set_value(kim_gdata
->gpios
[ST_BT
], GPIO_HIGH
);
536 gpio_set_value(kim_gdata
->gpios
[ST_BT
], GPIO_LOW
);
540 /**********************************************************************/
541 /* functions called from subsystems */
542 /* called when debugfs entry is read from */
544 static int show_version(struct seq_file
*s
, void *unused
)
546 struct kim_data_s
*kim_gdata
= (struct kim_data_s
*)s
->private;
547 seq_printf(s
, "%04X %d.%d.%d\n", kim_gdata
->version
.full
,
548 kim_gdata
->version
.chip
, kim_gdata
->version
.maj_ver
,
549 kim_gdata
->version
.min_ver
);
553 static int show_list(struct seq_file
*s
, void *unused
)
555 struct kim_data_s
*kim_gdata
= (struct kim_data_s
*)s
->private;
556 kim_st_list_protocols(kim_gdata
->core_data
, s
);
560 /* function called from rfkill subsystem, when someone from
561 * user space would write 0/1 on the sysfs entry
562 * /sys/class/rfkill/rfkill0,1,3/state
564 static int kim_toggle_radio(void *data
, bool blocked
)
566 enum proto_type type
= *((enum proto_type
*)data
);
567 pr_debug(" %s: %d ", __func__
, type
);
576 st_kim_chip_toggle(type
, KIM_GPIO_INACTIVE
);
578 st_kim_chip_toggle(type
, KIM_GPIO_ACTIVE
);
581 pr_err(" wrong proto type ");
588 * st_kim_ref - reference the core's data
589 * This references the per-ST platform device in the arch/xx/
591 * This would enable multiple such platform devices to exist
592 * on a given platform
594 void st_kim_ref(struct st_data_s
**core_data
, int id
)
596 struct platform_device
*pdev
;
597 struct kim_data_s
*kim_gdata
;
598 /* get kim_gdata reference from platform device */
599 pdev
= st_get_plat_device(id
);
600 kim_gdata
= dev_get_drvdata(&pdev
->dev
);
601 *core_data
= kim_gdata
->core_data
;
604 static int kim_version_open(struct inode
*i
, struct file
*f
)
606 return single_open(f
, show_version
, i
->i_private
);
609 static int kim_list_open(struct inode
*i
, struct file
*f
)
611 return single_open(f
, show_list
, i
->i_private
);
614 static const struct file_operations version_debugfs_fops
= {
616 .open
= kim_version_open
,
619 .release
= single_release
,
621 static const struct file_operations list_debugfs_fops
= {
623 .open
= kim_list_open
,
626 .release
= single_release
,
629 /**********************************************************************/
630 /* functions called from platform device driver subsystem
631 * need to have a relevant platform device entry in the platform's
635 struct dentry
*kim_debugfs_dir
;
636 static int kim_probe(struct platform_device
*pdev
)
640 long *gpios
= pdev
->dev
.platform_data
;
641 struct kim_data_s
*kim_gdata
;
643 if ((pdev
->id
!= -1) && (pdev
->id
< MAX_ST_DEVICES
)) {
644 /* multiple devices could exist */
645 st_kim_devices
[pdev
->id
] = pdev
;
647 /* platform's sure about existance of 1 device */
648 st_kim_devices
[0] = pdev
;
651 kim_gdata
= kzalloc(sizeof(struct kim_data_s
), GFP_ATOMIC
);
653 pr_err("no mem to allocate");
656 dev_set_drvdata(&pdev
->dev
, kim_gdata
);
658 status
= st_core_init(&kim_gdata
->core_data
);
660 pr_err(" ST core init failed");
663 /* refer to itself */
664 kim_gdata
->core_data
->kim_data
= kim_gdata
;
666 for (proto
= 0; proto
< ST_MAX
; proto
++) {
667 kim_gdata
->gpios
[proto
] = gpios
[proto
];
668 pr_info(" %ld gpio to be requested", gpios
[proto
]);
671 for (proto
= 0; (proto
< ST_MAX
) && (gpios
[proto
] != -1); proto
++) {
672 /* Claim the Bluetooth/FM/GPIO
673 * nShutdown gpio from the system
675 status
= gpio_request(gpios
[proto
], "kim");
676 if (unlikely(status
)) {
677 pr_err(" gpio %ld request failed ", gpios
[proto
]);
680 if (gpios
[proto
] != -1)
681 gpio_free(gpios
[proto
]);
686 /* Configure nShutdown GPIO as output=0 */
688 gpio_direction_output(gpios
[proto
], 0);
689 if (unlikely(status
)) {
690 pr_err(" unable to configure gpio %ld",
694 if (gpios
[proto
] != -1)
695 gpio_free(gpios
[proto
]);
700 /* get reference of pdev for request_firmware
702 kim_gdata
->kim_pdev
= pdev
;
703 init_completion(&kim_gdata
->kim_rcvd
);
704 init_completion(&kim_gdata
->ldisc_installed
);
706 for (proto
= 0; (proto
< ST_MAX
) && (gpios
[proto
] != -1); proto
++) {
707 /* TODO: should all types be rfkill_type_bt ? */
708 kim_gdata
->rf_protos
[proto
] = proto
;
709 kim_gdata
->rfkill
[proto
] = rfkill_alloc(protocol_names
[proto
],
710 &pdev
->dev
, RFKILL_TYPE_BLUETOOTH
,
711 &kim_rfkill_ops
, &kim_gdata
->rf_protos
[proto
]);
712 if (kim_gdata
->rfkill
[proto
] == NULL
) {
713 pr_err("cannot create rfkill entry for gpio %ld",
717 /* block upon creation */
718 rfkill_init_sw_state(kim_gdata
->rfkill
[proto
], 1);
719 status
= rfkill_register(kim_gdata
->rfkill
[proto
]);
720 if (unlikely(status
)) {
721 pr_err("rfkill registration failed for gpio %ld",
723 rfkill_unregister(kim_gdata
->rfkill
[proto
]);
726 pr_info("rfkill entry created for %ld", gpios
[proto
]);
729 kim_debugfs_dir
= debugfs_create_dir("ti-st", NULL
);
730 if (IS_ERR(kim_debugfs_dir
)) {
731 pr_err(" debugfs entries creation failed ");
732 kim_debugfs_dir
= NULL
;
736 debugfs_create_file("version", S_IRUGO
, kim_debugfs_dir
,
737 kim_gdata
, &version_debugfs_fops
);
738 debugfs_create_file("protocols", S_IRUGO
, kim_debugfs_dir
,
739 kim_gdata
, &list_debugfs_fops
);
740 pr_info(" debugfs entries created ");
744 static int kim_remove(struct platform_device
*pdev
)
746 /* free the GPIOs requested
748 long *gpios
= pdev
->dev
.platform_data
;
750 struct kim_data_s
*kim_gdata
;
752 kim_gdata
= dev_get_drvdata(&pdev
->dev
);
754 for (proto
= 0; (proto
< ST_MAX
) && (gpios
[proto
] != -1); proto
++) {
755 /* Claim the Bluetooth/FM/GPIO
756 * nShutdown gpio from the system
758 gpio_free(gpios
[proto
]);
759 rfkill_unregister(kim_gdata
->rfkill
[proto
]);
760 rfkill_destroy(kim_gdata
->rfkill
[proto
]);
761 kim_gdata
->rfkill
[proto
] = NULL
;
763 pr_info("kim: GPIO Freed");
764 debugfs_remove_recursive(kim_debugfs_dir
);
765 kim_gdata
->kim_pdev
= NULL
;
766 st_core_exit(kim_gdata
->core_data
);
773 /**********************************************************************/
774 /* entry point for ST KIM module, called in from ST Core */
776 static int __init
st_kim_init(void)
779 ret
= platform_driver_register(&kim_platform_driver
);
781 pr_err("platform drv registration failed");
787 static void __exit
st_kim_deinit(void)
789 /* the following returns void */
790 platform_driver_unregister(&kim_platform_driver
);
794 module_init(st_kim_init
);
795 module_exit(st_kim_deinit
);
796 MODULE_AUTHOR("Pavan Savoy <pavan_savoy@ti.com>");
797 MODULE_DESCRIPTION("Shared Transport Driver for TI BT/FM/GPS combo chips ");
798 MODULE_LICENSE("GPL");