scoopreg.h revision 1.2.2.2 1 1.2.2.2 yamt /* $NetBSD: scoopreg.h,v 1.2.2.2 2006/12/18 11:42:09 yamt Exp $ */
2 1.2.2.2 yamt /* $OpenBSD: zaurus_scoopreg.h,v 1.7 2005/07/01 23:51:55 uwe Exp $ */
3 1.2.2.2 yamt
4 1.2.2.2 yamt /*
5 1.2.2.2 yamt * Copyright (c) 2005 Uwe Stuehler <uwe (at) bsdx.de>
6 1.2.2.2 yamt *
7 1.2.2.2 yamt * Permission to use, copy, modify, and distribute this software for any
8 1.2.2.2 yamt * purpose with or without fee is hereby granted, provided that the above
9 1.2.2.2 yamt * copyright notice and this permission notice appear in all copies.
10 1.2.2.2 yamt *
11 1.2.2.2 yamt * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 1.2.2.2 yamt * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 1.2.2.2 yamt * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 1.2.2.2 yamt * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 1.2.2.2 yamt * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 1.2.2.2 yamt * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 1.2.2.2 yamt * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 1.2.2.2 yamt */
19 1.2.2.2 yamt
20 1.2.2.2 yamt #define SCOOP_SIZE 0x2c
21 1.2.2.2 yamt
22 1.2.2.2 yamt /* registers and values */
23 1.2.2.2 yamt
24 1.2.2.2 yamt #define SCOOP_MCR 0x00
25 1.2.2.2 yamt #define SCP_MCR_IOCARD 0x0010
26 1.2.2.2 yamt #define SCOOP_CDR 0x04 /* card detect register */
27 1.2.2.2 yamt #define SCP_CDR_DETECT 0x0002
28 1.2.2.2 yamt #define SCOOP_CSR 0x08 /* card status register */
29 1.2.2.2 yamt #define SCP_CSR_READY 0x0002
30 1.2.2.2 yamt #define SCP_CSR_MISSING 0x0004
31 1.2.2.2 yamt #define SCP_CSR_WPROT 0x0008
32 1.2.2.2 yamt #define SCP_CSR_BVD1 0x0010
33 1.2.2.2 yamt #define SCP_CSR_BVD2 0x0020
34 1.2.2.2 yamt #define SCP_CSR_3V 0x0040
35 1.2.2.2 yamt #define SCP_CSR_PWR 0x0080
36 1.2.2.2 yamt #define SCOOP_CPR 0x0c /* card power register */
37 1.2.2.2 yamt #define SCP_CPR_OFF 0x0000
38 1.2.2.2 yamt #define SCP_CPR_3V 0x0001
39 1.2.2.2 yamt #define SCP_CPR_5V 0x0002
40 1.2.2.2 yamt #define SCP_CPR_SD 0x0004
41 1.2.2.2 yamt #define SCP_CPR_PWR 0x0080
42 1.2.2.2 yamt #define SCOOP_CCR 0x10 /* card control register */
43 1.2.2.2 yamt #define SCP_CCR_RESET 0x0080
44 1.2.2.2 yamt #define SCOOP_IRR 0x14 /* XXX for pcic: bit 0x4 role is? */
45 1.2.2.2 yamt #define SCOOP_IRM 0x14
46 1.2.2.2 yamt #define SCOOP_IMR 0x18
47 1.2.2.2 yamt #define SCP_IMR_READY 0x0002
48 1.2.2.2 yamt #define SCP_IMR_DETECT 0x0004
49 1.2.2.2 yamt #define SCP_IMR_WRPROT 0x0008
50 1.2.2.2 yamt #define SCP_IMR_STSCHG 0x0010
51 1.2.2.2 yamt #define SCP_IMR_BATWARN 0x0020
52 1.2.2.2 yamt #define SCP_IMR_UNKN0 0x0040
53 1.2.2.2 yamt #define SCP_IMR_UNKN1 0x0080
54 1.2.2.2 yamt #define SCOOP_ISR 0x1c
55 1.2.2.2 yamt #define SCOOP_GPCR 0x20 /* GPIO pin direction (R/W) */
56 1.2.2.2 yamt #define SCOOP_GPWR 0x24 /* GPIO pin output level (R/W) */
57 1.2.2.2 yamt #define SCOOP_GPRR 0x28 /* GPIO pin input level (R) */
58 1.2.2.2 yamt
59 1.2.2.2 yamt /* GPIO bits */
60 1.2.2.2 yamt
61 1.2.2.2 yamt #define SCOOP0_LED_GREEN 1
62 1.2.2.2 yamt #define SCOOP0_JK_B_C3000 2
63 1.2.2.2 yamt #define SCOOP0_CHARGE_OFF_C3000 3
64 1.2.2.2 yamt #define SCOOP0_MUTE_L 4
65 1.2.2.2 yamt #define SCOOP0_MUTE_R 5
66 1.2.2.2 yamt #define SCOOP0_AKIN_PULLUP 6
67 1.2.2.2 yamt #define SCOOP0_CF_POWER_C3000 6
68 1.2.2.2 yamt #define SCOOP0_APM_ON 7
69 1.2.2.2 yamt #define SCOOP0_LED_ORANGE_C3000 7
70 1.2.2.2 yamt #define SCOOP0_BACKLIGHT_CONT 8
71 1.2.2.2 yamt #define SCOOP0_JK_A_C3000 8
72 1.2.2.2 yamt #define SCOOP0_MIC_BIAS 9
73 1.2.2.2 yamt #define SCOOP0_ADC_TEMP_ON_C3000 9
74 1.2.2.2 yamt
75 1.2.2.2 yamt #define SCOOP1_IR_ON 1
76 1.2.2.2 yamt #define SCOOP1_AKIN_PULLUP 2
77 1.2.2.2 yamt #define SCOOP1_RESERVED_3 3
78 1.2.2.2 yamt #define SCOOP1_RESERVED_4 4
79 1.2.2.2 yamt #define SCOOP1_RESERVED_5 5
80 1.2.2.2 yamt #define SCOOP1_RESERVED_6 6
81 1.2.2.2 yamt #define SCOOP1_BACKLIGHT_CONT 7
82 1.2.2.2 yamt #define SCOOP1_BACKLIGHT_ON 8
83 1.2.2.2 yamt #define SCOOP1_MIC_BIAS 9
84