summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sr/if_sr.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c
index d28522a..1d9958e 100644
--- a/sys/dev/sr/if_sr.c
+++ b/sys/dev/sr/if_sr.c
@@ -1458,8 +1458,10 @@ sr_init_msci(struct sr_softc *sc)
printf("sr%d: External Clock Selected.\n", portndx);
#endif
- SRC_PUT8(hc->sca_base, msci->rxs, 0);
- SRC_PUT8(hc->sca_base, msci->txs, 0);
+ SRC_PUT8(hc->sca_base, msci->rxs,
+ SCA_RXS_CLK_RXC0 | SCA_RXS_DIV1);
+ SRC_PUT8(hc->sca_base, msci->txs,
+ SCA_TXS_CLK_RX | SCA_TXS_DIV1);
break;
case SR_FLAGS_EXT_SEP_CLK:
@@ -1467,20 +1469,10 @@ sr_init_msci(struct sr_softc *sc)
printf("sr%d: Split Clocking Selected.\n", portndx);
#endif
-#if 1
- SRC_PUT8(hc->sca_base, msci->rxs, 0);
- SRC_PUT8(hc->sca_base, msci->txs, 0);
-#else
SRC_PUT8(hc->sca_base, msci->rxs,
SCA_RXS_CLK_RXC0 | SCA_RXS_DIV1);
-
- /*
- * We need to configure the internal bit clock for the
- * transmitter's channel...
- */
SRC_PUT8(hc->sca_base, msci->txs,
- SCA_TXS_CLK_RX | SCA_TXS_DIV1);
-#endif
+ SCA_TXS_CLK_TXC | SCA_TXS_DIV1);
break;
case SR_FLAGS_INT_CLK:
OpenPOWER on IntegriCloud