summaryrefslogtreecommitdiff
path: root/xhfc/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'xhfc/base.c')
-rw-r--r--xhfc/base.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xhfc/base.c b/xhfc/base.c
index e37aef0..0a385ad 100644
--- a/xhfc/base.c
+++ b/xhfc/base.c
@@ -1079,6 +1079,7 @@ static int __devinit xhfc_init_one(struct pci_dev *pdev,
u8 **readchunk_ptrs[XIVO_TDM_TS_NUM] = { 0 };
u8 **writechunk_ptrs[XIVO_TDM_TS_NUM] = { 0 };
#endif
+ u8 __iomem *cs_n2;
pi = g_pi;
@@ -1119,6 +1120,7 @@ static int __devinit xhfc_init_one(struct pci_dev *pdev,
/* we have no LEB CS configured to 32MB, so CS are every 16MB
* see [Intel 320066] 42.4.1.1 Chip Select Address Allocation */
pi->cs_n1 = pi->cs_n0 + 16 * 1024 * 1024;
+ cs_n2 = pi->cs_n0 + 32 * 1024 * 1024;
/* WARNING: don't use cs_n0 / cs_n1 before leb_init() */
@@ -1188,7 +1190,8 @@ static int __devinit xhfc_init_one(struct pci_dev *pdev,
/* TDM started on the XHFC side, XHFC is MASTER */
/* Now it's possible to start the TDM bus on the EP80579 side, as SLAVE: */
if ((rc = xivo_tdm_config_port(pi->tdm_port,
- XHFC_MEGREZ_PROTO_XIVO_CONFIG)) < 0) {
+ XHFC_MEGREZ_PROTO_XIVO_CONFIG,
+ cs_n2)) < 0) {
printk(KERN_ERR "%s %s: xivo_tdm_config_port failed (err=%d)\n",
DRIVER_NAME, __func__, rc);
goto err_tdm_config_port;