aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ti_wilink_st.h
diff options
context:
space:
mode:
authorPavan Savoy <pavan_savoy@ti.com>2011-02-04 03:23:13 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-04 15:41:21 -0500
commitef04d121f030329aae0c2d3ec22beea0c5cbcfd3 (patch)
tree891fe4bd9a903b553d058ad08d787fbb07d64565 /include/linux/ti_wilink_st.h
parent6710fcff66ef0330cdc458557271ee86026745d0 (diff)
drivers:misc: ti-st: firmware download optimization
To fasten the process of firmware download, the chip allows disabling of the command complete event generation from host. In these cases, only few very essential commands would have the command complete events and hence the wait associated with them. So now the driver would wait for a command complete event, only when it comes across a wait event during firmware parsing. This would also mean we need to skip not just the change baud rate command but also the wait for it. Signed-off-by: Pavan Savoy <pavan_savoy@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/ti_wilink_st.h')
-rw-r--r--include/linux/ti_wilink_st.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ti_wilink_st.h b/include/linux/ti_wilink_st.h
index 010cda7287a0..7885a779c588 100644
--- a/include/linux/ti_wilink_st.h
+++ b/include/linux/ti_wilink_st.h
@@ -166,6 +166,11 @@ struct st_data_s {
166 void *kim_data; 166 void *kim_data;
167}; 167};
168 168
169/*
170 * wrapper around tty->ops->write_room to check
171 * availability during firmware download
172 */
173int st_get_uart_wr_room(struct st_data_s *st_gdata);
169/** 174/**
170 * st_int_write - 175 * st_int_write -
171 * point this to tty->driver->write or tty->ops->write 176 * point this to tty->driver->write or tty->ops->write
@@ -208,6 +213,7 @@ void gps_chrdrv_stub_init(void);
208 */ 213 */
209#define LDISC_TIME 1000 214#define LDISC_TIME 1000
210#define CMD_RESP_TIME 800 215#define CMD_RESP_TIME 800
216#define CMD_WR_TIME 5000
211#define MAKEWORD(a, b) ((unsigned short)(((unsigned char)(a)) \ 217#define MAKEWORD(a, b) ((unsigned short)(((unsigned char)(a)) \
212 | ((unsigned short)((unsigned char)(b))) << 8)) 218 | ((unsigned short)((unsigned char)(b))) << 8))
213 219