summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus/dev/zaurus_scoopreg.h
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2007-03-18 20:50:24 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2007-03-18 20:50:24 +0000
commitdbae9d9f778079bf5b61ef91c0bb7361e2a5f1e4 (patch)
tree5a5022855ab04a29786dcdc23b6bb0e1b4a2c44c /sys/arch/zaurus/dev/zaurus_scoopreg.h
parent2820d116979e135234d1261ada149c763a9c0e8f (diff)
Add an interface to scoop(4) to control CF and SD card power
Diffstat (limited to 'sys/arch/zaurus/dev/zaurus_scoopreg.h')
-rw-r--r--sys/arch/zaurus/dev/zaurus_scoopreg.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_scoopreg.h b/sys/arch/zaurus/dev/zaurus_scoopreg.h
index c2aa000147a..b5a87619883 100644
--- a/sys/arch/zaurus/dev/zaurus_scoopreg.h
+++ b/sys/arch/zaurus/dev/zaurus_scoopreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_scoopreg.h,v 1.7 2005/07/01 23:51:55 uwe Exp $ */
+/* $OpenBSD: zaurus_scoopreg.h,v 1.8 2007/03/18 20:50:23 uwe Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de>
@@ -34,8 +34,10 @@
#define SCP_CSR_PWR 0x0080
#define SCOOP_CPR 0x0c /* card power register */
#define SCP_CPR_OFF 0x0000
-#define SCP_CPR_3V 0x0001
-#define SCP_CPR_5V 0x0002
+#define SCP_CPR_3V 0x0001 /* 3V for CF card */
+#define SCP_CPR_5V 0x0002 /* 5V for CF card */
+#define SCP_CPR_SD_3V 0x0004 /* 3.3V for SD/MMC card */
+#define SCP_CPR_VOLTAGE_MSK 0x0007
#define SCP_CPR_PWR 0x0080
#define SCOOP_CCR 0x10 /* card control register */
#define SCP_CCR_RESET 0x0080