diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-09-21 11:02:24 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-09-21 11:02:30 -0400 |
commit | 28f9f19db9dda54c851d5689539d86f6fc008773 (patch) | |
tree | 469f5d7b24871b6fe001b7ad9acac859405f4822 /arch/arm/mach-pxa/include/mach | |
parent | 40262b2b6efac507005a2c981175266bf81152a7 (diff) | |
parent | 52a7a1cec88acdaf3f8b36a6b1fe904f6eca7ee5 (diff) |
Merge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6 into devel
Diffstat (limited to 'arch/arm/mach-pxa/include/mach')
-rw-r--r-- | arch/arm/mach-pxa/include/mach/balloon3.h | 134 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/colibri.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/entry-macro.S | 25 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/hardware.h | 17 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/irda.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/irqs.h | 42 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/mfp.h | 301 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/mmc.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/palmtc.h | 86 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/palmtx.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/pxa3xx-regs.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/pxafb.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/regs-intc.h | 11 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/uncompress.h | 2 |
14 files changed, 320 insertions, 323 deletions
diff --git a/arch/arm/mach-pxa/include/mach/balloon3.h b/arch/arm/mach-pxa/include/mach/balloon3.h new file mode 100644 index 000000000000..bfec09b1814b --- /dev/null +++ b/arch/arm/mach-pxa/include/mach/balloon3.h | |||
@@ -0,0 +1,134 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-pxa/balloon3.h | ||
3 | * | ||
4 | * Authors: Nick Bane and Wookey | ||
5 | * Created: Oct, 2005 | ||
6 | * Copyright: Toby Churchill Ltd | ||
7 | * Cribbed from mainstone.c, by Nicholas Pitre | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | #ifndef ASM_ARCH_BALLOON3_H | ||
15 | #define ASM_ARCH_BALLOON3_H | ||
16 | |||
17 | enum balloon3_features { | ||
18 | BALLOON3_FEATURE_OHCI, | ||
19 | BALLOON3_FEATURE_MMC, | ||
20 | BALLOON3_FEATURE_CF, | ||
21 | BALLOON3_FEATURE_AUDIO, | ||
22 | BALLOON3_FEATURE_TOPPOLY, | ||
23 | }; | ||
24 | |||
25 | #define BALLOON3_FPGA_PHYS PXA_CS4_PHYS | ||
26 | #define BALLOON3_FPGA_VIRT (0xf1000000) /* as per balloon2 */ | ||
27 | #define BALLOON3_FPGA_LENGTH 0x01000000 | ||
28 | |||
29 | /* FPGA/CPLD registers */ | ||
30 | #define BALLOON3_PCMCIA0_REG (BALLOON3_FPGA_VIRT + 0x00e00008) | ||
31 | /* fixme - same for now */ | ||
32 | #define BALLOON3_PCMCIA1_REG (BALLOON3_FPGA_VIRT + 0x00e00008) | ||
33 | #define BALLOON3_NANDIO_IO_REG (BALLOON3_FPGA_VIRT + 0x00e00000) | ||
34 | /* fpga/cpld interrupt control register */ | ||
35 | #define BALLOON3_INT_CONTROL_REG (BALLOON3_FPGA_VIRT + 0x00e0000C) | ||
36 | #define BALLOON3_NANDIO_CTL2_REG (BALLOON3_FPGA_VIRT + 0x00e00010) | ||
37 | #define BALLOON3_NANDIO_CTL_REG (BALLOON3_FPGA_VIRT + 0x00e00014) | ||
38 | #define BALLOON3_VERSION_REG (BALLOON3_FPGA_VIRT + 0x00e0001c) | ||
39 | |||
40 | #define BALLOON3_SAMOSA_ADDR_REG (BALLOON3_FPGA_VIRT + 0x00c00000) | ||
41 | #define BALLOON3_SAMOSA_DATA_REG (BALLOON3_FPGA_VIRT + 0x00c00004) | ||
42 | #define BALLOON3_SAMOSA_STATUS_REG (BALLOON3_FPGA_VIRT + 0x00c0001c) | ||
43 | |||
44 | /* GPIOs for irqs */ | ||
45 | #define BALLOON3_GPIO_AUX_NIRQ (94) | ||
46 | #define BALLOON3_GPIO_CODEC_IRQ (95) | ||
47 | |||
48 | /* Timer and Idle LED locations */ | ||
49 | #define BALLOON3_GPIO_LED_NAND (9) | ||
50 | #define BALLOON3_GPIO_LED_IDLE (10) | ||
51 | |||
52 | /* backlight control */ | ||
53 | #define BALLOON3_GPIO_RUN_BACKLIGHT (99) | ||
54 | |||
55 | #define BALLOON3_GPIO_S0_CD (105) | ||
56 | |||
57 | /* FPGA Interrupt Mask/Acknowledge Register */ | ||
58 | #define BALLOON3_INT_S0_IRQ (1 << 0) /* PCMCIA 0 IRQ */ | ||
59 | #define BALLOON3_INT_S0_STSCHG (1 << 1) /* PCMCIA 0 status changed */ | ||
60 | |||
61 | /* CF Status Register */ | ||
62 | #define BALLOON3_PCMCIA_nIRQ (1 << 0) /* IRQ / ready signal */ | ||
63 | #define BALLOON3_PCMCIA_nSTSCHG_BVD1 (1 << 1) | ||
64 | /* VDD sense / card status changed */ | ||
65 | |||
66 | /* CF control register (write) */ | ||
67 | #define BALLOON3_PCMCIA_RESET (1 << 0) /* Card reset signal */ | ||
68 | #define BALLOON3_PCMCIA_ENABLE (1 << 1) | ||
69 | #define BALLOON3_PCMCIA_ADD_ENABLE (1 << 2) | ||
70 | |||
71 | /* CPLD (and FPGA) interface definitions */ | ||
72 | #define CPLD_LCD0_DATA_SET 0x00 | ||
73 | #define CPLD_LCD0_DATA_CLR 0x10 | ||
74 | #define CPLD_LCD0_COMMAND_SET 0x01 | ||
75 | #define CPLD_LCD0_COMMAND_CLR 0x11 | ||
76 | #define CPLD_LCD1_DATA_SET 0x02 | ||
77 | #define CPLD_LCD1_DATA_CLR 0x12 | ||
78 | #define CPLD_LCD1_COMMAND_SET 0x03 | ||
79 | #define CPLD_LCD1_COMMAND_CLR 0x13 | ||
80 | |||
81 | #define CPLD_MISC_SET 0x07 | ||
82 | #define CPLD_MISC_CLR 0x17 | ||
83 | #define CPLD_MISC_LOON_NRESET_BIT 0 | ||
84 | #define CPLD_MISC_LOON_UNSUSP_BIT 1 | ||
85 | #define CPLD_MISC_RUN_5V_BIT 2 | ||
86 | #define CPLD_MISC_CHG_D0_BIT 3 | ||
87 | #define CPLD_MISC_CHG_D1_BIT 4 | ||
88 | #define CPLD_MISC_DAC_NCS_BIT 5 | ||
89 | |||
90 | #define CPLD_LCD_SET 0x08 | ||
91 | #define CPLD_LCD_CLR 0x18 | ||
92 | #define CPLD_LCD_BACKLIGHT_EN_0_BIT 0 | ||
93 | #define CPLD_LCD_BACKLIGHT_EN_1_BIT 1 | ||
94 | #define CPLD_LCD_LED_RED_BIT 4 | ||
95 | #define CPLD_LCD_LED_GREEN_BIT 5 | ||
96 | #define CPLD_LCD_NRESET_BIT 7 | ||
97 | |||
98 | #define CPLD_LCD_RO_SET 0x09 | ||
99 | #define CPLD_LCD_RO_CLR 0x19 | ||
100 | #define CPLD_LCD_RO_LCD0_nWAIT_BIT 0 | ||
101 | #define CPLD_LCD_RO_LCD1_nWAIT_BIT 1 | ||
102 | |||
103 | #define CPLD_SERIAL_SET 0x0a | ||
104 | #define CPLD_SERIAL_CLR 0x1a | ||
105 | #define CPLD_SERIAL_GSM_RI_BIT 0 | ||
106 | #define CPLD_SERIAL_GSM_CTS_BIT 1 | ||
107 | #define CPLD_SERIAL_GSM_DTR_BIT 2 | ||
108 | #define CPLD_SERIAL_LPR_CTS_BIT 3 | ||
109 | #define CPLD_SERIAL_TC232_CTS_BIT 4 | ||
110 | #define CPLD_SERIAL_TC232_DSR_BIT 5 | ||
111 | |||
112 | #define CPLD_SROUTING_SET 0x0b | ||
113 | #define CPLD_SROUTING_CLR 0x1b | ||
114 | #define CPLD_SROUTING_MSP430_LPR 0 | ||
115 | #define CPLD_SROUTING_MSP430_TC232 1 | ||
116 | #define CPLD_SROUTING_MSP430_GSM 2 | ||
117 | #define CPLD_SROUTING_LOON_LPR (0 << 4) | ||
118 | #define CPLD_SROUTING_LOON_TC232 (1 << 4) | ||
119 | #define CPLD_SROUTING_LOON_GSM (2 << 4) | ||
120 | |||
121 | #define CPLD_AROUTING_SET 0x0c | ||
122 | #define CPLD_AROUTING_CLR 0x1c | ||
123 | #define CPLD_AROUTING_MIC2PHONE_BIT 0 | ||
124 | #define CPLD_AROUTING_PHONE2INT_BIT 1 | ||
125 | #define CPLD_AROUTING_PHONE2EXT_BIT 2 | ||
126 | #define CPLD_AROUTING_LOONL2INT_BIT 3 | ||
127 | #define CPLD_AROUTING_LOONL2EXT_BIT 4 | ||
128 | #define CPLD_AROUTING_LOONR2PHONE_BIT 5 | ||
129 | #define CPLD_AROUTING_LOONR2INT_BIT 6 | ||
130 | #define CPLD_AROUTING_LOONR2EXT_BIT 7 | ||
131 | |||
132 | extern int balloon3_has(enum balloon3_features feature); | ||
133 | |||
134 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/colibri.h b/arch/arm/mach-pxa/include/mach/colibri.h index a88d7caff0d1..811743c56147 100644 --- a/arch/arm/mach-pxa/include/mach/colibri.h +++ b/arch/arm/mach-pxa/include/mach/colibri.h | |||
@@ -23,6 +23,12 @@ static inline void colibri_pxa3xx_init_lcd(int bl_pin) {} | |||
23 | extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data); | 23 | extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data); |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) | ||
27 | extern void colibri_pxa3xx_init_nand(void); | ||
28 | #else | ||
29 | static inline void colibri_pxa3xx_init_nand(void) {} | ||
30 | #endif | ||
31 | |||
26 | /* physical memory regions */ | 32 | /* physical memory regions */ |
27 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ | 33 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ |
28 | 34 | ||
diff --git a/arch/arm/mach-pxa/include/mach/entry-macro.S b/arch/arm/mach-pxa/include/mach/entry-macro.S index f6b4bf3e73d2..241880608ac6 100644 --- a/arch/arm/mach-pxa/include/mach/entry-macro.S +++ b/arch/arm/mach-pxa/include/mach/entry-macro.S | |||
@@ -24,34 +24,27 @@ | |||
24 | mov \tmp, \tmp, lsr #13 | 24 | mov \tmp, \tmp, lsr #13 |
25 | and \tmp, \tmp, #0x7 @ Core G | 25 | and \tmp, \tmp, #0x7 @ Core G |
26 | cmp \tmp, #1 | 26 | cmp \tmp, #1 |
27 | bhi 1004f | 27 | bhi 1002f |
28 | 28 | ||
29 | @ Core Generation 1 (PXA25x) | ||
29 | mov \base, #io_p2v(0x40000000) @ IIR Ctl = 0x40d00000 | 30 | mov \base, #io_p2v(0x40000000) @ IIR Ctl = 0x40d00000 |
30 | add \base, \base, #0x00d00000 | 31 | add \base, \base, #0x00d00000 |
31 | ldr \irqstat, [\base, #0] @ ICIP | 32 | ldr \irqstat, [\base, #0] @ ICIP |
32 | ldr \irqnr, [\base, #4] @ ICMR | 33 | ldr \irqnr, [\base, #4] @ ICMR |
33 | b 1002f | ||
34 | 34 | ||
35 | 1004: | ||
36 | mrc p6, 0, \irqstat, c6, c0, 0 @ ICIP2 | ||
37 | mrc p6, 0, \irqnr, c7, c0, 0 @ ICMR2 | ||
38 | ands \irqnr, \irqstat, \irqnr | 35 | ands \irqnr, \irqstat, \irqnr |
39 | beq 1003f | 36 | beq 1001f |
40 | rsb \irqstat, \irqnr, #0 | 37 | rsb \irqstat, \irqnr, #0 |
41 | and \irqstat, \irqstat, \irqnr | 38 | and \irqstat, \irqstat, \irqnr |
42 | clz \irqnr, \irqstat | 39 | clz \irqnr, \irqstat |
43 | rsb \irqnr, \irqnr, #31 | 40 | rsb \irqnr, \irqnr, #(31 + PXA_IRQ(0)) |
44 | add \irqnr, \irqnr, #(32 + PXA_IRQ(0)) | ||
45 | b 1001f | 41 | b 1001f |
46 | 1003: | ||
47 | mrc p6, 0, \irqstat, c0, c0, 0 @ ICIP | ||
48 | mrc p6, 0, \irqnr, c1, c0, 0 @ ICMR | ||
49 | 1002: | 42 | 1002: |
50 | ands \irqnr, \irqstat, \irqnr | 43 | @ Core Generation 2 (PXA27x) or Core Generation 3 (PXA3xx) |
44 | mrc p6, 0, \irqstat, c5, c0, 0 @ ICHP | ||
45 | tst \irqstat, #0x80000000 | ||
51 | beq 1001f | 46 | beq 1001f |
52 | rsb \irqstat, \irqnr, #0 | 47 | bic \irqstat, \irqstat, #0x80000000 |
53 | and \irqstat, \irqstat, \irqnr | 48 | mov \irqnr, \irqstat, lsr #16 |
54 | clz \irqnr, \irqstat | ||
55 | rsb \irqnr, \irqnr, #(31 + PXA_IRQ(0)) | ||
56 | 1001: | 49 | 1001: |
57 | .endm | 50 | .endm |
diff --git a/arch/arm/mach-pxa/include/mach/hardware.h b/arch/arm/mach-pxa/include/mach/hardware.h index 16ab79547dae..aa3d9f70a08a 100644 --- a/arch/arm/mach-pxa/include/mach/hardware.h +++ b/arch/arm/mach-pxa/include/mach/hardware.h | |||
@@ -197,6 +197,16 @@ | |||
197 | #define __cpu_is_pxa935(id) (0) | 197 | #define __cpu_is_pxa935(id) (0) |
198 | #endif | 198 | #endif |
199 | 199 | ||
200 | #ifdef CONFIG_CPU_PXA950 | ||
201 | #define __cpu_is_pxa950(id) \ | ||
202 | ({ \ | ||
203 | unsigned int _id = (id) >> 4 & 0xfff; \ | ||
204 | id == 0x697; \ | ||
205 | }) | ||
206 | #else | ||
207 | #define __cpu_is_pxa950(id) (0) | ||
208 | #endif | ||
209 | |||
200 | #define cpu_is_pxa210() \ | 210 | #define cpu_is_pxa210() \ |
201 | ({ \ | 211 | ({ \ |
202 | __cpu_is_pxa210(read_cpuid_id()); \ | 212 | __cpu_is_pxa210(read_cpuid_id()); \ |
@@ -249,6 +259,13 @@ | |||
249 | __cpu_is_pxa935(id); \ | 259 | __cpu_is_pxa935(id); \ |
250 | }) | 260 | }) |
251 | 261 | ||
262 | #define cpu_is_pxa950() \ | ||
263 | ({ \ | ||
264 | unsigned int id = read_cpuid(CPUID_ID); \ | ||
265 | __cpu_is_pxa950(id); \ | ||
266 | }) | ||
267 | |||
268 | |||
252 | /* | 269 | /* |
253 | * CPUID Core Generation Bit | 270 | * CPUID Core Generation Bit |
254 | * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x | 271 | * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x |
diff --git a/arch/arm/mach-pxa/include/mach/irda.h b/arch/arm/mach-pxa/include/mach/irda.h index 0a50c3c763df..3cd41f77dda4 100644 --- a/arch/arm/mach-pxa/include/mach/irda.h +++ b/arch/arm/mach-pxa/include/mach/irda.h | |||
@@ -12,6 +12,8 @@ struct pxaficp_platform_data { | |||
12 | void (*transceiver_mode)(struct device *dev, int mode); | 12 | void (*transceiver_mode)(struct device *dev, int mode); |
13 | int (*startup)(struct device *dev); | 13 | int (*startup)(struct device *dev); |
14 | void (*shutdown)(struct device *dev); | 14 | void (*shutdown)(struct device *dev); |
15 | int gpio_pwdown; /* powerdown GPIO for the IrDA chip */ | ||
16 | bool gpio_pwdown_inverted; /* gpio_pwdown is inverted */ | ||
15 | }; | 17 | }; |
16 | 18 | ||
17 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); | 19 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); |
diff --git a/arch/arm/mach-pxa/include/mach/irqs.h b/arch/arm/mach-pxa/include/mach/irqs.h index 6a1d95993342..3677a9af9c87 100644 --- a/arch/arm/mach-pxa/include/mach/irqs.h +++ b/arch/arm/mach-pxa/include/mach/irqs.h | |||
@@ -68,9 +68,10 @@ | |||
68 | #ifdef CONFIG_PXA3xx | 68 | #ifdef CONFIG_PXA3xx |
69 | #define IRQ_SSP4 PXA_IRQ(13) /* SSP4 service request */ | 69 | #define IRQ_SSP4 PXA_IRQ(13) /* SSP4 service request */ |
70 | #define IRQ_CIR PXA_IRQ(34) /* Consumer IR */ | 70 | #define IRQ_CIR PXA_IRQ(34) /* Consumer IR */ |
71 | #define IRQ_COMM_WDT PXA_IRQ(35) /* Comm WDT interrupt */ | ||
71 | #define IRQ_TSI PXA_IRQ(36) /* Touch Screen Interface (PXA320) */ | 72 | #define IRQ_TSI PXA_IRQ(36) /* Touch Screen Interface (PXA320) */ |
72 | #define IRQ_USIM2 PXA_IRQ(38) /* USIM2 Controller */ | 73 | #define IRQ_USIM2 PXA_IRQ(38) /* USIM2 Controller */ |
73 | #define IRQ_GRPHICS PXA_IRQ(39) /* Graphics Controller */ | 74 | #define IRQ_GCU PXA_IRQ(39) /* Graphics Controller */ |
74 | #define IRQ_MMC2 PXA_IRQ(41) /* MMC2 Controller */ | 75 | #define IRQ_MMC2 PXA_IRQ(41) /* MMC2 Controller */ |
75 | #define IRQ_1WIRE PXA_IRQ(44) /* 1-Wire Controller */ | 76 | #define IRQ_1WIRE PXA_IRQ(44) /* 1-Wire Controller */ |
76 | #define IRQ_NAND PXA_IRQ(45) /* NAND Controller */ | 77 | #define IRQ_NAND PXA_IRQ(45) /* NAND Controller */ |
@@ -81,8 +82,31 @@ | |||
81 | #define IRQ_MMC3 PXA_IRQ(55) /* MMC3 Controller (PXA310) */ | 82 | #define IRQ_MMC3 PXA_IRQ(55) /* MMC3 Controller (PXA310) */ |
82 | #endif | 83 | #endif |
83 | 84 | ||
84 | #define PXA_GPIO_IRQ_BASE PXA_IRQ(64) | 85 | #ifdef CONFIG_CPU_PXA935 |
85 | #define PXA_GPIO_IRQ_NUM (128) | 86 | #define IRQ_U2O PXA_IRQ(64) /* USB OTG 2.0 Controller (PXA935) */ |
87 | #define IRQ_U2H PXA_IRQ(65) /* USB Host 2.0 Controller (PXA935) */ | ||
88 | |||
89 | #define IRQ_MMC3_PXA935 PXA_IRQ(72) /* MMC3 Controller (PXA935) */ | ||
90 | #define IRQ_MMC4_PXA935 PXA_IRQ(73) /* MMC4 Controller (PXA935) */ | ||
91 | #define IRQ_MMC5_PXA935 PXA_IRQ(74) /* MMC5 Controller (PXA935) */ | ||
92 | |||
93 | #define IRQ_U2P PXA_IRQ(93) /* USB PHY D+/D- Lines (PXA935) */ | ||
94 | #endif | ||
95 | |||
96 | #ifdef CONFIG_CPU_PXA930 | ||
97 | #define IRQ_ENHROT PXA_IRQ(37) /* Enhanced Rotary (PXA930) */ | ||
98 | #define IRQ_ACIPC0 PXA_IRQ(5) | ||
99 | #define IRQ_ACIPC1 PXA_IRQ(40) | ||
100 | #define IRQ_ACIPC2 PXA_IRQ(19) | ||
101 | #define IRQ_TRKBALL PXA_IRQ(43) /* Track Ball */ | ||
102 | #endif | ||
103 | |||
104 | #ifdef CONFIG_CPU_PXA950 | ||
105 | #define IRQ_GC500 PXA_IRQ(70) /* Graphics Controller (PXA950) */ | ||
106 | #endif | ||
107 | |||
108 | #define PXA_GPIO_IRQ_BASE PXA_IRQ(96) | ||
109 | #define PXA_GPIO_IRQ_NUM (192) | ||
86 | 110 | ||
87 | #define GPIO_2_x_TO_IRQ(x) (PXA_GPIO_IRQ_BASE + (x)) | 111 | #define GPIO_2_x_TO_IRQ(x) (PXA_GPIO_IRQ_BASE + (x)) |
88 | #define IRQ_GPIO(x) (((x) < 2) ? (IRQ_GPIO0 + (x)) : GPIO_2_x_TO_IRQ(x)) | 112 | #define IRQ_GPIO(x) (((x) < 2) ? (IRQ_GPIO0 + (x)) : GPIO_2_x_TO_IRQ(x)) |
@@ -105,6 +129,8 @@ | |||
105 | #define IRQ_BOARD_END (IRQ_BOARD_START + 70) | 129 | #define IRQ_BOARD_END (IRQ_BOARD_START + 70) |
106 | #elif defined(CONFIG_MACH_ZYLONITE) | 130 | #elif defined(CONFIG_MACH_ZYLONITE) |
107 | #define IRQ_BOARD_END (IRQ_BOARD_START + 32) | 131 | #define IRQ_BOARD_END (IRQ_BOARD_START + 32) |
132 | #elif defined(CONFIG_PXA_EZX) | ||
133 | #define IRQ_BOARD_END (IRQ_BOARD_START + 23) | ||
108 | #else | 134 | #else |
109 | #define IRQ_BOARD_END (IRQ_BOARD_START + 16) | 135 | #define IRQ_BOARD_END (IRQ_BOARD_START + 16) |
110 | #endif | 136 | #endif |
@@ -237,6 +263,16 @@ | |||
237 | #define MAINSTONE_S1_STSCHG_IRQ MAINSTONE_IRQ(14) | 263 | #define MAINSTONE_S1_STSCHG_IRQ MAINSTONE_IRQ(14) |
238 | #define MAINSTONE_S1_IRQ MAINSTONE_IRQ(15) | 264 | #define MAINSTONE_S1_IRQ MAINSTONE_IRQ(15) |
239 | 265 | ||
266 | /* Balloon3 Interrupts */ | ||
267 | #define BALLOON3_IRQ(x) (IRQ_BOARD_START + (x)) | ||
268 | |||
269 | #define BALLOON3_BP_CF_NRDY_IRQ BALLOON3_IRQ(0) | ||
270 | #define BALLOON3_BP_NSTSCHG_IRQ BALLOON3_IRQ(1) | ||
271 | |||
272 | #define BALLOON3_AUX_NIRQ IRQ_GPIO(BALLOON3_GPIO_AUX_NIRQ) | ||
273 | #define BALLOON3_CODEC_IRQ IRQ_GPIO(BALLOON3_GPIO_CODEC_IRQ) | ||
274 | #define BALLOON3_S0_CD_IRQ IRQ_GPIO(BALLOON3_GPIO_S0_CD) | ||
275 | |||
240 | /* LoCoMo Interrupts (CONFIG_SHARP_LOCOMO) */ | 276 | /* LoCoMo Interrupts (CONFIG_SHARP_LOCOMO) */ |
241 | #define IRQ_LOCOMO_KEY_BASE (IRQ_BOARD_START + 0) | 277 | #define IRQ_LOCOMO_KEY_BASE (IRQ_BOARD_START + 0) |
242 | #define IRQ_LOCOMO_GPIO_BASE (IRQ_BOARD_START + 1) | 278 | #define IRQ_LOCOMO_GPIO_BASE (IRQ_BOARD_START + 1) |
diff --git a/arch/arm/mach-pxa/include/mach/mfp.h b/arch/arm/mach-pxa/include/mach/mfp.h index 482185053a92..271e249ae34f 100644 --- a/arch/arm/mach-pxa/include/mach/mfp.h +++ b/arch/arm/mach-pxa/include/mach/mfp.h | |||
@@ -16,305 +16,6 @@ | |||
16 | #ifndef __ASM_ARCH_MFP_H | 16 | #ifndef __ASM_ARCH_MFP_H |
17 | #define __ASM_ARCH_MFP_H | 17 | #define __ASM_ARCH_MFP_H |
18 | 18 | ||
19 | #define mfp_to_gpio(m) ((m) % 128) | 19 | #include <plat/mfp.h> |
20 | |||
21 | /* list of all the configurable MFP pins */ | ||
22 | enum { | ||
23 | MFP_PIN_INVALID = -1, | ||
24 | |||
25 | MFP_PIN_GPIO0 = 0, | ||
26 | MFP_PIN_GPIO1, | ||
27 | MFP_PIN_GPIO2, | ||
28 | MFP_PIN_GPIO3, | ||
29 | MFP_PIN_GPIO4, | ||
30 | MFP_PIN_GPIO5, | ||
31 | MFP_PIN_GPIO6, | ||
32 | MFP_PIN_GPIO7, | ||
33 | MFP_PIN_GPIO8, | ||
34 | MFP_PIN_GPIO9, | ||
35 | MFP_PIN_GPIO10, | ||
36 | MFP_PIN_GPIO11, | ||
37 | MFP_PIN_GPIO12, | ||
38 | MFP_PIN_GPIO13, | ||
39 | MFP_PIN_GPIO14, | ||
40 | MFP_PIN_GPIO15, | ||
41 | MFP_PIN_GPIO16, | ||
42 | MFP_PIN_GPIO17, | ||
43 | MFP_PIN_GPIO18, | ||
44 | MFP_PIN_GPIO19, | ||
45 | MFP_PIN_GPIO20, | ||
46 | MFP_PIN_GPIO21, | ||
47 | MFP_PIN_GPIO22, | ||
48 | MFP_PIN_GPIO23, | ||
49 | MFP_PIN_GPIO24, | ||
50 | MFP_PIN_GPIO25, | ||
51 | MFP_PIN_GPIO26, | ||
52 | MFP_PIN_GPIO27, | ||
53 | MFP_PIN_GPIO28, | ||
54 | MFP_PIN_GPIO29, | ||
55 | MFP_PIN_GPIO30, | ||
56 | MFP_PIN_GPIO31, | ||
57 | MFP_PIN_GPIO32, | ||
58 | MFP_PIN_GPIO33, | ||
59 | MFP_PIN_GPIO34, | ||
60 | MFP_PIN_GPIO35, | ||
61 | MFP_PIN_GPIO36, | ||
62 | MFP_PIN_GPIO37, | ||
63 | MFP_PIN_GPIO38, | ||
64 | MFP_PIN_GPIO39, | ||
65 | MFP_PIN_GPIO40, | ||
66 | MFP_PIN_GPIO41, | ||
67 | MFP_PIN_GPIO42, | ||
68 | MFP_PIN_GPIO43, | ||
69 | MFP_PIN_GPIO44, | ||
70 | MFP_PIN_GPIO45, | ||
71 | MFP_PIN_GPIO46, | ||
72 | MFP_PIN_GPIO47, | ||
73 | MFP_PIN_GPIO48, | ||
74 | MFP_PIN_GPIO49, | ||
75 | MFP_PIN_GPIO50, | ||
76 | MFP_PIN_GPIO51, | ||
77 | MFP_PIN_GPIO52, | ||
78 | MFP_PIN_GPIO53, | ||
79 | MFP_PIN_GPIO54, | ||
80 | MFP_PIN_GPIO55, | ||
81 | MFP_PIN_GPIO56, | ||
82 | MFP_PIN_GPIO57, | ||
83 | MFP_PIN_GPIO58, | ||
84 | MFP_PIN_GPIO59, | ||
85 | MFP_PIN_GPIO60, | ||
86 | MFP_PIN_GPIO61, | ||
87 | MFP_PIN_GPIO62, | ||
88 | MFP_PIN_GPIO63, | ||
89 | MFP_PIN_GPIO64, | ||
90 | MFP_PIN_GPIO65, | ||
91 | MFP_PIN_GPIO66, | ||
92 | MFP_PIN_GPIO67, | ||
93 | MFP_PIN_GPIO68, | ||
94 | MFP_PIN_GPIO69, | ||
95 | MFP_PIN_GPIO70, | ||
96 | MFP_PIN_GPIO71, | ||
97 | MFP_PIN_GPIO72, | ||
98 | MFP_PIN_GPIO73, | ||
99 | MFP_PIN_GPIO74, | ||
100 | MFP_PIN_GPIO75, | ||
101 | MFP_PIN_GPIO76, | ||
102 | MFP_PIN_GPIO77, | ||
103 | MFP_PIN_GPIO78, | ||
104 | MFP_PIN_GPIO79, | ||
105 | MFP_PIN_GPIO80, | ||
106 | MFP_PIN_GPIO81, | ||
107 | MFP_PIN_GPIO82, | ||
108 | MFP_PIN_GPIO83, | ||
109 | MFP_PIN_GPIO84, | ||
110 | MFP_PIN_GPIO85, | ||
111 | MFP_PIN_GPIO86, | ||
112 | MFP_PIN_GPIO87, | ||
113 | MFP_PIN_GPIO88, | ||
114 | MFP_PIN_GPIO89, | ||
115 | MFP_PIN_GPIO90, | ||
116 | MFP_PIN_GPIO91, | ||
117 | MFP_PIN_GPIO92, | ||
118 | MFP_PIN_GPIO93, | ||
119 | MFP_PIN_GPIO94, | ||
120 | MFP_PIN_GPIO95, | ||
121 | MFP_PIN_GPIO96, | ||
122 | MFP_PIN_GPIO97, | ||
123 | MFP_PIN_GPIO98, | ||
124 | MFP_PIN_GPIO99, | ||
125 | MFP_PIN_GPIO100, | ||
126 | MFP_PIN_GPIO101, | ||
127 | MFP_PIN_GPIO102, | ||
128 | MFP_PIN_GPIO103, | ||
129 | MFP_PIN_GPIO104, | ||
130 | MFP_PIN_GPIO105, | ||
131 | MFP_PIN_GPIO106, | ||
132 | MFP_PIN_GPIO107, | ||
133 | MFP_PIN_GPIO108, | ||
134 | MFP_PIN_GPIO109, | ||
135 | MFP_PIN_GPIO110, | ||
136 | MFP_PIN_GPIO111, | ||
137 | MFP_PIN_GPIO112, | ||
138 | MFP_PIN_GPIO113, | ||
139 | MFP_PIN_GPIO114, | ||
140 | MFP_PIN_GPIO115, | ||
141 | MFP_PIN_GPIO116, | ||
142 | MFP_PIN_GPIO117, | ||
143 | MFP_PIN_GPIO118, | ||
144 | MFP_PIN_GPIO119, | ||
145 | MFP_PIN_GPIO120, | ||
146 | MFP_PIN_GPIO121, | ||
147 | MFP_PIN_GPIO122, | ||
148 | MFP_PIN_GPIO123, | ||
149 | MFP_PIN_GPIO124, | ||
150 | MFP_PIN_GPIO125, | ||
151 | MFP_PIN_GPIO126, | ||
152 | MFP_PIN_GPIO127, | ||
153 | MFP_PIN_GPIO0_2, | ||
154 | MFP_PIN_GPIO1_2, | ||
155 | MFP_PIN_GPIO2_2, | ||
156 | MFP_PIN_GPIO3_2, | ||
157 | MFP_PIN_GPIO4_2, | ||
158 | MFP_PIN_GPIO5_2, | ||
159 | MFP_PIN_GPIO6_2, | ||
160 | MFP_PIN_GPIO7_2, | ||
161 | MFP_PIN_GPIO8_2, | ||
162 | MFP_PIN_GPIO9_2, | ||
163 | MFP_PIN_GPIO10_2, | ||
164 | MFP_PIN_GPIO11_2, | ||
165 | MFP_PIN_GPIO12_2, | ||
166 | MFP_PIN_GPIO13_2, | ||
167 | MFP_PIN_GPIO14_2, | ||
168 | MFP_PIN_GPIO15_2, | ||
169 | MFP_PIN_GPIO16_2, | ||
170 | MFP_PIN_GPIO17_2, | ||
171 | |||
172 | MFP_PIN_ULPI_STP, | ||
173 | MFP_PIN_ULPI_NXT, | ||
174 | MFP_PIN_ULPI_DIR, | ||
175 | |||
176 | MFP_PIN_nXCVREN, | ||
177 | MFP_PIN_DF_CLE_nOE, | ||
178 | MFP_PIN_DF_nADV1_ALE, | ||
179 | MFP_PIN_DF_SCLK_E, | ||
180 | MFP_PIN_DF_SCLK_S, | ||
181 | MFP_PIN_nBE0, | ||
182 | MFP_PIN_nBE1, | ||
183 | MFP_PIN_DF_nADV2_ALE, | ||
184 | MFP_PIN_DF_INT_RnB, | ||
185 | MFP_PIN_DF_nCS0, | ||
186 | MFP_PIN_DF_nCS1, | ||
187 | MFP_PIN_nLUA, | ||
188 | MFP_PIN_nLLA, | ||
189 | MFP_PIN_DF_nWE, | ||
190 | MFP_PIN_DF_ALE_nWE, | ||
191 | MFP_PIN_DF_nRE_nOE, | ||
192 | MFP_PIN_DF_ADDR0, | ||
193 | MFP_PIN_DF_ADDR1, | ||
194 | MFP_PIN_DF_ADDR2, | ||
195 | MFP_PIN_DF_ADDR3, | ||
196 | MFP_PIN_DF_IO0, | ||
197 | MFP_PIN_DF_IO1, | ||
198 | MFP_PIN_DF_IO2, | ||
199 | MFP_PIN_DF_IO3, | ||
200 | MFP_PIN_DF_IO4, | ||
201 | MFP_PIN_DF_IO5, | ||
202 | MFP_PIN_DF_IO6, | ||
203 | MFP_PIN_DF_IO7, | ||
204 | MFP_PIN_DF_IO8, | ||
205 | MFP_PIN_DF_IO9, | ||
206 | MFP_PIN_DF_IO10, | ||
207 | MFP_PIN_DF_IO11, | ||
208 | MFP_PIN_DF_IO12, | ||
209 | MFP_PIN_DF_IO13, | ||
210 | MFP_PIN_DF_IO14, | ||
211 | MFP_PIN_DF_IO15, | ||
212 | |||
213 | /* additional pins on PXA930 */ | ||
214 | MFP_PIN_GSIM_UIO, | ||
215 | MFP_PIN_GSIM_UCLK, | ||
216 | MFP_PIN_GSIM_UDET, | ||
217 | MFP_PIN_GSIM_nURST, | ||
218 | MFP_PIN_PMIC_INT, | ||
219 | MFP_PIN_RDY, | ||
220 | |||
221 | MFP_PIN_MAX, | ||
222 | }; | ||
223 | |||
224 | /* | ||
225 | * a possible MFP configuration is represented by a 32-bit integer | ||
226 | * | ||
227 | * bit 0.. 9 - MFP Pin Number (1024 Pins Maximum) | ||
228 | * bit 10..12 - Alternate Function Selection | ||
229 | * bit 13..15 - Drive Strength | ||
230 | * bit 16..18 - Low Power Mode State | ||
231 | * bit 19..20 - Low Power Mode Edge Detection | ||
232 | * bit 21..22 - Run Mode Pull State | ||
233 | * | ||
234 | * to facilitate the definition, the following macros are provided | ||
235 | * | ||
236 | * MFP_CFG_DEFAULT - default MFP configuration value, with | ||
237 | * alternate function = 0, | ||
238 | * drive strength = fast 3mA (MFP_DS03X) | ||
239 | * low power mode = default | ||
240 | * edge detection = none | ||
241 | * | ||
242 | * MFP_CFG - default MFPR value with alternate function | ||
243 | * MFP_CFG_DRV - default MFPR value with alternate function and | ||
244 | * pin drive strength | ||
245 | * MFP_CFG_LPM - default MFPR value with alternate function and | ||
246 | * low power mode | ||
247 | * MFP_CFG_X - default MFPR value with alternate function, | ||
248 | * pin drive strength and low power mode | ||
249 | */ | ||
250 | |||
251 | typedef unsigned long mfp_cfg_t; | ||
252 | |||
253 | #define MFP_PIN(x) ((x) & 0x3ff) | ||
254 | |||
255 | #define MFP_AF0 (0x0 << 10) | ||
256 | #define MFP_AF1 (0x1 << 10) | ||
257 | #define MFP_AF2 (0x2 << 10) | ||
258 | #define MFP_AF3 (0x3 << 10) | ||
259 | #define MFP_AF4 (0x4 << 10) | ||
260 | #define MFP_AF5 (0x5 << 10) | ||
261 | #define MFP_AF6 (0x6 << 10) | ||
262 | #define MFP_AF7 (0x7 << 10) | ||
263 | #define MFP_AF_MASK (0x7 << 10) | ||
264 | #define MFP_AF(x) (((x) >> 10) & 0x7) | ||
265 | |||
266 | #define MFP_DS01X (0x0 << 13) | ||
267 | #define MFP_DS02X (0x1 << 13) | ||
268 | #define MFP_DS03X (0x2 << 13) | ||
269 | #define MFP_DS04X (0x3 << 13) | ||
270 | #define MFP_DS06X (0x4 << 13) | ||
271 | #define MFP_DS08X (0x5 << 13) | ||
272 | #define MFP_DS10X (0x6 << 13) | ||
273 | #define MFP_DS13X (0x7 << 13) | ||
274 | #define MFP_DS_MASK (0x7 << 13) | ||
275 | #define MFP_DS(x) (((x) >> 13) & 0x7) | ||
276 | |||
277 | #define MFP_LPM_DEFAULT (0x0 << 16) | ||
278 | #define MFP_LPM_DRIVE_LOW (0x1 << 16) | ||
279 | #define MFP_LPM_DRIVE_HIGH (0x2 << 16) | ||
280 | #define MFP_LPM_PULL_LOW (0x3 << 16) | ||
281 | #define MFP_LPM_PULL_HIGH (0x4 << 16) | ||
282 | #define MFP_LPM_FLOAT (0x5 << 16) | ||
283 | #define MFP_LPM_INPUT (0x6 << 16) | ||
284 | #define MFP_LPM_STATE_MASK (0x7 << 16) | ||
285 | #define MFP_LPM_STATE(x) (((x) >> 16) & 0x7) | ||
286 | |||
287 | #define MFP_LPM_EDGE_NONE (0x0 << 19) | ||
288 | #define MFP_LPM_EDGE_RISE (0x1 << 19) | ||
289 | #define MFP_LPM_EDGE_FALL (0x2 << 19) | ||
290 | #define MFP_LPM_EDGE_BOTH (0x3 << 19) | ||
291 | #define MFP_LPM_EDGE_MASK (0x3 << 19) | ||
292 | #define MFP_LPM_EDGE(x) (((x) >> 19) & 0x3) | ||
293 | |||
294 | #define MFP_PULL_NONE (0x0 << 21) | ||
295 | #define MFP_PULL_LOW (0x1 << 21) | ||
296 | #define MFP_PULL_HIGH (0x2 << 21) | ||
297 | #define MFP_PULL_BOTH (0x3 << 21) | ||
298 | #define MFP_PULL_MASK (0x3 << 21) | ||
299 | #define MFP_PULL(x) (((x) >> 21) & 0x3) | ||
300 | |||
301 | #define MFP_CFG_DEFAULT (MFP_AF0 | MFP_DS03X | MFP_LPM_DEFAULT |\ | ||
302 | MFP_LPM_EDGE_NONE | MFP_PULL_NONE) | ||
303 | |||
304 | #define MFP_CFG(pin, af) \ | ||
305 | ((MFP_CFG_DEFAULT & ~MFP_AF_MASK) |\ | ||
306 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af)) | ||
307 | |||
308 | #define MFP_CFG_DRV(pin, af, drv) \ | ||
309 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DS_MASK)) |\ | ||
310 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv)) | ||
311 | |||
312 | #define MFP_CFG_LPM(pin, af, lpm) \ | ||
313 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_LPM_STATE_MASK)) |\ | ||
314 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_LPM_##lpm)) | ||
315 | |||
316 | #define MFP_CFG_X(pin, af, drv, lpm) \ | ||
317 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DS_MASK | MFP_LPM_STATE_MASK)) |\ | ||
318 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm)) | ||
319 | 20 | ||
320 | #endif /* __ASM_ARCH_MFP_H */ | 21 | #endif /* __ASM_ARCH_MFP_H */ |
diff --git a/arch/arm/mach-pxa/include/mach/mmc.h b/arch/arm/mach-pxa/include/mach/mmc.h index 6d1304c9270f..02a69dc2ee63 100644 --- a/arch/arm/mach-pxa/include/mach/mmc.h +++ b/arch/arm/mach-pxa/include/mach/mmc.h | |||
@@ -14,6 +14,11 @@ struct pxamci_platform_data { | |||
14 | int (*get_ro)(struct device *); | 14 | int (*get_ro)(struct device *); |
15 | void (*setpower)(struct device *, unsigned int); | 15 | void (*setpower)(struct device *, unsigned int); |
16 | void (*exit)(struct device *, void *); | 16 | void (*exit)(struct device *, void *); |
17 | int gpio_card_detect; /* gpio detecting card insertion */ | ||
18 | int gpio_card_ro; /* gpio detecting read only toggle */ | ||
19 | bool gpio_card_ro_invert; /* gpio ro is inverted */ | ||
20 | int gpio_power; /* gpio powering up MMC bus */ | ||
21 | bool gpio_power_invert; /* gpio power is inverted */ | ||
17 | }; | 22 | }; |
18 | 23 | ||
19 | extern void pxa_set_mci_info(struct pxamci_platform_data *info); | 24 | extern void pxa_set_mci_info(struct pxamci_platform_data *info); |
diff --git a/arch/arm/mach-pxa/include/mach/palmtc.h b/arch/arm/mach-pxa/include/mach/palmtc.h new file mode 100644 index 000000000000..3dc9b074ab46 --- /dev/null +++ b/arch/arm/mach-pxa/include/mach/palmtc.h | |||
@@ -0,0 +1,86 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-pxa/palmtc-gpio.h | ||
3 | * | ||
4 | * GPIOs and interrupts for Palm Tungsten|C Handheld Computer | ||
5 | * | ||
6 | * Authors: Alex Osborne <bobofdoom@gmail.com> | ||
7 | * Marek Vasut <marek.vasut@gmail.com> | ||
8 | * Holger Bocklet <bitz.email@gmx.net> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | * | ||
14 | */ | ||
15 | |||
16 | #ifndef _INCLUDE_PALMTC_H_ | ||
17 | #define _INCLUDE_PALMTC_H_ | ||
18 | |||
19 | /** HERE ARE GPIOs **/ | ||
20 | |||
21 | /* GPIOs */ | ||
22 | #define GPIO_NR_PALMTC_EARPHONE_DETECT 2 | ||
23 | #define GPIO_NR_PALMTC_CRADLE_DETECT 5 | ||
24 | #define GPIO_NR_PALMTC_HOTSYNC_BUTTON 7 | ||
25 | |||
26 | /* SD/MMC */ | ||
27 | #define GPIO_NR_PALMTC_SD_DETECT_N 12 | ||
28 | #define GPIO_NR_PALMTC_SD_POWER 32 | ||
29 | #define GPIO_NR_PALMTC_SD_READONLY 54 | ||
30 | |||
31 | /* WLAN */ | ||
32 | #define GPIO_NR_PALMTC_PCMCIA_READY 13 | ||
33 | #define GPIO_NR_PALMTC_PCMCIA_PWRREADY 14 | ||
34 | #define GPIO_NR_PALMTC_PCMCIA_POWER1 15 | ||
35 | #define GPIO_NR_PALMTC_PCMCIA_POWER2 33 | ||
36 | #define GPIO_NR_PALMTC_PCMCIA_POWER3 55 | ||
37 | #define GPIO_NR_PALMTC_PCMCIA_RESET 78 | ||
38 | |||
39 | /* UDC */ | ||
40 | #define GPIO_NR_PALMTC_USB_DETECT_N 4 | ||
41 | #define GPIO_NR_PALMTC_USB_POWER 36 | ||
42 | |||
43 | /* LCD/BACKLIGHT */ | ||
44 | #define GPIO_NR_PALMTC_BL_POWER 16 | ||
45 | #define GPIO_NR_PALMTC_LCD_POWER 44 | ||
46 | #define GPIO_NR_PALMTC_LCD_BLANK 38 | ||
47 | |||
48 | /* UART */ | ||
49 | #define GPIO_NR_PALMTC_RS232_POWER 37 | ||
50 | |||
51 | /* IRDA */ | ||
52 | #define GPIO_NR_PALMTC_IR_DISABLE 45 | ||
53 | |||
54 | /* IRQs */ | ||
55 | #define IRQ_GPIO_PALMTC_SD_DETECT_N IRQ_GPIO(GPIO_NR_PALMTC_SD_DETECT_N) | ||
56 | #define IRQ_GPIO_PALMTC_WLAN_READY IRQ_GPIO(GPIO_NR_PALMTC_WLAN_READY) | ||
57 | |||
58 | /* UCB1400 GPIOs */ | ||
59 | #define GPIO_NR_PALMTC_POWER_DETECT (0x80 | 0x00) | ||
60 | #define GPIO_NR_PALMTC_HEADPHONE_DETECT (0x80 | 0x01) | ||
61 | #define GPIO_NR_PALMTC_SPEAKER_ENABLE (0x80 | 0x03) | ||
62 | #define GPIO_NR_PALMTC_VIBRA_POWER (0x80 | 0x05) | ||
63 | #define GPIO_NR_PALMTC_LED_POWER (0x80 | 0x07) | ||
64 | |||
65 | /** HERE ARE INIT VALUES **/ | ||
66 | #define PALMTC_UCB1400_GPIO_OFFSET 0x80 | ||
67 | |||
68 | /* BATTERY */ | ||
69 | #define PALMTC_BAT_MAX_VOLTAGE 4000 /* 4.00V maximum voltage */ | ||
70 | #define PALMTC_BAT_MIN_VOLTAGE 3550 /* 3.55V critical voltage */ | ||
71 | #define PALMTC_BAT_MAX_CURRENT 0 /* unknokn */ | ||
72 | #define PALMTC_BAT_MIN_CURRENT 0 /* unknown */ | ||
73 | #define PALMTC_BAT_MAX_CHARGE 1 /* unknown */ | ||
74 | #define PALMTC_BAT_MIN_CHARGE 1 /* unknown */ | ||
75 | #define PALMTC_MAX_LIFE_MINS 240 /* on-life in minutes */ | ||
76 | |||
77 | #define PALMTC_BAT_MEASURE_DELAY (HZ * 1) | ||
78 | |||
79 | /* BACKLIGHT */ | ||
80 | #define PALMTC_MAX_INTENSITY 0xFE | ||
81 | #define PALMTC_DEFAULT_INTENSITY 0x7E | ||
82 | #define PALMTC_LIMIT_MASK 0x7F | ||
83 | #define PALMTC_PRESCALER 0x3F | ||
84 | #define PALMTC_PERIOD_NS 3500 | ||
85 | |||
86 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/palmtx.h b/arch/arm/mach-pxa/include/mach/palmtx.h index e74082c872e1..1be0db6ed55e 100644 --- a/arch/arm/mach-pxa/include/mach/palmtx.h +++ b/arch/arm/mach-pxa/include/mach/palmtx.h | |||
@@ -82,6 +82,11 @@ | |||
82 | #define PALMTX_PHYS_FLASH_START PXA_CS0_PHYS /* ChipSelect 0 */ | 82 | #define PALMTX_PHYS_FLASH_START PXA_CS0_PHYS /* ChipSelect 0 */ |
83 | #define PALMTX_PHYS_NAND_START PXA_CS1_PHYS /* ChipSelect 1 */ | 83 | #define PALMTX_PHYS_NAND_START PXA_CS1_PHYS /* ChipSelect 1 */ |
84 | 84 | ||
85 | #define PALMTX_NAND_ALE_PHYS (PALMTX_PHYS_NAND_START | (1 << 24)) | ||
86 | #define PALMTX_NAND_CLE_PHYS (PALMTX_PHYS_NAND_START | (1 << 25)) | ||
87 | #define PALMTX_NAND_ALE_VIRT 0xff100000 | ||
88 | #define PALMTX_NAND_CLE_VIRT 0xff200000 | ||
89 | |||
85 | /* TOUCHSCREEN */ | 90 | /* TOUCHSCREEN */ |
86 | #define AC97_LINK_FRAME 21 | 91 | #define AC97_LINK_FRAME 21 |
87 | 92 | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h b/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h index 7d1a059b3d43..e91d63cfe811 100644 --- a/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h +++ b/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h | |||
@@ -208,7 +208,7 @@ | |||
208 | #define CKEN_MVED 43 /* < MVED clock enable */ | 208 | #define CKEN_MVED 43 /* < MVED clock enable */ |
209 | 209 | ||
210 | /* Note: GCU clock enable bit differs on PXA300/PXA310 and PXA320 */ | 210 | /* Note: GCU clock enable bit differs on PXA300/PXA310 and PXA320 */ |
211 | #define PXA300_CKEN_GRAPHICS 42 /* Graphics controller clock enable */ | 211 | #define CKEN_PXA300_GCU 42 /* Graphics controller clock enable */ |
212 | #define PXA320_CKEN_GRAPHICS 7 /* Graphics controller clock enable */ | 212 | #define CKEN_PXA320_GCU 7 /* Graphics controller clock enable */ |
213 | 213 | ||
214 | #endif /* __ASM_ARCH_PXA3XX_REGS_H */ | 214 | #endif /* __ASM_ARCH_PXA3XX_REGS_H */ |
diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h b/arch/arm/mach-pxa/include/mach/pxafb.h index 6932720ba04e..f73061c90b5e 100644 --- a/arch/arm/mach-pxa/include/mach/pxafb.h +++ b/arch/arm/mach-pxa/include/mach/pxafb.h | |||
@@ -118,7 +118,8 @@ struct pxafb_mach_info { | |||
118 | u_int fixed_modes:1, | 118 | u_int fixed_modes:1, |
119 | cmap_inverse:1, | 119 | cmap_inverse:1, |
120 | cmap_static:1, | 120 | cmap_static:1, |
121 | unused:29; | 121 | acceleration_enabled:1, |
122 | unused:28; | ||
122 | 123 | ||
123 | /* The following should be defined in LCCR0 | 124 | /* The following should be defined in LCCR0 |
124 | * LCCR0_Act or LCCR0_Pas Active or Passive | 125 | * LCCR0_Act or LCCR0_Pas Active or Passive |
diff --git a/arch/arm/mach-pxa/include/mach/regs-intc.h b/arch/arm/mach-pxa/include/mach/regs-intc.h index ad23e74b762f..68464ce1c1ea 100644 --- a/arch/arm/mach-pxa/include/mach/regs-intc.h +++ b/arch/arm/mach-pxa/include/mach/regs-intc.h | |||
@@ -13,6 +13,7 @@ | |||
13 | #define ICFP __REG(0x40D0000C) /* Interrupt Controller FIQ Pending Register */ | 13 | #define ICFP __REG(0x40D0000C) /* Interrupt Controller FIQ Pending Register */ |
14 | #define ICPR __REG(0x40D00010) /* Interrupt Controller Pending Register */ | 14 | #define ICPR __REG(0x40D00010) /* Interrupt Controller Pending Register */ |
15 | #define ICCR __REG(0x40D00014) /* Interrupt Controller Control Register */ | 15 | #define ICCR __REG(0x40D00014) /* Interrupt Controller Control Register */ |
16 | #define ICHP __REG(0x40D00018) /* Interrupt Controller Highest Priority Register */ | ||
16 | 17 | ||
17 | #define ICIP2 __REG(0x40D0009C) /* Interrupt Controller IRQ Pending Register 2 */ | 18 | #define ICIP2 __REG(0x40D0009C) /* Interrupt Controller IRQ Pending Register 2 */ |
18 | #define ICMR2 __REG(0x40D000A0) /* Interrupt Controller Mask Register 2 */ | 19 | #define ICMR2 __REG(0x40D000A0) /* Interrupt Controller Mask Register 2 */ |
@@ -20,4 +21,14 @@ | |||
20 | #define ICFP2 __REG(0x40D000A8) /* Interrupt Controller FIQ Pending Register 2 */ | 21 | #define ICFP2 __REG(0x40D000A8) /* Interrupt Controller FIQ Pending Register 2 */ |
21 | #define ICPR2 __REG(0x40D000AC) /* Interrupt Controller Pending Register 2 */ | 22 | #define ICPR2 __REG(0x40D000AC) /* Interrupt Controller Pending Register 2 */ |
22 | 23 | ||
24 | #define ICIP3 __REG(0x40D00130) /* Interrupt Controller IRQ Pending Register 3 */ | ||
25 | #define ICMR3 __REG(0x40D00134) /* Interrupt Controller Mask Register 3 */ | ||
26 | #define ICLR3 __REG(0x40D00138) /* Interrupt Controller Level Register 3 */ | ||
27 | #define ICFP3 __REG(0x40D0013C) /* Interrupt Controller FIQ Pending Register 3 */ | ||
28 | #define ICPR3 __REG(0x40D00140) /* Interrupt Controller Pending Register 3 */ | ||
29 | |||
30 | #define IPR(x) __REG(0x40D0001C + (x < 32 ? (x << 2) \ | ||
31 | : (x < 64 ? (0x94 + ((x - 32) << 2)) \ | ||
32 | : (0x128 + ((x - 64) << 2))))) | ||
33 | |||
23 | #endif /* __ASM_MACH_REGS_INTC_H */ | 34 | #endif /* __ASM_MACH_REGS_INTC_H */ |
diff --git a/arch/arm/mach-pxa/include/mach/uncompress.h b/arch/arm/mach-pxa/include/mach/uncompress.h index b54749413e96..237734b5b1be 100644 --- a/arch/arm/mach-pxa/include/mach/uncompress.h +++ b/arch/arm/mach-pxa/include/mach/uncompress.h | |||
@@ -37,7 +37,7 @@ static inline void arch_decomp_setup(void) | |||
37 | { | 37 | { |
38 | if (machine_is_littleton() || machine_is_intelmote2() | 38 | if (machine_is_littleton() || machine_is_intelmote2() |
39 | || machine_is_csb726() || machine_is_stargate2() | 39 | || machine_is_csb726() || machine_is_stargate2() |
40 | || machine_is_cm_x300()) | 40 | || machine_is_cm_x300() || machine_is_balloon3()) |
41 | UART = STUART; | 41 | UART = STUART; |
42 | } | 42 | } |
43 | 43 | ||