aboutsummaryrefslogtreecommitdiff
path: root/sys/pccard/pccard.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2001-11-11 06:58:43 +0000
committerWarner Losh <imp@FreeBSD.org>2001-11-11 06:58:43 +0000
commit99b8465544c67ff5b740421d361c87fc23dce6ff (patch)
tree08189e087e41741b7b45ba39c6e1a5ecf7d94d55 /sys/pccard/pccard.c
parentb668d9a14a9abd5d919f1d324045053e9ca175a2 (diff)
Introduce the concept of "default" voltage. Have pccard layer use this
value (-1) in lue of 50 (which assumes a 5.0V card). The rest of the pccard system doesn't detect the proper voltage for the card, so we have to do it on powerup. Many (all?) 3.3V cards can tolerate 5.0V for reading the CIS, but may fail to operate properly when so powered. Idea from: Chiharu Shibata-san <chi@bd.mbn.or.jp> in bsd-nomads:15867
Notes
Notes: svn path=/head/; revision=86256
Diffstat (limited to 'sys/pccard/pccard.c')
-rw-r--r--sys/pccard/pccard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c
index 6eeeabe672f5..36556f9b93a2 100644
--- a/sys/pccard/pccard.c
+++ b/sys/pccard/pccard.c
@@ -305,7 +305,7 @@ inserted(void *arg)
/*
* Enable 5V to the card so that the CIS can be read.
*/
- slt->pwr.vcc = 50;
+ slt->pwr.vcc = -1;
slt->pwr.vpp = 50;
/*