summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xivovp/base.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/xivovp/base.c b/xivovp/base.c
index 9f3cb1c..60c8964 100644
--- a/xivovp/base.c
+++ b/xivovp/base.c
@@ -76,14 +76,16 @@ static int alawoverride = 1; /* It's named like that in every DAHDI driver
doesn't make much sense. */
static int reverse_polarity = false;
static int wait_port0 = true;
+static int async_tdm = false;
static uint reset_gpio = 25;
module_param(init_dbg, uint, 0444);
module_param(reset_gpio, uint, 0444);
module_param(traces_vanish, int, 0444);
-module_param(wait_port0, int, 0444);
+module_param(wait_port0, bool, 0444);
module_param(alawoverride, int, 0600);
-module_param(reverse_polarity, int, 0600);
+module_param(reverse_polarity, bool, 0600);
+module_param(async_tdm, bool, 0444);
MODULE_PARM_DESC(init_dbg,
"initial VP_API debug mask (default: " __stringify(VP_DBG_ALL) ")");
@@ -872,13 +874,13 @@ test_evb_ve890_init(void)
static void
xivovp_port0_configured_cb(void *data)
{
- int rc;
+ int rc, tdm_config;
printk(KERN_ERR "%s START\n", __func__);
- if ((rc = xivo_tdm_config_port(xivovp.tdm_port,
- LE89316_XIOH_CONFIG,
- NULL))
+ tdm_config = async_tdm ? LE89316_ASYNC_XIOH_CONFIG
+ : LE89316_XIOH_CONFIG;
+ if ((rc = xivo_tdm_config_port(xivovp.tdm_port, tdm_config, NULL))
< 0) {
printk(KERN_CRIT "%s: xivo_tdm_config_port returned %d\n",
__func__, rc);