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 | |
| 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
| -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 | ||||
| -rw-r--r-- | arm/configs/netx_defconfig | 925 | ||||
| -rw-r--r-- | drivers/video/cyber2000fb.c | 2 | ||||
| -rw-r--r-- | include/asm-arm/hardware/iop3xx.h | 2 | ||||
| -rw-r--r-- | include/asm-arm/pgtable.h | 2 |
8 files changed, 949 insertions, 15 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; |
diff --git a/arm/configs/netx_defconfig b/arm/configs/netx_defconfig new file mode 100644 index 0000000000..57f32f39d0 --- /dev/null +++ b/arm/configs/netx_defconfig | |||
| @@ -0,0 +1,925 @@ | |||
| 1 | # | ||
| 2 | # Automatically generated make config: don't edit | ||
| 3 | # Linux kernel version: 2.6.17-rc6 | ||
| 4 | # Tue Jun 6 15:26:53 2006 | ||
| 5 | # | ||
| 6 | CONFIG_ARM=y | ||
| 7 | CONFIG_MMU=y | ||
| 8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
| 9 | CONFIG_GENERIC_HWEIGHT=y | ||
| 10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
| 11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
| 12 | |||
| 13 | # | ||
| 14 | # Code maturity level options | ||
| 15 | # | ||
| 16 | CONFIG_EXPERIMENTAL=y | ||
| 17 | CONFIG_BROKEN_ON_SMP=y | ||
| 18 | CONFIG_LOCK_KERNEL=y | ||
| 19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
| 20 | |||
| 21 | # | ||
| 22 | # General setup | ||
| 23 | # | ||
| 24 | CONFIG_LOCALVERSION="" | ||
| 25 | CONFIG_LOCALVERSION_AUTO=y | ||
| 26 | CONFIG_SWAP=y | ||
| 27 | CONFIG_SYSVIPC=y | ||
| 28 | CONFIG_POSIX_MQUEUE=y | ||
| 29 | CONFIG_BSD_PROCESS_ACCT=y | ||
| 30 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
| 31 | CONFIG_SYSCTL=y | ||
| 32 | # CONFIG_AUDIT is not set | ||
| 33 | CONFIG_IKCONFIG=y | ||
| 34 | CONFIG_IKCONFIG_PROC=y | ||
| 35 | # CONFIG_RELAY is not set | ||
| 36 | CONFIG_INITRAMFS_SOURCE="" | ||
| 37 | CONFIG_UID16=y | ||
| 38 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
| 39 | # CONFIG_EMBEDDED is not set | ||
| 40 | CONFIG_KALLSYMS=y | ||
| 41 | # CONFIG_KALLSYMS_ALL is not set | ||
| 42 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
| 43 | CONFIG_HOTPLUG=y | ||
| 44 | CONFIG_PRINTK=y | ||
| 45 | CONFIG_BUG=y | ||
| 46 | CONFIG_ELF_CORE=y | ||
| 47 | CONFIG_BASE_FULL=y | ||
| 48 | CONFIG_FUTEX=y | ||
| 49 | CONFIG_EPOLL=y | ||
| 50 | CONFIG_SHMEM=y | ||
| 51 | CONFIG_SLAB=y | ||
| 52 | # CONFIG_TINY_SHMEM is not set | ||
| 53 | CONFIG_BASE_SMALL=0 | ||
| 54 | # CONFIG_SLOB is not set | ||
| 55 | CONFIG_OBSOLETE_INTERMODULE=y | ||
| 56 | |||
| 57 | # | ||
| 58 | # Loadable module support | ||
| 59 | # | ||
| 60 | CONFIG_MODULES=y | ||
| 61 | CONFIG_MODULE_UNLOAD=y | ||
| 62 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
| 63 | # CONFIG_MODVERSIONS is not set | ||
| 64 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
| 65 | CONFIG_KMOD=y | ||
| 66 | |||
