diff options
| author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2008-10-27 00:09:14 +0000 |
|---|---|---|
| committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2008-10-27 00:09:14 +0000 |
| commit | e865720075d5ac0fd1532c91748d926f475bdf22 (patch) | |
| tree | d343f81008575a2688dd043778e15dabe92ff3d6 | |
| parent | e06d0e0a921bb865b220013b4ea96102fe538712 (diff) | |
Notes
| -rw-r--r-- | sys/powerpc/powermac/ata_kauai.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/powerpc/powermac/ata_kauai.c b/sys/powerpc/powermac/ata_kauai.c index 53fc67622871..415d0fb0e69e 100644 --- a/sys/powerpc/powermac/ata_kauai.c +++ b/sys/powerpc/powermac/ata_kauai.c @@ -292,16 +292,12 @@ ata_kauai_attach(device_t dev) #endif /* Set up initial mode */ - if (sc->shasta) - sc->pioconf[0] = sc->pioconf[1] = pio_timing_shasta[4]; - else - sc->pioconf[0] = sc->pioconf[1] = pio_timing_kauai[4]; + sc->pioconf[0] = sc->pioconf[1] = + bus_read_4(sc->sc_memr, PIO_CONFIG_REG) & 0x0f000fff; sc->udmaconf[0] = sc->udmaconf[1] = 0; sc->wdmaconf[0] = sc->wdmaconf[1] = 0; - bus_write_4(sc->sc_memr, PIO_CONFIG_REG, sc->pioconf[0]); - /* Magic FCR value from Apple */ bus_write_4(sc->sc_memr, 0, 0x00000007); |
