diff options
author | Noe Rubinstein <nrubinstein@proformatique.com> | 2011-02-25 17:24:33 +0100 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@proformatique.com> | 2011-02-25 17:24:33 +0100 |
commit | 86a30d8e3400f697edb7388603e5ce43e1608471 (patch) | |
tree | 672e56ea3c18484e149bc5f198e92b6b6b6a4c95 /xhfc/base.c | |
parent | 9f1533b451a1e5393169c1337d6766987c7d14f5 (diff) |
update some outdated code
Diffstat (limited to 'xhfc/base.c')
-rw-r--r-- | xhfc/base.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/xhfc/base.c b/xhfc/base.c index 42fb14b..93b7fe0 100644 --- a/xhfc/base.c +++ b/xhfc/base.c @@ -45,14 +45,11 @@ int exit_after_reset = 0; uint ntte = 0x3; #ifdef USE_GPIO -static uint reset_gpio = 21; +static uint reset_gpio = 28; #endif -int softconf = 0; - module_param(debug, uint, S_IRUGO | S_IWUSR); module_param(dbg_spanfilter, uint, S_IRUGO | S_IWUSR); -module_param(softconf, bool, S_IRUGO); module_param(ntte, uint, S_IRUGO); module_param(exit_after_reset, bool, S_IRUGO); #ifdef USE_GPIO @@ -72,8 +69,6 @@ MODULE_PARM_DESC(debug, "Debug bitfield:\n" MODULE_PARM_DESC(dbg_spanfilter, "bitfield, filter debug info by span."); MODULE_PARM_DESC(ntte, "bitfield, configuration of the physical ports. " "ex: 0x3 = 0 NT, 1 NT, 2 TE, 3 TE."); -MODULE_PARM_DESC(softconf, - "Configure the S/T port line interface in software."); #ifdef USE_GPIO MODULE_PARM_DESC(reset_gpio, "Reset the XHFC using this GPIO"); #endif @@ -148,12 +143,7 @@ void xhfc_config_st(struct xhfc *x, int port, int nt) SET_V_B1_RX_EN(a_su_ctrl2, 1); SET_V_B2_RX_EN(a_su_ctrl2, 1); SET_V_SU_ACT(a_su_wr_sta, 3); /* activation */ - SET_V_SU_CLK_DLY(a_su_clk_dly, nt ? 0xC : 0xE); /* normal operation - * WARNING: if the - * interface is - * softconfigured, this - * should always be - * 0xC XXX */ + SET_V_SU_CLK_DLY(a_su_clk_dly, 0xC); /* OxE for TE not softconfigured */ SET_V_ST_SMPL(a_su_clk_dly, nt ? 0x6 : 0x0); /* default value */ write_xhfc(x, R_SU_SEL, r_su_sel); @@ -617,7 +607,7 @@ irqreturn_t xhfc_interrupt(int irq, void *dev_id, struct pt_regs* ptregs) for (i = 0; i < SPANS_PER_CHIP; i++) { handle_st_timers(&xhfc->spans[i]); - if (r_su_irq & (1 << i) || 2 == xhfc->ticks /* bootstrap XXX WTF*/) + if (r_su_irq & (1 << i)) handle_state_change(&xhfc->spans[i]); } } |