]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
16 years agoNOMMU: Present backing device capabilities for MTD chardevs
David Howells [Thu, 12 Feb 2009 10:40:00 +0000 (10:40 +0000)]
NOMMU: Present backing device capabilities for MTD chardevs

Present backing device capabilities for MTD character device files to allow
NOMMU mmap to do direct mapping where possible.

Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Bernd Schmidt <bernd.schmidt@analog.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
16 years agoMerge branches 'topic/slob/cleanups', 'topic/slob/fixes', 'topic/slub/core', 'topic...
Pekka Enberg [Tue, 24 Mar 2009 08:25:21 +0000 (10:25 +0200)]
Merge branches 'topic/slob/cleanups', 'topic/slob/fixes', 'topic/slub/core', 'topic/slub/cleanups' and 'topic/slub/perf' into for-linus

16 years agoavr32: remove duplicated #include
Huang Weiyi [Sat, 21 Mar 2009 05:50:58 +0000 (13:50 +0800)]
avr32: remove duplicated #include

Remove duplicated #include in arch/avr32/boards/hammerhead/flash.c.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Acked-by: Alex Raimondi <mailinglist@miromico.ch>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agodma-debug: make memory range checks more consistent
Joerg Roedel [Mon, 23 Mar 2009 14:35:08 +0000 (15:35 +0100)]
dma-debug: make memory range checks more consistent

Impact: extend on-kernel-stack DMA debug checks to all !highmem pages

We only checked dma_map_single() - extend it to dma_map_page()
and dma_map_sg() as well.

Also, fix dma_map_single() corner case bug: make sure we dont
stack-check highmem (not mapped) pages.

Reported-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Cc: iommu@lists.linux-foundation.org
LKML-Reference: <1237818908-26516-1-git-send-email-joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agom68knommu: fix 5407 ColdFire UART vector setup
Greg Ungerer [Tue, 24 Mar 2009 07:33:41 +0000 (17:33 +1000)]
m68knommu: fix 5407 ColdFire UART vector setup

There is a couple of problems with the UART vector setup for the 5307
ColdFire UART. The ICR register access should be 8bit, not 32bit. The
address of the UIVR register is wrong, it needs to be offset into the
MBAR register region. Fix these.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68knommu: fix 5307 ColdFire UART vector setup
Greg Ungerer [Tue, 24 Mar 2009 07:22:05 +0000 (17:22 +1000)]
m68knommu: fix 5307 ColdFire UART vector setup

There is a couple of problems with the UART vector setup for the 5307
ColdFire UART. The ICR register access should be 8bit, not 32bit. The
address of the UIVR register is wrong, it needs to be offset into the
MBAR register region. Fix these.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agotracing/filters: disallow integer values for string filters and vice versa
Tom Zanussi [Tue, 24 Mar 2009 07:14:42 +0000 (02:14 -0500)]
tracing/filters: disallow integer values for string filters and vice versa

Impact: fix filter use boundary condition / crash

Make sure filters for string fields don't use integer values and vice
versa.  Getting it wrong can crash the system or produce bogus
results.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1237878882.8339.61.camel@charm-linux>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agotracing/filters: use trace_seq_printf() to print filters
Tom Zanussi [Tue, 24 Mar 2009 07:14:31 +0000 (02:14 -0500)]
tracing/filters: use trace_seq_printf() to print filters

Impact: cleanup

Instead of just using the trace_seq buffer to print the filters, use
trace_seq_printf() as it was intended to be used.

Reported-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1237878871.8339.59.camel@charm-linux>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agotracing/filters: free pred when clearing filters
Tom Zanussi [Tue, 24 Mar 2009 07:14:11 +0000 (02:14 -0500)]
tracing/filters: free pred when clearing filters

Impact: fix (small) per trace filter modification memory leak

Free the current pred when clearing the filters via the filter files.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1237878851.8339.58.camel@charm-linux>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agotracing/filters: use list_for_each_entry
Tom Zanussi [Tue, 24 Mar 2009 07:14:01 +0000 (02:14 -0500)]
tracing/filters: use list_for_each_entry

Impact: cleanup

No need to use the safe version here, so use list_for_each_entry instead
of list_for_each_entry_safe in find_event_field().

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1237878841.8339.57.camel@charm-linux>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agom68knommu: fix 5249 ColdFire UART vector setup
Greg Ungerer [Tue, 24 Mar 2009 07:14:32 +0000 (17:14 +1000)]
m68knommu: fix 5249 ColdFire UART vector setup

The address of the IVUR register is not correct, it should be offset
into the MBAR region. Without this the vector is not set to the correct
number.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68knommu: fix 5249 ColdFire UART setup
Greg Ungerer [Tue, 24 Mar 2009 06:50:09 +0000 (16:50 +1000)]
m68knommu: fix 5249 ColdFire UART setup

The ICR registers of the 5249 ColdFire processor are 8bits, not 32bits.
Fix the read/write of these register to be the correct size.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68knommu: fix end of uart table marker
Greg Ungerer [Tue, 24 Mar 2009 05:15:14 +0000 (15:15 +1000)]
m68knommu: fix end of uart table marker

The UART platform data structure is missing an empty struct at the
end (as the end of structure marker).

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68knommu: switch to using generic_handle_irq()
Greg Ungerer [Thu, 19 Mar 2009 23:53:59 +0000 (09:53 +1000)]
m68knommu: switch to using generic_handle_irq()

Switch to using generic_handle_irq() instead of the deprecated __do_IRQ().

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68k: merge the mmu and non-mmu versions of tlbflush.h
Greg Ungerer [Wed, 11 Mar 2009 06:44:39 +0000 (16:44 +1000)]
m68k: merge the mmu and non-mmu versions of tlbflush.h

Simple merge of the mmu and non-mmu versions of tlbflush.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68knommu: introduce basic clk infrastructure
Greg Ungerer [Wed, 4 Mar 2009 00:43:06 +0000 (10:43 +1000)]
m68knommu: introduce basic clk infrastructure

Create basic support for clk API. Recent changes to the FEC driver
(used by many ColdFire family parts) need this. Initially only
supports getting the master clock frequency.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68k: merge the mmu and non-mmu versions of module.h
Greg Ungerer [Thu, 19 Feb 2009 04:18:23 +0000 (14:18 +1000)]
m68k: merge the mmu and non-mmu versions of module.h

Simple merge of the mmu and non-mmu versions of module.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68knommu: add missing interrupt line definition for UART 2
Greg Ungerer [Thu, 12 Feb 2009 06:02:05 +0000 (16:02 +1000)]
m68knommu: add missing interrupt line definition for UART 2

Signed-off-by: David Wu <david.wu@arcturusnetworks.com>
Acked-by: Michael Durrant <mdurrant@arcturusnetworks.com>
Acked-by: Oleksandr Zhadan <oleks@arcturusnetworks.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68k: merge the mmu and non-mmu versions of mmu_context.h
Greg Ungerer [Mon, 9 Feb 2009 23:49:00 +0000 (09:49 +1000)]
m68k: merge the mmu and non-mmu versions of mmu_context.h

Simple merge of the mmu and non-mmu versions of mmu_context.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68k: merge the mmu and non-mmu versions of current.h
Greg Ungerer [Fri, 6 Feb 2009 04:54:08 +0000 (14:54 +1000)]
m68k: merge the mmu and non-mmu versions of current.h

Trivial merge of the mmu and non-mmu versions of current.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: merge the mmu and non-mmu versions of div64.h
Greg Ungerer [Fri, 6 Feb 2009 04:50:08 +0000 (14:50 +1000)]
m68k: merge the mmu and non-mmu versions of div64.h

Trivial merge of the mmu and non-mmu versions of div64.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: merge the mmu and non-mmu versions of bugs.h
Greg Ungerer [Fri, 6 Feb 2009 04:45:23 +0000 (14:45 +1000)]
m68k: merge the mmu and non-mmu versions of bugs.h

Trivial merge of the mmu and non-mmu versions of bugs.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: merge the mmu and non-mmu versions of bug.h
Greg Ungerer [Fri, 6 Feb 2009 04:44:11 +0000 (14:44 +1000)]
m68k: merge the mmu and non-mmu versions of bug.h

Trivial merge of the mmu and non-mmu versions of bug.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use the mmu version of cache.h for m68knommu as well
Greg Ungerer [Fri, 6 Feb 2009 04:34:47 +0000 (14:34 +1000)]
m68k: use the mmu version of cache.h for m68knommu as well

The non-mmu version of cache.h is almost the same as the mmu version.
Merge them.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use the mmu version of bootinfo.h for m68knommu as well
Greg Ungerer [Fri, 6 Feb 2009 04:31:51 +0000 (14:31 +1000)]
m68k: use the mmu version of bootinfo.h for m68knommu as well

All m68k varients can use the same mmu version of bootinfo.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: merge the mmu and non-mmu versions of fb.h
Greg Ungerer [Fri, 6 Feb 2009 04:25:53 +0000 (14:25 +1000)]
m68k: merge the mmu and non-mmu versions of fb.h

Trivial merge of the mmu and non-mmu versions of fb.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: merge the mmu and non-mmu versions of segment.h
Greg Ungerer [Fri, 6 Feb 2009 04:14:29 +0000 (14:14 +1000)]
m68k: merge the mmu and non-mmu versions of segment.h

Trivial merge of the mmu and non-mmu version of segment.h.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: merge the mmu and non-mmu versions of ucontext.h
Greg Ungerer [Fri, 6 Feb 2009 03:55:16 +0000 (13:55 +1000)]
m68k: merge the mmu and non-mmu versions of ucontext.h

The non-mmu m68k setups can use the mm ucontext.h with no change.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68knommu: Fix support for console port other than ttyS0 on mcf.c
Len Sorensen [Thu, 5 Feb 2009 00:11:24 +0000 (10:11 +1000)]
m68knommu: Fix support for console port other than ttyS0 on mcf.c

Due to a case of backwards logic, mfc.c always makes the console port be
ttyS0 even when you ask for another port.

This patch fixes this issue.

Only when the requested port is NOT in the range 0 to MAXPORTS-1 do we
force it to be treated as if port 0 was requested.  Forcing the port to
0 when it is in fact in the range 0 to MAXPORTS is not helpful.

Tested with working console on ttyS2 on a 5271evb.

Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68k: Restore correct include guards for <asm/unaligned.h>
Geert Uytterhoeven [Thu, 5 Feb 2009 00:07:46 +0000 (10:07 +1000)]
m68k: Restore correct include guards for <asm/unaligned.h>

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68k: Use dma_addr_t for scatterlist.dma_address
Geert Uytterhoeven [Thu, 5 Feb 2009 00:05:25 +0000 (10:05 +1000)]
m68k: Use dma_addr_t for scatterlist.dma_address

dma_addr_t (as was used by m68knommu) is more correct than u32.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68k: merge the mmu and non-mmu versions of pgalloc.h
Greg Ungerer [Thu, 5 Feb 2009 00:01:00 +0000 (10:01 +1000)]
m68k: merge the mmu and non-mmu versions of pgalloc.h

Trivial merge of the mmu and non-mmu version of pgalloc.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68knommu: mv definition of check_pgt_cache()
Greg Ungerer [Wed, 4 Feb 2009 23:58:44 +0000 (09:58 +1000)]
m68knommu: mv definition of check_pgt_cache()

Move the definition of check_pgt_cache() to be consistent with where
m68k defines it. (Will make merging of these headers easier later on).

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: merge the mmu and non-mmu versions of page_offset.h
Greg Ungerer [Mon, 2 Feb 2009 06:27:52 +0000 (16:27 +1000)]
m68k: merge the mmu and non-mmu versions of page_offset.h

Trivial merge of the mmu and non-mmu versions of page_offset.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: the one hw_irq.h can be used buy all m68k
Greg Ungerer [Thu, 29 Jan 2009 07:09:51 +0000 (17:09 +1000)]
m68k: the one hw_irq.h can be used buy all m68k

The mmu and non-mmu hw_irq.h are identical, revert to a single copy.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use non-mmu version of unaligned.h for all m68k
Greg Ungerer [Thu, 29 Jan 2009 06:50:22 +0000 (16:50 +1000)]
m68k: use non-mmu version of unaligned.h for all m68k

The non-mmu version is appropriately ifdef'ed to be used "as is"
on all m68k varients. So switch to it as the only unaligned.h.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use mmu version of elf.h for non-mmu builds as well
Greg Ungerer [Thu, 29 Jan 2009 06:36:43 +0000 (16:36 +1000)]
m68k: use mmu version of elf.h for non-mmu builds as well

Nothing specificly needed to support non-mmu m68k in elf.h,
so just use the mmu one.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use mmu timex.h for non-mmu setups as well
Greg Ungerer [Thu, 29 Jan 2009 06:28:11 +0000 (16:28 +1000)]
m68k: use mmu timex.h for non-mmu setups as well

The non-mmu timex.h can be cleaned up and ends up being identical
to the mmu timex.h, just just use that.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use mmu fpu.h for non-mmu builds as well
Greg Ungerer [Thu, 29 Jan 2009 06:08:53 +0000 (16:08 +1000)]
m68k: use mmu fpu.h for non-mmu builds as well

None of the currently support m68knommu targets have an FPU.
Use the mmu version of fpu.h for all m68k.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use mmu scatterlist.h for non-mmu setups as well
Greg Ungerer [Thu, 29 Jan 2009 06:05:35 +0000 (16:05 +1000)]
m68k: use mmu scatterlist.h for non-mmu setups as well

There is only trivial differences between the non-mmu and mmu
versions of scatterlist.h. So use the mmu one and remove the non-mmu one.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: merge the mmu and non-mmu versions of mmu.h
Greg Ungerer [Thu, 29 Jan 2009 05:57:30 +0000 (15:57 +1000)]
m68k: merge the mmu and non-mmu versions of mmu.h

Trivial merge of the contents of mmu and non-mmu versions of mmu.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68knommu: remove no longer used mcfpci.h
Greg Ungerer [Thu, 29 Jan 2009 05:49:27 +0000 (15:49 +1000)]
m68knommu: remove no longer used mcfpci.h

The mcfpci.h was only used by the removed (m68knommu) COMEMPCI code.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use mmu kmap_types.h for non-mmu setups as well
Greg Ungerer [Thu, 29 Jan 2009 05:46:06 +0000 (15:46 +1000)]
m68k: use mmu kmap_types.h for non-mmu setups as well

The mmu version of kmap_types.h is identical to the non-mmu one.
Revert to a single file.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use the mc146818rtc.h for non-mmu setups as well.
Greg Ungerer [Thu, 29 Jan 2009 05:38:57 +0000 (15:38 +1000)]
m68k: use the mc146818rtc.h for non-mmu setups as well.

The mmu varient of mc146818rtc.h can be use on the non-mmu builds as well.
Revert to the single mc146818rtc.h file.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: swtich non-mmu setups to use the mmu dma-mapping.h
Greg Ungerer [Thu, 29 Jan 2009 05:35:34 +0000 (15:35 +1000)]
m68k: swtich non-mmu setups to use the mmu dma-mapping.h

The mmu version of dma-mapping.h (which is dma-mapping_mm.h) is clean
to be used for non-mmu setups as well. Remove dma-mapping_no.h and
revert dma-mapping_mm.h to dma-mapping.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68k: use the mmu pci.h for m68knommu as well
Greg Ungerer [Thu, 29 Jan 2009 05:33:15 +0000 (15:33 +1000)]
m68k: use the mmu pci.h for m68knommu as well

The (m68knommu) COMEMPCI support has been removed from the kernel,
so now the mmu pci.h can be used on non-mmu setups as well.
Remove the non-mmu pci_no.h and revert the pci_mm.h to be pci.h.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 years agom68knommu: add a local dma_sync_single_for_cpu() function
Greg Ungerer [Wed, 28 Jan 2009 07:29:35 +0000 (17:29 +1000)]
m68knommu: add a local dma_sync_single_for_cpu() function

The onboard ethernet of many ColdFire parts uses DMA. The driver
is being cleaned up to use the correct DMA handling functions, and
m68knommuy currently does not implement dma_sync_single_for_cpu().

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agom68knommu: mark all RAM as ZONE_DMA
Greg Ungerer [Wed, 28 Jan 2009 07:07:19 +0000 (17:07 +1000)]
m68knommu: mark all RAM as ZONE_DMA

There is no reason not to put all RAM in ZONE_DMA for these simple
m68k varients (same as the standard MMU m68k code does). With this
in place the usual dma_alloc_coherent() work as expected.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
16 years agoARM OMAP3: Initial support for Nokia RX-51, v3
Lauri Leukkunen [Tue, 24 Mar 2009 01:38:17 +0000 (18:38 -0700)]
ARM OMAP3: Initial support for Nokia RX-51, v3

Adds board files and related headers for Nokia RX-51
Internet Tablet.

This patch has been updated with some clean-up patches
posted earlier to linux-omap list.

Signed-off-by: Lauri Leukkunen <lauri.leukkunen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: Add support for 3430 SDP, v4
Syed Mohammed Khasim [Tue, 24 Mar 2009 01:38:16 +0000 (18:38 -0700)]
ARM: OMAP3: Add support for 3430 SDP, v4

Add support for 3430 SDP.

Various updates have been merged into this patch from
the linux-omap list.

Patch updated to initialize regulators by David Brownell
<dbrownell@users.sourceforge.net>.

Signed-off-by: Syed Mohammed Khasim <khasim@ti.com>
David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agopowerpc/mm: Introduce early_init_mmu() on 64-bit
Benjamin Herrenschmidt [Thu, 19 Mar 2009 19:34:16 +0000 (19:34 +0000)]
powerpc/mm: Introduce early_init_mmu() on 64-bit

This moves some MMU related init code out of setup_64.c into hash_utils_64.c
and calls it early_init_mmu() and early_init_mmu_secondary(). This will
make it easier to plug in a new MMU type.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/mm: Add option for non-atomic PTE updates to ppc64
Benjamin Herrenschmidt [Thu, 19 Mar 2009 19:34:15 +0000 (19:34 +0000)]
powerpc/mm: Add option for non-atomic PTE updates to ppc64

ppc32 has it already, add it to ppc64 as a preliminary for adding
support for Book3E 64-bit support

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/mm: Fix printk type warning in mmu_context_nohash
Benjamin Herrenschmidt [Thu, 19 Mar 2009 19:34:13 +0000 (19:34 +0000)]
powerpc/mm: Fix printk type warning in mmu_context_nohash

We need to use %zu instead of %d when printing a sizeof()

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/mm: Rename arch/powerpc/kernel/mmap.c to mmap_64.c
Benjamin Herrenschmidt [Thu, 19 Mar 2009 19:34:11 +0000 (19:34 +0000)]
powerpc/mm: Rename arch/powerpc/kernel/mmap.c to mmap_64.c

This file is only useful on 64-bit, so we name it accordingly.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/mm: Merge various PTE bits and accessors definitions
Benjamin Herrenschmidt [Thu, 19 Mar 2009 19:34:09 +0000 (19:34 +0000)]
powerpc/mm: Merge various PTE bits and accessors definitions

Now that they are almost identical, we can merge some of the definitions
related to the PTE format into common files.

This creates a new pte-common.h which is included by both 32 and 64-bit
right after the CPU specific pte-*.h file, and which defines some
bits to "default" values if they haven't been defined already, and
then provides a generic definition of most of the bit combinations
based on these and exposed to the rest of the kernel.

I also moved to the common pgtable.h most of the "small" accessors to the
PTE bits and modification helpers (pte_mk*). The actual accessors remain
in their separate files.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/mm: Tweak PTE bit combination definitions
Benjamin Herrenschmidt [Thu, 19 Mar 2009 19:34:08 +0000 (19:34 +0000)]
powerpc/mm: Tweak PTE bit combination definitions

This patch tweaks the way some PTE bit combinations are defined, in such a
way that the 32 and 64-bit variant become almost identical and that will
make it easier to bring in a new common pte-* file for the new variant
of the Book3-E support.

The combination of bits defining access to kernel pages are now clearly
separated from the combination used by userspace and the core VM. The
resulting generated code should remain identical unless I made a mistake.

Note: While at it, I removed a non-sensical statement related to CONFIG_KGDB
in ppc_mmu_32.c which could cause kernel mappings to be user accessible when
that option is enabled. Probably something that bitrot.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/cell: Fix iommu exception reporting
Jeremy Kerr [Thu, 19 Mar 2009 16:46:35 +0000 (16:46 +0000)]
powerpc/cell: Fix iommu exception reporting

Currently, we will report a page fault as a segment fault, and report
a segment fault as both a page and segment fault.

Fix the SPF_P definition to be correct according to the iommu docs, and
mask before comparing.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/mm: e300c2/c3/c4 TLB errata workaround
Kumar Gala [Thu, 19 Mar 2009 03:55:41 +0000 (03:55 +0000)]
powerpc/mm: e300c2/c3/c4 TLB errata workaround

Complete workaround for DTLB errata in e300c2/c3/c4 processors.

Due to the bug, the hardware-implemented LRU algorythm always goes to way
1 of the TLB. This fix implements the proposed software workaround in
form of a LRW table for chosing the TLB-way.

Based on patch from David Jander <david@protonic.nl>

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/mm: Used free register to save a few cycles in SW TLB miss handling
Kumar Gala [Thu, 19 Mar 2009 03:55:40 +0000 (03:55 +0000)]
powerpc/mm: Used free register to save a few cycles in SW TLB miss handling

Now that r0 is free we can keep the value of I/DMISS in r3 and not reload
it before doing the tlbli/d.  This saves us a few cycles in the fast path
case.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/mm: Remove unused register usage in SW TLB miss handling
Kumar Gala [Thu, 19 Mar 2009 03:55:39 +0000 (03:55 +0000)]
powerpc/mm: Remove unused register usage in SW TLB miss handling

Long ago we had some code that actually used the CTR in the SW TLB
miss handlers (603/e300).  Since we don't use it no reason to waste
cycles saving it off and restoring it (we actually didn't restore it
in the fast path case).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc: expect all devices calling dma ops to have archdata set
Kumar Gala [Thu, 19 Mar 2009 03:40:52 +0000 (03:40 +0000)]
powerpc: expect all devices calling dma ops to have archdata set

Now that we set archdata for of_platform and platform devices via
platform_notify() we no longer need to special case having a NULL device
pointer or NULL archdata.  It should be a driver error if this condition
shows up and the driver should be fixed.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc: setup default archdata for {of_}platform via bus_register_notifier
Kumar Gala [Thu, 19 Mar 2009 03:40:51 +0000 (03:40 +0000)]
powerpc: setup default archdata for {of_}platform via bus_register_notifier

Since a number of powerpc chips are SoCs we end up having dma-able
devices that are registered as platform or of_platform devices.  We need
to hook the archdata to setup proper dma_ops for these devices.

Rather than having to add a bus_notify to each platform we add a default
one at the highest priority (called first) to set the default dma_ops for
of_platform and platform devices to dma_direct_ops.  This allows platform
code to override the ops by providing their own notifier call back.

In the future to enable >4G DMA support on ppc32 we can hook swiotlb ops.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/pci: Default to dma_direct_ops for pci dma_ops
Kumar Gala [Thu, 19 Mar 2009 03:40:50 +0000 (03:40 +0000)]
powerpc/pci: Default to dma_direct_ops for pci dma_ops

This will allow us to remove the ppc32 specific checks in get_dma_ops()
that defaults to dma_direct_ops if the archdata is NULL.  We really
should always have archdata set to something going forward.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/pmi: Irq handlers return irqreturn_t
Stephen Rothwell [Wed, 18 Mar 2009 17:08:52 +0000 (17:08 +0000)]
powerpc/pmi: Irq handlers return irqreturn_t

Commit bedd30d986a05e32dc3eab874e4b9ed8a38058bb ("genirq: make irqreturn_t
an enum") from the genirq tree in next-20090319 caused this new warning:

arch/powerpc/sysdev/pmi.c: In function 'pmi_of_probe':
arch/powerpc/sysdev/pmi.c:166: warning: passing argument 2 of 'request_irq' from incompatible pointer type

Change the return type of the handler from "int" to "irqreturn_t".

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agocpumask: Use mm_cpumask() wrapper instead of cpu_vm_mask
Rusty Russell [Sun, 15 Mar 2009 18:16:43 +0000 (18:16 +0000)]
cpumask: Use mm_cpumask() wrapper instead of cpu_vm_mask

Makes code futureproof against the impending change to mm->cpu_vm_mask.

It's also a chance to use the new cpumask_ ops which take a pointer
(the older ones are deprecated, but there's no hurry for arch code).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc: Turn on self-tests in ppc64_defconfig
Michael Ellerman [Thu, 12 Mar 2009 19:52:47 +0000 (19:52 +0000)]
powerpc: Turn on self-tests in ppc64_defconfig

Most of the code enabled by these options is __init, and it's much
more useful to actually run the tests.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/msi: Mark the MSI bitmap selftest code as __init
Michael Ellerman [Thu, 12 Mar 2009 19:52:45 +0000 (19:52 +0000)]
powerpc/msi: Mark the MSI bitmap selftest code as __init

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/cell: Make axonram depends on BLOCK
Michael Ellerman [Thu, 12 Mar 2009 02:16:27 +0000 (02:16 +0000)]
powerpc/cell: Make axonram depends on BLOCK

Fix axonram driver dependency

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc: Add virtual processor dispatch trace log
Jeremy Kerr [Wed, 11 Mar 2009 17:55:52 +0000 (17:55 +0000)]
powerpc: Add virtual processor dispatch trace log

pseries SPLPAR machines are able to retrieve a log of dispatch and
preempt events from the hypervisor. With this information, we can
see when and why each dispatch & preempt is occuring.

This change adds a set of debugfs files allowing userspace to read this
dispatch log.

Based on initial patches from Nishanth Aravamudan <nacc@us.ibm.com>.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc: Add dispatch trace log fields to lppaca
Jeremy Kerr [Wed, 11 Mar 2009 17:55:52 +0000 (17:55 +0000)]
powerpc: Add dispatch trace log fields to lppaca

PAPR v2.3 defines fields in the virtual processor area for a dispatch
trace log (DLT). Since we'd like to use the DLT, add the necessary
fields to struct lppaca.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc: Fix page_ins details in lppaca comments
Jeremy Kerr [Wed, 11 Mar 2009 17:55:52 +0000 (17:55 +0000)]
powerpc: Fix page_ins details in lppaca comments

The page_ins member ends at byte 0x3, not 0x4. Also, fix up the
alignment.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc: Make sysfs code use smp_call_function_single
Rusty Russell [Wed, 11 Mar 2009 12:20:05 +0000 (12:20 +0000)]
powerpc: Make sysfs code use smp_call_function_single

Impact: performance improvement

This fixes 'powerpc: avoid cpumask games in arch/powerpc/kernel/sysfs.c'
which talked about using smp_call_function_single, but actually used
work_on_cpu (an older version of the patch).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc/pseries: Failed reconfig notifier chain call cleanup
Nathan Fontenot [Mon, 9 Mar 2009 00:00:00 +0000 (00:00 +0000)]
powerpc/pseries: Failed reconfig notifier chain call cleanup

The return code from invoking the notifier chain when updating the
ibm,dynamic-memory property is not handled properly. In failure
cases (rc == NOTIFY_BAD) we should be restoring the original value
of the property.  In success (rc == NOTIFY_OK) we should be returning
zero from the calling routine.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agopowerpc: Fix prom_init on 32-bit OF machines
Benjamin Herrenschmidt [Sun, 22 Mar 2009 16:04:53 +0000 (16:04 +0000)]
powerpc: Fix prom_init on 32-bit OF machines

Commit e7943fbbfdb6eef03c003b374de1f802cc14f02a broke ppc32 using
Open Firmware client interface due to using the wrong relocation
macro when accessing the variable "linux_banner".

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 years agoMerge commit 'origin/master' into next
Benjamin Herrenschmidt [Tue, 24 Mar 2009 02:38:30 +0000 (13:38 +1100)]
Merge commit 'origin/master' into next

16 years agoARM: OMAP3: Add ADS7846 touchscreen support to Overo platform, v3
Steve Sakoman [Tue, 24 Mar 2009 01:38:16 +0000 (18:38 -0700)]
ARM: OMAP3: Add ADS7846 touchscreen support to Overo platform, v3

An upcoming Overo expansion board includes an ADS7846 touchscreen controller.

This patch adds support via the ads7846 driver when enabled in the
kernel config.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: MUSB initialization for omap hw, v2
Felipe Balbi [Tue, 24 Mar 2009 01:34:06 +0000 (18:34 -0700)]
ARM: OMAP3: MUSB initialization for omap hw, v2

Create a generic board-file for initializing usb
on omap2430 and omap3 boards.

Patch modified by Tony to build the module based on
CONFIG_USB_MUSB_SOC. Also merged in a patch adding
the nop xceiv from Ajay Kumar Gupta <ajay.gupta@ti.com>.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: Add base address definitions and resources for OMAP 3 IS, v2
Tony Lindgren [Tue, 24 Mar 2009 01:23:49 +0000 (18:23 -0700)]
ARM: OMAP3: Add base address definitions and resources for OMAP 3 IS, v2

This replaces earlier patch from Sergio Aguirre titled "[REVIEW PATCH 03/14]
OMAP34XX: CAM: Resources fixes".

Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: mmc-twl4030 allow arbitrary slot names, v3
Adrian Hunter [Tue, 24 Mar 2009 01:23:48 +0000 (18:23 -0700)]
ARM: OMAP3: mmc-twl4030 allow arbitrary slot names, v3

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: mmc-twl4030 add cover switch
Adrian Hunter [Tue, 24 Mar 2009 01:23:48 +0000 (18:23 -0700)]
ARM: OMAP3: mmc-twl4030 add cover switch

Allow a cover switch to be used to cause a rescan of the
MMC slot.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: mmc-twl4030 fix for vmmc = 0
David Brownell [Tue, 24 Mar 2009 01:23:48 +0000 (18:23 -0700)]
ARM: OMAP3: mmc-twl4030 fix for vmmc = 0

Resolve longstanding issue noted by Adrian Hunter:  confusion
between settting VSEL=0 (which is 1.8V on MMC1) and poweroff.

Also, leave VSEL alone if we're just powering the regulator off.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: mmc-twl4030 add MMC3 support, v2
Grazvydas Ignotas [Tue, 24 Mar 2009 01:23:47 +0000 (18:23 -0700)]
ARM: OMAP3: mmc-twl4030 add MMC3 support, v2

Device connected to MMC3 is assumed to be self-powered, so
set_power() function is empty. It can't be omited because
host driver requires it.

Array size for hsmmc[] is specified to allocate to allocate
an instance for the third MMC controller.

Also fix a leak which happens if invalid controller id
is passed.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: mmc-twl4030 init passes device nodes back, v2
David Brownell [Tue, 24 Mar 2009 01:23:47 +0000 (18:23 -0700)]
ARM: OMAP3: mmc-twl4030 init passes device nodes back, v2

When setting up HSMMC devices, pass the device nodes back so
board code can linking them to their power supply regulators.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: mmc-twl4030 voltage cleanup
David Brownell [Tue, 24 Mar 2009 01:23:47 +0000 (18:23 -0700)]
ARM: OMAP3: mmc-twl4030 voltage cleanup

Correct twl4030 MMC power switching:  fix voltage ranges reported
for each slot, and handle them fully.

 Lies corrected:
  - MMC-1 doesn't support the 2.6-2.7 Volt range
  - MMC-2 can't normally support anything except 1.8V
 Omissions corrected
  - MMC-1 *does* handle the 2.8-2.9 Volt range
  - MMC-2 can handle 2.5-3.2 Volt cards, given a transceiver

Add transciever support for MMC-2; enable it for Overo and Pandora.
(Depends on something else to have set up pinmuxing for control
signals instead of as MMC2_DAT4..7 pins.)

Also shrink twl4030_hsmmc_info a smidgeon ... padding is all gone.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: mmc-twl4030 fix name buffer length, v2
Adrian Hunter [Tue, 24 Mar 2009 01:23:46 +0000 (18:23 -0700)]
ARM: OMAP3: mmc-twl4030 fix name buffer length, v2

Add 1 to buffer length for null terminator and use snprintf.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: Add more GPIO mux options
Tony Lindgren [Tue, 24 Mar 2009 01:23:46 +0000 (18:23 -0700)]
ARM: OMAP3: Add more GPIO mux options

This patch adds several new GPIO pins and updates
the pin naming comments.

The patch is based on earlier patches on linux-omap
list by Manikandan Pillai <mani.pillai@ti.com>,
Vaibhav Hiremath <hvaibhav@ti.com> and
David Brownell <dbrownell@users.sourceforge.net>.

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP3: Remove unused CONFIG_I2C2_OMAP_BEAGLE
Jarkko Nikula [Tue, 24 Mar 2009 01:23:46 +0000 (18:23 -0700)]
ARM: OMAP3: Remove unused CONFIG_I2C2_OMAP_BEAGLE

There is no CONFIG_I2C2_OMAP_BEAGLE in mainline and it is under
removal in linux-omap also so remove this dead code now.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: get rid of OMAP_TAG_USB, v2
Felipe Balbi [Tue, 24 Mar 2009 01:07:49 +0000 (18:07 -0700)]
ARM: OMAP: get rid of OMAP_TAG_USB, v2

OMAP_TAGS should vanish soon since they're not generic arm tags.
Most of them can be converted to a platform_data or parsed
from a command line like e.g. serial tag.

For OMAP_TAG_USB we just let boards call omap_usb_init()
passing a pointer to omap_usb_config.

Patch updated by Tony for mainline, basically make
n770 and h4 compile. Also folded in a fix for OSK
by David Brownell <dbrownell@users.sourceforge.net>.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Dispatch only relevant DMA interrupts
Santosh Shilimkar [Tue, 24 Mar 2009 01:07:49 +0000 (18:07 -0700)]
ARM: OMAP: Dispatch only relevant DMA interrupts

This fixes the spurious interrupt issue on a DMA channel.

In OMAP sDMA, contrast to the SDMA.DMA4_CSRi registers, the
SDMA.DMA4_IRQSTATUS_Lj registers are updated regardless of
the corresponding bits in the SDMA.DMA4_IRQENABLE_Lj registers.
Since there are four sDMA interrupt lines and if more than one
line is actively used by two concurrently running sDMA softwares
modules,then the spurious interrupt can be observed on the other
lines.

Fix in this patch will only dispatch the relevant and enabled
interrupts on a particular line thus perevting spurious IRQ.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Nishant Kamat <nskamat@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Get available DMA channels from cmdline
Santosh Shilimkar [Tue, 24 Mar 2009 01:07:48 +0000 (18:07 -0700)]
ARM: OMAP: Get available DMA channels from cmdline

This patch set up a cmdline option for omap dma for masking the
available channels. It is needed since the OMAP DMA is a system wide
resource and can be used by another software apart from the kernel.

To reserve the omap SDMA channels for kernel dma usage, use cmdline
bootarg "omap_dma_reserve_ch=". The valid range is 1 to 32.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Nishant Kamat <nskamat@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Add method to register additional I2C busses on the command line, v2
Jarkko Nikula [Tue, 24 Mar 2009 01:07:48 +0000 (18:07 -0700)]
ARM: OMAP: Add method to register additional I2C busses on the command line, v2

This patch extends command line option "i2c_bus=bus_id,clkrate" so that
it allow to register additional I2C busses that are not registered with
omap_register_i2c_bus from board initialization code.

Purpose of this is to register additional board busses which are routed
to external connectors only without any on board I2C devices.

Cc: linux-i2c@vger.kernel.org
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Add command line option for I2C bus speed, v2
Jarkko Nikula [Tue, 24 Mar 2009 01:07:47 +0000 (18:07 -0700)]
ARM: OMAP: Add command line option for I2C bus speed, v2

This patch adds a new command line option "i2c_bus=bus_id,clkrate" into
I2C bus registration helper. Purpose of the option is to override the
default board specific bus speed which is supplied by the
omap_register_i2c_bus.

The default bus speed is typically set to speed of slowest I2C chip on the
bus and overriding allow to use some experimental configurations or updated
chip versions without any kernel modifications.

Cc: linux-i2c@vger.kernel.org
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Add documentation for function omap_register_i2c_bus
Jarkko Nikula [Tue, 24 Mar 2009 01:07:46 +0000 (18:07 -0700)]
ARM: OMAP: Add documentation for function omap_register_i2c_bus

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Export dmtimer functions
Timo Kokkonen [Tue, 24 Mar 2009 01:07:46 +0000 (18:07 -0700)]
ARM: OMAP: Export dmtimer functions

Make the dmtimer function symbols available so modules can take use of
them.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years ago[OMAP850] Build system changes
Zebediah C. McClure [Tue, 24 Mar 2009 01:07:46 +0000 (18:07 -0700)]
[OMAP850] Build system changes

Build system changes.

Signed-off-by: Zebediah C. McClure <zmc@lurian.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years ago[OMAP850] IRQ related changes
Zebediah C. McClure [Tue, 24 Mar 2009 01:07:45 +0000 (18:07 -0700)]
[OMAP850] IRQ related changes

IRQ related changes.

Signed-off-by: Zebediah C. McClure <zmc@lurian.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years ago[OMAP850] Changes to memory subsystem
Zebediah C. McClure [Tue, 24 Mar 2009 01:07:44 +0000 (18:07 -0700)]
[OMAP850] Changes to memory subsystem

Changes to memory subsystem.

Signed-off-by: Zebediah C. McClure <zmc@lurian.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years ago[OMAP850] Changes to base IO subsystem, v2
Zebediah C. McClure [Tue, 24 Mar 2009 01:07:40 +0000 (18:07 -0700)]
[OMAP850] Changes to base IO subsystem, v2

Changes to base IO subsystem.

Signed-off-by: Zebediah C. McClure <zmc@lurian.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years ago[OMAP850] Add base support for omap850 cpu
Zebediah C. McClure [Tue, 24 Mar 2009 01:07:39 +0000 (18:07 -0700)]
[OMAP850] Add base support for omap850 cpu

Add base support for omap850 cpu.

Signed-off-by: Zebediah C. McClure <zmc@lurian.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Remove remaining board-*.h includes from hardware.h
Tony Lindgren [Tue, 24 Mar 2009 01:07:39 +0000 (18:07 -0700)]
ARM: OMAP: Remove remaining board-*.h includes from hardware.h

Also remove board-omap3beagle.h that is not included anywhere,
and move protoype for voiceblue_reset() from board-voiceblue.h
to system.h.

After this patch there are still board-ams-delta.h, board-sx1.h
and board-voiceblue.h that export some functions. These could
be removed if the functions were moved under drivers.

Signed-off-by: Tony Lindgren <tony@atomide.com>