diff options
author | Guillaume Knispel <gknispel@proformatique.com> | 2012-02-28 18:32:01 +0100 |
---|---|---|
committer | Guillaume Knispel <gknispel@proformatique.com> | 2012-02-28 18:32:01 +0100 |
commit | 59a7c543a70e59763a70ab71dae97da2d0febd86 (patch) | |
tree | cf22a0cef25b23665daa5f40f63e076d1b4096bc /tdm/xivo_tdm.c | |
parent | ed2ff86d36b27be481229f0e1eaf420f0fbb0945 (diff) |
trigger cs2 from xivo_tdm_trigger_handler
Diffstat (limited to 'tdm/xivo_tdm.c')
-rw-r--r-- | tdm/xivo_tdm.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tdm/xivo_tdm.c b/tdm/xivo_tdm.c index edd8c3a..ef170b1 100644 --- a/tdm/xivo_tdm.c +++ b/tdm/xivo_tdm.c @@ -134,6 +134,8 @@ static struct xivo_tdm_callbacks_struct xivo_tdm_callbacks; /* our local counters are coded on one byte: */ #define LOCAL_CPT_MASK (0xffu) +static u8 __iomem *g_cs_n2; + struct local_cpt { u8 tail; u8 head; @@ -459,11 +461,14 @@ EXPORT_SYMBOL(xivo_tdm_put_port); int xivo_tdm_config_port( struct xivo_tdm_port* xtp, - unsigned int port_config) + unsigned int port_config, + u8 __iomem *cs_n2) { icp_status_t status; icp_hssacc_port_config_params_t hss_port_config; + g_cs_n2 = cs_n2; + if (port_config >= ICP_HSSDRV_PORT_CONFIG_DELIMITER) { printk(KERN_ERR "%s: invalid port config %u\n", __func__, port_config); @@ -949,6 +954,9 @@ void xivo_tdm_trigger_handler(void) DBG_TRACE("-- rx -- %lu\n", delta_tsc); } + if (g_cs_n2) + writeb(0, g_cs_n2); + do { const u32 rx_entry = vrxq_info->queue.content[ // volatile (cpt[LOCAL_VOICE_RX_Q].wordTail++) |