summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPavan Savoy <pavan_savoy@ti.com>2011-05-31 09:22:40 +0100
committerAndy Green <andy.green@linaro.org>2011-05-31 11:02:51 +0100
commite9e5f82a7d57535ed77a18644f69fed55ff4eadb (patch)
tree18796da514ba08b52d59ee75c29515f3059e3548 /include
parent637b3809799184245ea6e2b26e5f75e86d3dec5e (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')
-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 010cda7287a..7885a779c58 100644
--- a/include/linux/ti_wilink_st.h
+++ b/include/linux/ti_wilink_st.h
@@ -166,6 +166,11 @@ struct st_data_s {
void *kim_data;
};
+/*
+ * wrapper around tty->ops->write_room to check
+ * availability during firmware download
+ */
+int st_get_uart_wr_room(struct st_data_s *st_gdata);
/**
* st_int_write -
* point this to tty->driver->write or tty->ops->write
@@ -208,6 +213,7 @@ void gps_chrdrv_stub_init(void);
*/
#define LDISC_TIME 1000
#define CMD_RESP_TIME 800
+#define CMD_WR_TIME 5000
#define MAKEWORD(a, b) ((unsigned short)(((unsigned char)(a)) \
| ((unsigned short)((unsigned char)(b))) << 8))