diff options
Diffstat (limited to 'include/asm-arm/arch-pxa/tosa.h')
-rw-r--r-- | include/asm-arm/arch-pxa/tosa.h | 198 |
1 files changed, 0 insertions, 198 deletions
diff --git a/include/asm-arm/arch-pxa/tosa.h b/include/asm-arm/arch-pxa/tosa.h deleted file mode 100644 index a72803f0461b..000000000000 --- a/include/asm-arm/arch-pxa/tosa.h +++ /dev/null | |||
@@ -1,198 +0,0 @@ | |||
1 | /* | ||
2 | * Hardware specific definitions for Sharp SL-C6000x series of PDAs | ||
3 | * | ||
4 | * Copyright (c) 2005 Dirk Opfer | ||
5 | * | ||
6 | * Based on Sharp's 2.4 kernel patches | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | ||
13 | #ifndef _ASM_ARCH_TOSA_H_ | ||
14 | #define _ASM_ARCH_TOSA_H_ 1 | ||
15 | |||
16 | /* TOSA Chip selects */ | ||
17 | #define TOSA_LCDC_PHYS PXA_CS4_PHYS | ||
18 | /* Internel Scoop */ | ||
19 | #define TOSA_CF_PHYS (PXA_CS2_PHYS + 0x00800000) | ||
20 | /* Jacket Scoop */ | ||
21 | #define TOSA_SCOOP_PHYS (PXA_CS5_PHYS + 0x00800000) | ||
22 | |||
23 | /* | ||
24 | * SCOOP2 internal GPIOs | ||
25 | */ | ||
26 | #define TOSA_SCOOP_GPIO_BASE NR_BUILTIN_GPIO | ||
27 | #define TOSA_SCOOP_PXA_VCORE1 SCOOP_GPCR_PA11 | ||
28 | #define TOSA_GPIO_TC6393XB_REST_IN (TOSA_SCOOP_GPIO_BASE + 1) | ||
29 | #define TOSA_GPIO_IR_POWERDWN (TOSA_SCOOP_GPIO_BASE + 2) | ||
30 | #define TOSA_GPIO_SD_WP (TOSA_SCOOP_GPIO_BASE + 3) | ||
31 | #define TOSA_GPIO_PWR_ON (TOSA_SCOOP_GPIO_BASE + 4) | ||
32 | #define TOSA_SCOOP_AUD_PWR_ON SCOOP_GPCR_PA16 | ||
33 | #define TOSA_GPIO_BT_RESET (TOSA_SCOOP_GPIO_BASE + 6) | ||
34 | #define TOSA_GPIO_BT_PWR_EN (TOSA_SCOOP_GPIO_BASE + 7) | ||
35 | #define TOSA_SCOOP_AC_IN_OL SCOOP_GPCR_PA19 | ||
36 | |||
37 | /* GPIO Direction 1 : output mode / 0:input mode */ | ||
38 | #define TOSA_SCOOP_IO_DIR (TOSA_SCOOP_PXA_VCORE1 | \ | ||
39 | TOSA_SCOOP_AUD_PWR_ON) | ||
40 | |||
41 | /* | ||
42 | * SCOOP2 jacket GPIOs | ||
43 | */ | ||
44 | #define TOSA_SCOOP_JC_GPIO_BASE (NR_BUILTIN_GPIO + 12) | ||
45 | #define TOSA_GPIO_BT_LED (TOSA_SCOOP_JC_GPIO_BASE + 0) | ||
46 | #define TOSA_GPIO_NOTE_LED (TOSA_SCOOP_JC_GPIO_BASE + 1) | ||
47 | #define TOSA_GPIO_CHRG_ERR_LED (TOSA_SCOOP_JC_GPIO_BASE + 2) | ||
48 | #define TOSA_GPIO_USB_PULLUP (TOSA_SCOOP_JC_GPIO_BASE + 3) | ||
49 | #define TOSA_GPIO_TC6393XB_SUSPEND (TOSA_SCOOP_JC_GPIO_BASE + 4) | ||
50 | #define TOSA_GPIO_TC6393XB_L3V_ON (TOSA_SCOOP_JC_GPIO_BASE + 5) | ||
51 | #define TOSA_SCOOP_JC_WLAN_DETECT SCOOP_GPCR_PA17 | ||
52 | #define TOSA_GPIO_WLAN_LED (TOSA_SCOOP_JC_GPIO_BASE + 7) | ||
53 | #define TOSA_SCOOP_JC_CARD_LIMIT_SEL SCOOP_GPCR_PA19 | ||
54 | |||
55 | /* GPIO Direction 1 : output mode / 0:input mode */ | ||
56 | #define TOSA_SCOOP_JC_IO_DIR (TOSA_SCOOP_JC_CARD_LIMIT_SEL) | ||
57 | |||
58 | /* | ||
59 | * TC6393XB GPIOs | ||
60 | */ | ||
61 | #define TOSA_TC6393XB_GPIO_BASE (NR_BUILTIN_GPIO + 2 * 12) | ||
62 | #define TOSA_TC6393XB_GPIO(i) (TOSA_TC6393XB_GPIO_BASE + (i)) | ||
63 | #define TOSA_TC6393XB_GPIO_BIT(gpio) (1 << (gpio - TOSA_TC6393XB_GPIO_BASE)) | ||
64 | |||
65 | #define TOSA_GPIO_TG_ON (TOSA_TC6393XB_GPIO_BASE + 0) | ||
66 | #define TOSA_GPIO_L_MUTE (TOSA_TC6393XB_GPIO_BASE + 1) | ||
67 | #define TOSA_GPIO_BL_C20MA (TOSA_TC6393XB_GPIO_BASE + 3) | ||
68 | #define TOSA_GPIO_CARD_VCC_ON (TOSA_TC6393XB_GPIO_BASE + 4) | ||
69 | #define TOSA_GPIO_CHARGE_OFF (TOSA_TC6393XB_GPIO_BASE + 6) | ||
70 | #define TOSA_GPIO_CHARGE_OFF_JC (TOSA_TC6393XB_GPIO_BASE + 7) | ||
71 | #define TOSA_GPIO_BAT0_V_ON (TOSA_TC6393XB_GPIO_BASE + 9) | ||
72 | #define TOSA_GPIO_BAT1_V_ON (TOSA_TC6393XB_GPIO_BASE + 10) | ||
73 | #define TOSA_GPIO_BU_CHRG_ON (TOSA_TC6393XB_GPIO_BASE + 11) | ||
74 | #define TOSA_GPIO_BAT_SW_ON (TOSA_TC6393XB_GPIO_BASE + 12) | ||
75 | #define TOSA_GPIO_BAT0_TH_ON (TOSA_TC6393XB_GPIO_BASE + 14) | ||
76 | #define TOSA_GPIO_BAT1_TH_ON (TOSA_TC6393XB_GPIO_BASE + 15) | ||
77 | |||
78 | /* | ||
79 | * Timing Generator | ||
80 | */ | ||
81 | #define TG_PNLCTL 0x00 | ||
82 | #define TG_TPOSCTL 0x01 | ||
83 | #define TG_DUTYCTL 0x02 | ||
84 | #define TG_GPOSR 0x03 | ||
85 | #define TG_GPODR1 0x04 | ||
86 | #define TG_GPODR2 0x05 | ||
87 | #define TG_PINICTL 0x06 | ||
88 | #define TG_HPOSCTL 0x07 | ||
89 | |||
90 | /* | ||
91 | * PXA GPIOs | ||
92 | */ | ||
93 | #define TOSA_GPIO_POWERON (0) | ||
94 | #define TOSA_GPIO_RESET (1) | ||
95 | #define TOSA_GPIO_AC_IN (2) | ||
96 | #define TOSA_GPIO_RECORD_BTN (3) | ||
97 | #define TOSA_GPIO_SYNC (4) /* Cradle SYNC Button */ | ||
98 | #define TOSA_GPIO_USB_IN (5) | ||
99 | #define TOSA_GPIO_JACKET_DETECT (7) | ||
100 | #define TOSA_GPIO_nSD_DETECT (9) | ||
101 | #define TOSA_GPIO_nSD_INT (10) | ||
102 | #define TOSA_GPIO_TC6393XB_CLK (11) | ||
103 | #define TOSA_GPIO_BAT1_CRG (12) | ||
104 | #define TOSA_GPIO_CF_CD (13) | ||
105 | #define TOSA_GPIO_BAT0_CRG (14) | ||
106 | #define TOSA_GPIO_TC6393XB_INT (15) | ||
107 | #define TOSA_GPIO_BAT0_LOW (17) | ||
108 | #define TOSA_GPIO_TC6393XB_RDY (18) | ||
109 | #define TOSA_GPIO_ON_RESET (19) | ||
110 | #define TOSA_GPIO_EAR_IN (20) | ||
111 | #define TOSA_GPIO_CF_IRQ (21) /* CF slot0 Ready */ | ||
112 | #define TOSA_GPIO_ON_KEY (22) | ||
113 | #define TOSA_GPIO_VGA_LINE (27) | ||
114 | #define TOSA_GPIO_TP_INT (32) /* Touch Panel pen down interrupt */ | ||
115 | #define TOSA_GPIO_JC_CF_IRQ (36) /* CF slot1 Ready */ | ||
116 | #define TOSA_GPIO_BAT_LOCKED (38) /* Battery locked */ | ||
117 | #define TOSA_GPIO_IRDA_TX (47) | ||
118 | #define TOSA_GPIO_TG_SPI_SCLK (81) | ||
119 | #define TOSA_GPIO_TG_SPI_CS (82) | ||
120 | #define TOSA_GPIO_TG_SPI_MOSI (83) | ||
121 | #define TOSA_GPIO_BAT1_LOW (84) | ||
122 | |||
123 | #define TOSA_GPIO_HP_IN GPIO_EAR_IN | ||
124 | |||
125 | #define TOSA_GPIO_MAIN_BAT_LOW GPIO_BAT0_LOW | ||
126 | |||
127 | #define TOSA_KEY_STROBE_NUM (11) | ||
128 | #define TOSA_KEY_SENSE_NUM (7) | ||
129 | |||
130 | #define TOSA_GPIO_HIGH_STROBE_BIT (0xfc000000) | ||
131 | #define TOSA_GPIO_LOW_STROBE_BIT (0x0000001f) | ||
132 | #define TOSA_GPIO_ALL_SENSE_BIT (0x00000fe0) | ||
133 | #define TOSA_GPIO_ALL_SENSE_RSHIFT (5) | ||
134 | #define TOSA_GPIO_STROBE_BIT(a) GPIO_bit(58+(a)) | ||
135 | #define TOSA_GPIO_SENSE_BIT(a) GPIO_bit(69+(a)) | ||
136 | #define TOSA_GAFR_HIGH_STROBE_BIT (0xfff00000) | ||
137 | #define TOSA_GAFR_LOW_STROBE_BIT (0x000003ff) | ||
138 | #define TOSA_GAFR_ALL_SENSE_BIT (0x00fffc00) | ||
139 | #define TOSA_GPIO_KEY_SENSE(a) (69+(a)) | ||
140 | #define TOSA_GPIO_KEY_STROBE(a) (58+(a)) | ||
141 | |||
142 | /* | ||
143 | * Interrupts | ||
144 | */ | ||
145 | #define TOSA_IRQ_GPIO_WAKEUP IRQ_GPIO(TOSA_GPIO_WAKEUP) | ||
146 | #define TOSA_IRQ_GPIO_AC_IN IRQ_GPIO(TOSA_GPIO_AC_IN) | ||
147 | #define TOSA_IRQ_GPIO_RECORD_BTN IRQ_GPIO(TOSA_GPIO_RECORD_BTN) | ||
148 | #define TOSA_IRQ_GPIO_SYNC IRQ_GPIO(TOSA_GPIO_SYNC) | ||
149 | #define TOSA_IRQ_GPIO_USB_IN IRQ_GPIO(TOSA_GPIO_USB_IN) | ||
150 | #define TOSA_IRQ_GPIO_JACKET_DETECT IRQ_GPIO(TOSA_GPIO_JACKET_DETECT) | ||
151 | #define TOSA_IRQ_GPIO_nSD_INT IRQ_GPIO(TOSA_GPIO_nSD_INT) | ||
152 | #define TOSA_IRQ_GPIO_nSD_DETECT IRQ_GPIO(TOSA_GPIO_nSD_DETECT) | ||
153 | #define TOSA_IRQ_GPIO_BAT1_CRG IRQ_GPIO(TOSA_GPIO_BAT1_CRG) | ||
154 | #define TOSA_IRQ_GPIO_CF_CD IRQ_GPIO(TOSA_GPIO_CF_CD) | ||
155 | #define TOSA_IRQ_GPIO_BAT0_CRG IRQ_GPIO(TOSA_GPIO_BAT0_CRG) | ||
156 | #define TOSA_IRQ_GPIO_TC6393XB_INT IRQ_GPIO(TOSA_GPIO_TC6393XB_INT) | ||
157 | #define TOSA_IRQ_GPIO_BAT0_LOW IRQ_GPIO(TOSA_GPIO_BAT0_LOW) | ||
158 | #define TOSA_IRQ_GPIO_EAR_IN IRQ_GPIO(TOSA_GPIO_EAR_IN) | ||
159 | #define TOSA_IRQ_GPIO_CF_IRQ IRQ_GPIO(TOSA_GPIO_CF_IRQ) | ||
160 | #define TOSA_IRQ_GPIO_ON_KEY IRQ_GPIO(TOSA_GPIO_ON_KEY) | ||
161 | #define TOSA_IRQ_GPIO_VGA_LINE IRQ_GPIO(TOSA_GPIO_VGA_LINE) | ||
162 | #define TOSA_IRQ_GPIO_TP_INT IRQ_GPIO(TOSA_GPIO_TP_INT) | ||
163 | #define TOSA_IRQ_GPIO_JC_CF_IRQ IRQ_GPIO(TOSA_GPIO_JC_CF_IRQ) | ||
164 | #define TOSA_IRQ_GPIO_BAT_LOCKED IRQ_GPIO(TOSA_GPIO_BAT_LOCKED) | ||
165 | #define TOSA_IRQ_GPIO_BAT1_LOW IRQ_GPIO(TOSA_GPIO_BAT1_LOW) | ||
166 | #define TOSA_IRQ_GPIO_KEY_SENSE(a) IRQ_GPIO(69+(a)) | ||
167 | |||
168 | #define TOSA_IRQ_GPIO_MAIN_BAT_LOW IRQ_GPIO(TOSA_GPIO_MAIN_BAT_LOW) | ||
169 | |||
170 | #define TOSA_KEY_SYNC KEY_102ND /* ??? */ | ||
171 | |||
172 | #ifndef CONFIG_KEYBOARD_TOSA_USE_EXT_KEYCODES | ||
173 | #define TOSA_KEY_RECORD KEY_YEN | ||
174 | #define TOSA_KEY_ADDRESSBOOK KEY_KATAKANA | ||
175 | #define TOSA_KEY_CANCEL KEY_ESC | ||
176 | #define TOSA_KEY_CENTER KEY_HIRAGANA | ||
177 | #define TOSA_KEY_OK KEY_HENKAN | ||
178 | #define TOSA_KEY_CALENDAR KEY_KATAKANAHIRAGANA | ||
179 | #define TOSA_KEY_HOMEPAGE KEY_HANGEUL | ||
180 | #define TOSA_KEY_LIGHT KEY_MUHENKAN | ||
181 | #define TOSA_KEY_MENU KEY_HANJA | ||
182 | #define TOSA_KEY_FN KEY_RIGHTALT | ||
183 | #define TOSA_KEY_MAIL KEY_ZENKAKUHANKAKU | ||
184 | #else | ||
185 | #define TOSA_KEY_RECORD KEY_RECORD | ||
186 | #define TOSA_KEY_ADDRESSBOOK KEY_ADDRESSBOOK | ||
187 | #define TOSA_KEY_CANCEL KEY_CANCEL | ||
188 | #define TOSA_KEY_CENTER KEY_SELECT /* ??? */ | ||
189 | #define TOSA_KEY_OK KEY_OK | ||
190 | #define TOSA_KEY_CALENDAR KEY_CALENDAR | ||
191 | #define TOSA_KEY_HOMEPAGE KEY_HOMEPAGE | ||
192 | #define TOSA_KEY_LIGHT KEY_KBDILLUMTOGGLE | ||
193 | #define TOSA_KEY_MENU KEY_MENU | ||
194 | #define TOSA_KEY_FN KEY_FN | ||
195 | #define TOSA_KEY_MAIL KEY_MAIL | ||
196 | #endif | ||
197 | |||
198 | #endif /* _ASM_ARCH_TOSA_H_ */ | ||