diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-09 18:24:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-09 18:24:19 -0500 |
commit | 45ff993d2b0b4c07038457cdf07ecf648abd3d78 (patch) | |
tree | ae2f89ce5741e36d6eaab3178d86c2cd754801e4 /arch | |
parent | cb834e7cc0e8b223386f219c1d1986846c87c55f (diff) | |
parent | 91bc51d8a10b00d8233dd5b6f07d7eb40828b87d (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm:
[ARM] pxa: fix one-shot timer mode
[ARM] 4645/1: Cyberpro: Trivial fix to restore 16bpp mode.
[ARM] 4644/2: fix flush_kern_tlb_range() in module space
[ARM] Allow watchdog drivers to be selected again
[ARM] 4633/1: omap build fix when FB enabled
[ARM] 4642/2: netX: default config for netx based boards
[ARM] 4641/2: netX: fix kobject_name type
[ARM] Fix iop3xx macro
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-netx/xc.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-pxa/time.c | 23 | ||||
-rw-r--r-- | arch/arm/plat-omap/fb.c | 2 |
4 files changed, 20 insertions, 13 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index a0cdaafa11..a7e9fea978 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -1040,6 +1040,8 @@ source "drivers/power/Kconfig" | |||
1040 | 1040 | ||
1041 | source "drivers/hwmon/Kconfig" | 1041 | source "drivers/hwmon/Kconfig" |
1042 | 1042 | ||
1043 | source "drivers/watchdog/Kconfig" | ||
1044 | |||
1043 | source "drivers/ssb/Kconfig" | 1045 | source "drivers/ssb/Kconfig" |
1044 | 1046 | ||
1045 | #source "drivers/l3/Kconfig" | 1047 | #source "drivers/l3/Kconfig" |
diff --git a/arch/arm/mach-netx/xc.c b/arch/arm/mach-netx/xc.c index bd5184fe17..ca9c5b6128 100644 --- a/arch/arm/mach-netx/xc.c +++ b/arch/arm/mach-netx/xc.c | |||
@@ -190,15 +190,15 @@ struct xc *request_xc(int xcno, struct device *dev) | |||
190 | goto exit; | 190 | goto exit; |
191 | 191 | ||
192 | if (!request_mem_region | 192 | if (!request_mem_region |
193 | (NETX_PA_XPEC(xcno), XPEC_MEM_SIZE, kobject_name(dev->kobj))) | 193 | (NETX_PA_XPEC(xcno), XPEC_MEM_SIZE, kobject_name(&dev->kobj))) |
194 | goto exit_free; | 194 | goto exit_free; |
195 | 195 | ||
196 | if (!request_mem_region | 196 | if (!request_mem_region |
197 | (NETX_PA_XMAC(xcno), XMAC_MEM_SIZE, kobject_name(dev->kobj))) | 197 | (NETX_PA_XMAC(xcno), XMAC_MEM_SIZE, kobject_name(&dev->kobj))) |
198 | goto exit_release_1; | 198 | goto exit_release_1; |
199 | 199 | ||
200 | if (!request_mem_region | 200 | if (!request_mem_region |
201 | (SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE, kobject_name(dev->kobj))) | 201 | (SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE, kobject_name(&dev->kobj))) |
202 | goto exit_release_2; | 202 | goto exit_release_2; |
203 | 203 | ||
204 | x->xpec_base = (void * __iomem)io_p2v(NETX_PA_XPEC(xcno)); | 204 | x->xpec_base = (void * __iomem)io_p2v(NETX_PA_XPEC(xcno)); |
diff --git a/arch/arm/mach-pxa/time.c b/arch/arm/mach-pxa/time.c index a2d45d742c..fbfa192035 100644 --- a/arch/arm/mach-pxa/time.c +++ b/arch/arm/mach-pxa/time.c | |||
@@ -68,6 +68,7 @@ pxa_ost0_interrupt(int irq, void *dev_id) | |||
68 | if (c->mode == CLOCK_EVT_MODE_ONESHOT) { | 68 | if (c->mode == CLOCK_EVT_MODE_ONESHOT) { |
69 | /* Disarm the compare/match, signal the event. */ | 69 | /* Disarm the compare/match, signal the event. */ |
70 | OIER &= ~OIER_E0; | 70 | OIER &= ~OIER_E0; |
71 | OSSR = OSSR_M0; | ||
71 | c->event_handler(c); | 72 | c->event_handler(c); |
72 | } else if (c->mode == CLOCK_EVT_MODE_PERIODIC) { | 73 | } else if (c->mode == CLOCK_EVT_MODE_PERIODIC) { |
73 | /* Call the event handler as many times as necessary | 74 | /* Call the event handler as many times as necessary |
@@ -100,9 +101,9 @@ pxa_ost0_interrupt(int irq, void *dev_id) | |||
100 | * anything that might put us "very close". | 101 | * anything that might put us "very close". |
101 | */ | 102 | */ |
102 | #define MIN_OSCR_DELTA 16 | 103 | #define MIN_OSCR_DELTA 16 |
103 | do { | 104 | do { |
104 | OSSR = OSSR_M0; | 105 | OSSR = OSSR_M0; |
105 | next_match = (OSMR0 += LATCH); | 106 | next_match = (OSMR0 += LATCH); |
106 | c->event_handler(c); | 107 | c->event_handler(c); |
107 | } while (((signed long)(next_match - OSCR) <= MIN_OSCR_DELTA) | 108 | } while (((signed long)(next_match - OSCR) <= MIN_OSCR_DELTA) |
108 | && (c->mode == CLOCK_EVT_MODE_PERIODIC)); | 109 | && (c->mode == CLOCK_EVT_MODE_PERIODIC)); |
@@ -114,14 +115,16 @@ pxa_ost0_interrupt(int irq, void *dev_id) | |||
114 | static int | 115 | static int |
115 | pxa_osmr0_set_next_event(unsigned long delta, struct clock_event_device *dev) | 116 | pxa_osmr0_set_next_event(unsigned long delta, struct clock_event_device *dev) |
116 | { | 117 | { |
117 | unsigned long irqflags; | 118 | unsigned long flags, next, oscr; |
118 | 119 | ||
119 | raw_local_irq_save(irqflags); | 120 | raw_local_irq_save(flags); |
120 | OSMR0 = OSCR + delta; | ||
121 | OSSR = OSSR_M0; | ||
122 | OIER |= OIER_E0; | 121 | OIER |= OIER_E0; |
123 | raw_local_irq_restore(irqflags); | 122 | next = OSCR + delta; |
124 | return 0; | 123 | OSMR0 = next; |
124 | oscr = OSCR; | ||
125 | raw_local_irq_restore(flags); | ||
126 | |||
127 | return (signed)(next - oscr) <= MIN_OSCR_DELTA ? -ETIME : 0; | ||
125 | } | 128 | } |
126 | 129 | ||
127 | static void | 130 | static void |
@@ -132,15 +135,16 @@ pxa_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *dev) | |||
132 | switch (mode) { | 135 | switch (mode) { |
133 | case CLOCK_EVT_MODE_PERIODIC: | 136 | case CLOCK_EVT_MODE_PERIODIC: |
134 | raw_local_irq_save(irqflags); | 137 | raw_local_irq_save(irqflags); |
135 | OSMR0 = OSCR + LATCH; | ||
136 | OSSR = OSSR_M0; | 138 | OSSR = OSSR_M0; |
137 | OIER |= OIER_E0; | 139 | OIER |= OIER_E0; |
140 | OSMR0 = OSCR + LATCH; | ||
138 | raw_local_irq_restore(irqflags); | 141 | raw_local_irq_restore(irqflags); |
139 | break; | 142 | break; |
140 | 143 | ||
141 | case CLOCK_EVT_MODE_ONESHOT: | 144 | case CLOCK_EVT_MODE_ONESHOT: |
142 | raw_local_irq_save(irqflags); | 145 | raw_local_irq_save(irqflags); |
143 | OIER &= ~OIER_E0; | 146 | OIER &= ~OIER_E0; |
147 | OSSR = OSSR_M0; | ||
144 | raw_local_irq_restore(irqflags); | 148 | raw_local_irq_restore(irqflags); |
145 | break; | 149 | break; |
146 | 150 | ||
@@ -149,6 +153,7 @@ pxa_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *dev) | |||
149 | /* initializing, released, or preparing for suspend */ | 153 | /* initializing, released, or preparing for suspend */ |
150 | raw_local_irq_save(irqflags); | 154 | raw_local_irq_save(irqflags); |
151 | OIER &= ~OIER_E0; | 155 | OIER &= ~OIER_E0; |
156 | OSSR = OSSR_M0; | ||
152 | raw_local_irq_restore(irqflags); | 157 | raw_local_irq_restore(irqflags); |
153 | break; | 158 | break; |
154 | 159 | ||
diff --git a/arch/arm/plat-omap/fb.c b/arch/arm/plat-omap/fb.c index 4493bcff51..ee40c1a0b8 100644 --- a/arch/arm/plat-omap/fb.c +++ b/arch/arm/plat-omap/fb.c | |||
@@ -171,7 +171,7 @@ static int check_fbmem_region(int region_idx, struct omapfb_mem_region *rg, | |||
171 | * Called from map_io. We need to call to this early enough so that we | 171 | * Called from map_io. We need to call to this early enough so that we |
172 | * can reserve the fixed SDRAM regions before VM could get hold of them. | 172 | * can reserve the fixed SDRAM regions before VM could get hold of them. |
173 | */ | 173 | */ |
174 | void omapfb_reserve_sdram(void) | 174 | void __init omapfb_reserve_sdram(void) |
175 | { | 175 | { |
176 | struct bootmem_data *bdata; | 176 | struct bootmem_data *bdata; |
177 | unsigned long sdram_start, sdram_size; | 177 | unsigned long sdram_start, sdram_size; |