Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/dev According to http://eab.abime.net/showpos...
details: https://anonhg.NetBSD.org/src/rev/501c6c1b33bd
branches: trunk
changeset: 332126:501c6c1b33bd
user: phx <phx%NetBSD.org@localhost>
date: Sun Sep 07 22:24:40 2014 +0000
description:
According to http://eab.abime.net/showpost.php?p=782840&postcount=115
there are two methods for a Gayle PCMCIA soft-reset.
pccard_attach() only implemented a method with works on A600 and some
older (?) A1200 models. I added the second method as well, to make the
reset work in any case. Tested on the latest A1200 model, which failed before.
diffstat:
sys/arch/amiga/dev/gayle_pcmcia.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 49d630bc32a7 -r 501c6c1b33bd sys/arch/amiga/dev/gayle_pcmcia.c
--- a/sys/arch/amiga/dev/gayle_pcmcia.c Sun Sep 07 22:22:35 2014 +0000
+++ b/sys/arch/amiga/dev/gayle_pcmcia.c Sun Sep 07 22:24:40 2014 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: gayle_pcmcia.c,v 1.29 2014/01/22 00:25:16 christos Exp $ */
+/* $NetBSD: gayle_pcmcia.c,v 1.30 2014/09/07 22:24:40 phx Exp $ */
/* public domain */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gayle_pcmcia.c,v 1.29 2014/01/22 00:25:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gayle_pcmcia.c,v 1.30 2014/09/07 22:24:40 phx Exp $");
/* PCMCIA front-end driver for A1200's and A600's. */
@@ -206,6 +206,11 @@
/* reset the card if it's already there */
if (gayle_pcmcia_status_read() & GAYLE_CCMEM_DETECT) {
volatile u_int8_t x;
+
+ gayle_intr_ack(0xff);
+ delay(500);
+ gayle_intr_ack(0xfc);
+
*reset_card_reg = 0x0;
delay(1000);
x = *reset_card_reg;
Home |
Main Index |
Thread Index |
Old Index