diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 18:18:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 18:18:06 -0400 |
commit | d973664992d814d93db161b28c0cc9a4c7e68f42 (patch) | |
tree | 03de3a9ef1f8f0d5dcd2e3c217c4fdf334f6691e /include | |
parent | 2d5e3e8d28a7820de1eb7b18a7c15d645bb26992 (diff) | |
parent | 9d87dd97ffcd3b5eb2bbaf0d5d93f4bfcaed3f04 (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm: (26 commits)
[ARM] pxa: fix 1c104e0e4f6ab396960c058e95e18bdedcac945b
[ARM] serial: s3c2410: platform_get_irq() may return signed unnoticed
[ARM] am79c961a: platform_get_irq() may return signed unnoticed
[ARM] Feroceon: Feroceon-specific WA-cache compatible {copy,clear}_user_page()
[ARM] Feroceon: fix function alignment in proc-feroceon.S
[ARM] Orion: catch a couple more alternative spellings of PCIe
[ARM] Orion: fix orion-ehci platform resource end addresses
[ARM] Orion: fix ->map_irq() PCIe bus number check
[ARM] Orion: fix ioremap() optimization
[ARM] feroceon: remove CONFIG_CPU_CACHE_ROUND_ROBIN check
[ARM] feroceon: remove CONFIG_CPU_DCACHE_WRITETHROUGH check
kprobes/arm: fix decoding of arithmetic immediate instructions
kprobes/arm: fix cache flush address for instruction stub
[ARM] 5022/1: Race in ARM MMCI PL18x driver, V2
[ARM] 5021/1: at91: buildfix for sam9263 + PM
[ARM] 5018/1: RealView: Fix the ARM11MPCore Oprofile compilation
[ARM] 5016/1: AT91: typo in mci configuration for at91cap at91sam9263
[ARM] 5017/1: pxa3xx: Report unsupported wakeup sources in pxa3xx_set_wake()
[ARM] 5020/1: magician: remove __devinit marker from pasic3_leds_info
[ARM] 5014/1: Cleanup reset state before entering suspend or resetting.
...
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-orion5x/io.h | 9 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/irqs.h | 5 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/magician.h | 49 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/system.h | 2 | ||||
-rw-r--r-- | include/asm-arm/page.h | 8 |
5 files changed, 18 insertions, 55 deletions
diff --git a/include/asm-arm/arch-orion5x/io.h b/include/asm-arm/arch-orion5x/io.h index 5148ab7ad1f8..50f8c8802206 100644 --- a/include/asm-arm/arch-orion5x/io.h +++ b/include/asm-arm/arch-orion5x/io.h | |||
@@ -20,11 +20,10 @@ static inline void __iomem * | |||
20 | __arch_ioremap(unsigned long paddr, size_t size, unsigned int mtype) | 20 | __arch_ioremap(unsigned long paddr, size_t size, unsigned int mtype) |
21 | { | 21 | { |
22 | void __iomem *retval; | 22 | void __iomem *retval; |
23 | 23 | unsigned long offs = paddr - ORION5X_REGS_PHYS_BASE; | |
24 | if (mtype == MT_DEVICE && size && paddr >= ORION5X_REGS_PHYS_BASE && | 24 | if (mtype == MT_DEVICE && size && offs < ORION5X_REGS_SIZE && |
25 | paddr + size <= ORION5X_REGS_PHYS_BASE + ORION5X_REGS_SIZE) { | 25 | size <= ORION5X_REGS_SIZE && offs + size <= ORION5X_REGS_SIZE) { |
26 | retval = (void __iomem *)ORION5X_REGS_VIRT_BASE + | 26 | retval = (void __iomem *)ORION5X_REGS_VIRT_BASE + offs; |
27 | (paddr - ORION5X_REGS_PHYS_BASE); | ||
28 | } else { | 27 | } else { |
29 | retval = __arm_ioremap(paddr, size, mtype); | 28 | retval = __arm_ioremap(paddr, size, mtype); |
30 | } | 29 | } |
diff --git a/include/asm-arm/arch-pxa/irqs.h b/include/asm-arm/arch-pxa/irqs.h index 50c77eacbd5e..b6c8fe377683 100644 --- a/include/asm-arm/arch-pxa/irqs.h +++ b/include/asm-arm/arch-pxa/irqs.h | |||
@@ -239,7 +239,7 @@ | |||
239 | /* ITE8152 irqs */ | 239 | /* ITE8152 irqs */ |
240 | /* add IT8152 IRQs beyond BOARD_END */ | 240 | /* add IT8152 IRQs beyond BOARD_END */ |
241 | #ifdef CONFIG_PCI_HOST_ITE8152 | 241 | #ifdef CONFIG_PCI_HOST_ITE8152 |
242 | #define IT8152_IRQ(x) (IRQ_GPIO(IRQ_BOARD_END) + 1 + (x)) | 242 | #define IT8152_IRQ(x) (IRQ_BOARD_END + (x)) |
243 | 243 | ||
244 | /* IRQ-sources in 3 groups - local devices, LPC (serial), and external PCI */ | 244 | /* IRQ-sources in 3 groups - local devices, LPC (serial), and external PCI */ |
245 | #define IT8152_LD_IRQ_COUNT 9 | 245 | #define IT8152_LD_IRQ_COUNT 9 |
@@ -253,6 +253,9 @@ | |||
253 | 253 | ||
254 | #define IT8152_LAST_IRQ IT8152_LD_IRQ(IT8152_LD_IRQ_COUNT - 1) | 254 | #define IT8152_LAST_IRQ IT8152_LD_IRQ(IT8152_LD_IRQ_COUNT - 1) |
255 | 255 | ||
256 | #if NR_IRQS < (IT8152_LAST_IRQ+1) | ||
256 | #undef NR_IRQS | 257 | #undef NR_IRQS |
257 | #define NR_IRQS (IT8152_LAST_IRQ+1) | 258 | #define NR_IRQS (IT8152_LAST_IRQ+1) |
258 | #endif | 259 | #endif |
260 | |||
261 | #endif /* CONFIG_PCI_HOST_ITE8152 */ | ||
diff --git a/include/asm-arm/arch-pxa/magician.h b/include/asm-arm/arch-pxa/magician.h index b34fd5683e2d..169b374f9921 100644 --- a/include/asm-arm/arch-pxa/magician.h +++ b/include/asm-arm/arch-pxa/magician.h | |||
@@ -13,7 +13,6 @@ | |||
13 | #define _MAGICIAN_H_ | 13 | #define _MAGICIAN_H_ |
14 | 14 | ||
15 | #include <asm/arch/irqs.h> | 15 | #include <asm/arch/irqs.h> |
16 | #include <asm/arch/pxa2xx-gpio.h> | ||
17 | 16 | ||
18 | /* | 17 | /* |
19 | * PXA GPIOs | 18 | * PXA GPIOs |
@@ -64,54 +63,6 @@ | |||
64 | #define GPIO120_MAGICIAN_UNKNOWN 120 | 63 | #define GPIO120_MAGICIAN_UNKNOWN 120 |
65 | 64 | ||
66 | /* | 65 | /* |
67 | * PXA GPIO alternate function mode & direction | ||
68 | */ | ||
69 | |||
70 | #define GPIO0_MAGICIAN_KEY_POWER_MD (0 | GPIO_IN) | ||
71 | #define GPIO9_MAGICIAN_UNKNOWN_MD (9 | GPIO_IN) | ||
72 | #define GPIO10_MAGICIAN_GSM_IRQ_MD (10 | GPIO_IN) | ||
73 | #define GPIO11_MAGICIAN_GSM_OUT1_MD (11 | GPIO_OUT) | ||
74 | #define GPIO13_MAGICIAN_CPLD_IRQ_MD (13 | GPIO_IN) | ||
75 | #define GPIO18_MAGICIAN_UNKNOWN_MD (18 | GPIO_OUT) | ||
76 | #define GPIO22_MAGICIAN_VIBRA_EN_MD (22 | GPIO_OUT) | ||
77 | #define GPIO26_MAGICIAN_GSM_POWER_MD (26 | GPIO_OUT) | ||
78 | #define GPIO27_MAGICIAN_USBC_PUEN_MD (27 | GPIO_OUT) | ||
79 | #define GPIO30_MAGICIAN_nCHARGE_EN_MD (30 | GPIO_OUT) | ||
80 | #define GPIO37_MAGICIAN_KEY_HANGUP_MD (37 | GPIO_OUT) | ||
81 | #define GPIO38_MAGICIAN_KEY_CONTACTS_MD (38 | GPIO_OUT) | ||
82 | #define GPIO40_MAGICIAN_GSM_OUT2_MD (40 | GPIO_OUT) | ||
83 | #define GPIO48_MAGICIAN_UNKNOWN_MD (48 | GPIO_OUT) | ||
84 | #define GPIO56_MAGICIAN_UNKNOWN_MD (56 | GPIO_OUT) | ||
85 | #define GPIO57_MAGICIAN_CAM_RESET_MD (57 | GPIO_OUT) | ||
86 | #define GPIO75_MAGICIAN_SAMSUNG_POWER_MD (75 | GPIO_OUT) | ||
87 | #define GPIO83_MAGICIAN_nIR_EN_MD (83 | GPIO_OUT) | ||
88 | #define GPIO86_MAGICIAN_GSM_RESET_MD (86 | GPIO_OUT) | ||
89 | #define GPIO87_MAGICIAN_GSM_SELECT_MD (87 | GPIO_OUT) | ||
90 | #define GPIO90_MAGICIAN_KEY_CALENDAR_MD (90 | GPIO_OUT) | ||
91 | #define GPIO91_MAGICIAN_KEY_CAMERA_MD (91 | GPIO_OUT) | ||
92 | #define GPIO93_MAGICIAN_KEY_UP_MD (93 | GPIO_IN) | ||
93 | #define GPIO94_MAGICIAN_KEY_DOWN_MD (94 | GPIO_IN) | ||
94 | #define GPIO95_MAGICIAN_KEY_LEFT_MD (95 | GPIO_IN) | ||
95 | #define GPIO96_MAGICIAN_KEY_RIGHT_MD (96 | GPIO_IN) | ||
96 | #define GPIO97_MAGICIAN_KEY_ENTER_MD (97 | GPIO_IN) | ||
97 | #define GPIO98_MAGICIAN_KEY_RECORD_MD (98 | GPIO_IN) | ||
98 | #define GPIO99_MAGICIAN_HEADPHONE_IN_MD (99 | GPIO_IN) | ||
99 | #define GPIO100_MAGICIAN_KEY_VOL_UP_MD (100 | GPIO_IN) | ||
100 | #define GPIO101_MAGICIAN_KEY_VOL_DOWN_MD (101 | GPIO_IN) | ||
101 | #define GPIO102_MAGICIAN_KEY_PHONE_MD (102 | GPIO_IN) | ||
102 | #define GPIO103_MAGICIAN_LED_KP_MD (103 | GPIO_OUT) | ||
103 | #define GPIO104_MAGICIAN_LCD_POWER_1_MD (104 | GPIO_OUT) | ||
104 | #define GPIO105_MAGICIAN_LCD_POWER_2_MD (105 | GPIO_OUT) | ||
105 | #define GPIO106_MAGICIAN_LCD_POWER_3_MD (106 | GPIO_OUT) | ||
106 | #define GPIO107_MAGICIAN_DS1WM_IRQ_MD (107 | GPIO_IN) | ||
107 | #define GPIO108_MAGICIAN_GSM_READY_MD (108 | GPIO_IN) | ||
108 | #define GPIO114_MAGICIAN_UNKNOWN_MD (114 | GPIO_OUT) | ||
109 | #define GPIO115_MAGICIAN_nPEN_IRQ_MD (115 | GPIO_IN) | ||
110 | #define GPIO116_MAGICIAN_nCAM_EN_MD (116 | GPIO_OUT) | ||
111 | #define GPIO119_MAGICIAN_UNKNOWN_MD (119 | GPIO_OUT) | ||
112 | #define GPIO120_MAGICIAN_UNKNOWN_MD (120 | GPIO_OUT) | ||
113 | |||
114 | /* | ||
115 | * CPLD IRQs | 66 | * CPLD IRQs |
116 | */ | 67 | */ |
117 | 68 | ||
diff --git a/include/asm-arm/arch-pxa/system.h b/include/asm-arm/arch-pxa/system.h index 1d56a3ef89fd..a758a719180f 100644 --- a/include/asm-arm/arch-pxa/system.h +++ b/include/asm-arm/arch-pxa/system.h | |||
@@ -22,6 +22,8 @@ static inline void arch_idle(void) | |||
22 | 22 | ||
23 | static inline void arch_reset(char mode) | 23 | static inline void arch_reset(char mode) |
24 | { | 24 | { |
25 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
26 | |||
25 | if (mode == 's') { | 27 | if (mode == 's') { |
26 | /* Jump into ROM at address 0 */ | 28 | /* Jump into ROM at address 0 */ |
27 | cpu_reset(0); | 29 | cpu_reset(0); |
diff --git a/include/asm-arm/page.h b/include/asm-arm/page.h index c86f68ee6511..5c22b0112106 100644 --- a/include/asm-arm/page.h +++ b/include/asm-arm/page.h | |||
@@ -71,6 +71,14 @@ | |||
71 | # endif | 71 | # endif |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #ifdef CONFIG_CPU_COPY_FEROCEON | ||
75 | # ifdef _USER | ||
76 | # define MULTI_USER 1 | ||
77 | # else | ||
78 | # define _USER feroceon | ||
79 | # endif | ||
80 | #endif | ||
81 | |||
74 | #ifdef CONFIG_CPU_SA1100 | 82 | #ifdef CONFIG_CPU_SA1100 |
75 | # ifdef _USER | 83 | # ifdef _USER |
76 | # define MULTI_USER 1 | 84 | # define MULTI_USER 1 |