summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2012-12-03 22:23:31 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-15 23:00:38 -0800
commitec063899b7b308019afa9f5eb32f0a58a6c6ee53 (patch)
treecf4ad8c5076dc75113677b1bbd053704308a58de /include
parent496c907740ff083499f5449d2907af442e79ceb0 (diff)
downloadlinux-ec063899b7b308019afa9f5eb32f0a58a6c6ee53.tar.bz2
serial: sccnxp: Implement polling mode
This patch adds support for polling work mode, i.e. system is perform periodical check chip status when IRQ-line is not connected to CPU. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/sccnxp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/sccnxp.h b/include/linux/platform_data/sccnxp.h
index 7311ccd3217f..096de90cf848 100644
--- a/include/linux/platform_data/sccnxp.h
+++ b/include/linux/platform_data/sccnxp.h
@@ -84,6 +84,8 @@ struct sccnxp_pdata {
const u8 reg_shift;
/* Modem control lines configuration */
const u32 mctrl_cfg[SCCNXP_MAX_UARTS];
+ /* Timer value for polling mode (usecs) */
+ const unsigned int poll_time_us;
/* Called during startup */
void (*init)(void);
/* Called before finish */