summaryrefslogtreecommitdiffstats
path: root/arch/sh/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6Linus Torvalds2008-12-281-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6: (85 commits) [S390] provide documentation for hvc_iucv kernel parameter. [S390] convert ctcm printks to dev_xxx and pr_xxx macros. [S390] convert zfcp printks to pr_xxx macros. [S390] convert vmlogrdr printks to pr_xxx macros. [S390] convert zfcp dumper printks to pr_xxx macros. [S390] convert cpu related printks to pr_xxx macros. [S390] convert qeth printks to dev_xxx and pr_xxx macros. [S390] convert sclp printks to pr_xxx macros. [S390] convert iucv printks to dev_xxx and pr_xxx macros. [S390] convert ap_bus printks to pr_xxx macros. [S390] convert dcssblk and extmem printks messages to pr_xxx macros. [S390] convert monwriter printks to pr_xxx macros. [S390] convert s390 debug feature printks to pr_xxx macros. [S390] convert monreader printks to pr_xxx macros. [S390] convert appldata printks to pr_xxx macros. [S390] convert setup printks to pr_xxx macros. [S390] convert hypfs printks to pr_xxx macros. [S390] convert time printks to pr_xxx macros. [S390] convert cpacf printks to pr_xxx macros. [S390] convert cio printks to pr_xxx macros. ...
| * [S390] arch_setup_additional_pages argumentsMartin Schwidefsky2008-12-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arch_setup_additional_pages currently gets two arguments, the binary format descripton and an indication if the process uses an executable stack or not. The second argument is not used by anybody, it could be removed without replacement. What actually does make sense is to pass an indication if the process uses the elf interpreter or not. The glibc code will not use anything from the vdso if the process does not use the dynamic linker, so for statically linked binaries the architecture backend can choose not to map the vdso. Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
* | sh: Conditionalize the code dumper on CONFIG_DUMP_CODE.Paul Mundt2008-12-221-0/+8
| | | | | | | | | | | | | | | | We don't really want this enabled by default, but it is still quite useful for debugging. So, make it conditional and leave it off by default. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: mrshpc_setup_windows() needs to be inline.Paul Mundt2008-12-221-1/+1
| | | | | | | | | | | | | | While no one should be including this file multiple times, flag it inline anyways just in case. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off cf-enabler with extreme prejudice.Paul Mundt2008-12-221-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that the rest of the boards that were using cf-enabler "generically" have switched to setting up their mappings on their own, only the mach-se boards were left using it. All of the cf-enabler using mach-se boards use a special initialization of the MRSHPC windows rather than going through the special PTE as other SH-4 platforms do. This consolidates the MRSHPC setup logic, hooks it up on the boards that care, and gets rid of any and all remaining references to cf-enabler. This has been long overdue, as cf-enabler has been the bane of arch/sh/kernel for the last 7 years. Good riddance. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: mach-edosk7705: Fix up edosk7705 so it all builds again.Paul Mundt2008-12-222-29/+4
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off dead mv_init_pci() from machvec.Paul Mundt2008-12-221-1/+0
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off mv_heartbeat() from the machvec.Paul Mundt2008-12-221-2/+0
| | | | | | | | | | | | | | Nothing is using this any more, so get rid of it before anyone gets the bright idea to start using it again. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off sh_bios_in_gdb_mode().Paul Mundt2008-12-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | With the reworked kgdb support, we always detach and reinitialize the stub. This was mostly a feature for handoffs between sh-ipl+g and the kgdb stub, but virtually no sh-ipl+g versions ever had this working right in the first place. Given that the sh-ipl+g stubs in general use today don't even support the GDB stub, and we have already killed off the special casing in the sh-sci serial driver, kill off this now unused symbol too. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add SH-5 optimized memcpy()/memset()/strcpy()/strlen().Paul Mundt2008-12-221-9/+12
| | | | | | | | | | | | Adopted from the uClibc optimized string versions. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Generic kgdb stub support.Paul Mundt2008-12-222-47/+21
| | | | | | | | | | | | | | | | This migrates from the old bitrotted kgdb stub implementation and moves to the generic stub. In the process support for SH-2/SH-2A is also added, which the old stub never provided. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Enable HAVE_ARCH_TRACEHOOK for all SH, now that SH-5 supports it too.Paul Mundt2008-12-222-3/+3
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide linux/regset.h interface for SH-5.Paul Mundt2008-12-222-3/+1
| | | | | | | | | | | | Plugs in general and FPU regsets. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide asm/syscall.h for SH-5.Paul Mundt2008-12-221-1/+75
| | | | | | | | | | | | This provides the asm/syscall.h implementation for sh64 parts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up syscall_get_nr() comment in syscall_32.h.Paul Mundt2008-12-221-1/+1
| | | | | | | | | | | | Residual copy-and-paste damage, fix it up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up the cpu_asid() return value on nommu.Paul Mundt2008-12-221-2/+2
| | | | | | | | | | | | This ought to be unsigned long, rather than defaulting to int. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix an off-by-1 check in __mutex_fastpath_unlock().Paul Mundt2008-12-221-1/+1
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up the SH-4A mutex fastpath semantics.Paul Mundt2008-12-221-16/+21
| | | | | | | | | | | | | | | | | | This fixes up the __mutex_fastpath_xxx() routines to match the semantics noted in the comment. Previously these were looping rather than doing a single-pass, which is counter-intuitive, as the slow path takes care of the looping for us in the event of contention. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: move the hp6xx pm codeMagnus Damm2008-12-221-17/+0
| | | | | | | | | | | | | | | | | | | | Move the not-so-generic pm code from arch/sh/kernel/pm.c to the platform directory together with the rest of the hp6xx pm code. This is done to let non-hp6xx platforms enable CONFIG_PM. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: remove ioport cruft and smc91x from se7343Magnus Damm2008-12-221-3/+0
| | | | | | | | | | | | | | | | | | Remove out-of-date se7343 ioport code including some old support for unknown-ne2000-pcmcia-card, cf-over-pcmcia and a mysterical smc91x that once must have been on a special daughterboard. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: add st16c2550 devices to se7343Magnus Damm2008-12-221-1/+5
| | | | | | | | | | | | | | Add 8250 platform data to setup the ST16C2550C chip on se7343. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add support for SH7201 CPU subtype.Peter Griffin2008-12-222-2/+2
| | | | | | | | | | | | | | This patch adds support for the SH-2A FPU based SH7201 processor subtype. Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide a dyn_arch_ftrace struct definition.Paul Mundt2008-12-221-2/+7
| | | | | | | | | | | | Needed for dynamic ftrace API changes. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Consolidate cpu_relax()/cpu_sleep() definitions across _32/_64.Paul Mundt2008-12-223-5/+3
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add a simple code dumper for SUPERH32 show_regs().Paul Mundt2008-12-221-0/+1
| | | | | | | | | | | | | | | | | | | | This implements a simple show_code() that is in turn plugged in to show_regs() to provide minimal code dumping at the end of the trace. Built on top of a simple instruction disassembler derived from the binutils opcode table. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide optimized unaligned loads on SH-4A.Paul Mundt2008-12-222-1/+264
| | | | | | | | | | | | | | | | | | | | This adds support for unaligned loads on SH-4A, using the SH-4A's neutered movua.l instruction. As movua.l is r0-inspired, stores are still handled through the packed struct. Based on asm-generic/unaligned.h by Harvey Harrison. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: P4 ioremap pass-throughMagnus Damm2008-12-222-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a pass-through case when ioremapping P4 addresses. Addresses passed to ioremap() should be physical addresses, so the best option is usually to convert the virtual address to a physical address before calling ioremap. This will give you a virtual address in P2 which matches the physical address and this works well for most internal hardware blocks on the SuperH architecture. However, some hardware blocks must be accessed through P4. Converting the P4 address to a physical and then back to a P2 does not work. One example of this is the sh7722 TMU block, it must be accessed through P4. Without this patch P4 addresses will be mapped using PTEs which requires the page allocator to be up and running. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add SH-4A optimized fastpath mutex implementation.Michael Trimarchi2008-12-222-1/+111
| | | | | | | | | | | | | | Add fast mutex path implementation for the SH4A architecture Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add platform-specific constants for SH7709Steve Glendinning2008-12-222-0/+32
| | | | | | | | | | | | | | | | I'm using these constants in support of an in-house development board, and thought they may be useful to other users of SH7709. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide optimized non-atomic bitops for SH-2A.Paul Mundt2008-12-222-0/+145
| | | | | | | | | | | | This ties in the new SH-2A 32-bit non-atomic bitops. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Convert to generic bitops for IRQ-toggling implementation.Paul Mundt2008-12-224-95/+7
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: dynamic ftrace support.Matt Fleming2008-12-221-0/+21
|/ | | | | | | First cut at dynamic ftrace support. Signed-off-by: Matt Fleming <mjf@gentoo.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Provide a sane valid_phys_addr_range() to prevent TLB reset with PMB.Paul Mundt2008-11-121-0/+4
| | | | | | | | | | | | | | | With the PMB enabled, only P1SEG and up are covered by the PMB mappings, meaning that situations where out-of-bounds physical addresses are read from will lead to TLB reset after the PMB miss, allowing for use cases like dd if=/dev/mem to reset the TLB. Fix this up to make sure the reference is between __MEMORY_START (phys) and __pa(high_memory). This is coherent across all variants of sh/sh64 with and without MMU, though the PMB bug itself is only applicable to SH-4A parts. Reported-by: Hideo Saito <saito@densan.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Handle fixmap TLB eviction more coherently.Paul Mundt2008-11-101-0/+6
| | | | | | | | | | | | | | | | | | There was a race in the kmap_coherent() implementation. While we guarded against preemption, there was nothing preventing eviction of the pre-faulted fixmap entry from the UTLB. Under certain workloads this would result in the fixmap entries used for cache colouring being evicted from the UTLB in the midst of a copy_page(). In addition to pre-faulting, we also make sure to preserve the PTEs in the kernel page table and introduce a cached PTE for kmap_coherent() usage. This follows a similar change on MIPS ("[MIPS] Fix aliasing bug in copy_to_user_page / copy_from_user_page"). Reported-by: Hideo Saito <saito@densan.co.jp> Reported-by: CHIKAMA Masaki <masaki.chikama@gmail.com> Tested-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: use the new byteorder headers.Harvey Harrison2008-10-311-19/+17
| | | | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off long-dead HD64465 cchip support.Paul Mundt2008-10-284-363/+0
| | | | | | | | | | This code has been dead for many years. The last update it received was in 2003 in order to update it for the driver model changes, though it had already been in disarray and unused before that point. The only boards that ever used this chip have not had users in many years either, so it is finally safe to just kill it off and move on with life. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add on-chip RTC support for SH7722.Paul Mundt2008-10-281-1/+1
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: asm/gpio.h needs linux/kernel.h for might_sleep()/WARN_ON().Paul Mundt2008-10-231-0/+1
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: mach-highlander: Handle SCIF pinmuxing on R7785RP.Paul Mundt2008-10-231-0/+6
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh7785 pinmux supportMagnus Damm2008-10-231-0/+234
| | | | | | | This patch implements pinmux tables for the sh7785 processor. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: improve pinmux support for single direction pinsMagnus Damm2008-10-221-0/+1
| | | | | | | | | | This patch improves the support for gpio pins that are hard wired to either input or output and lack control register association. A special force enum id is used to allow use without control register but still mark the gpio pin as input or output. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Wire up oops reporting in the die notifier chain.Paul Mundt2008-10-211-0/+1
| | | | | | | | | | | Commit 3f5a54e371ca20b119b73704f6c01b71295c1714 ("ftrace: dump out ftrace buffers to console on panic") added an ftrace buffer dumper that hooks in to the die notifier chain and dumps out data in the oops path. Unfortunately SH supported ftrace but didn't support DIE_OOPS, so add that in and get it building again. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: gpio: Stub in dummy GPIO<->IRQ mapping routines.Paul Mundt2008-10-211-0/+15
| | | | | | | IRQ modes are not presently supported, so stub in dummy definitions for now (taken from linux/gpio.h). Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: gpio: Include asm-generic/gpio.h for non-gpiolib stubs.Paul Mundt2008-10-211-4/+2
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Move SH-4 CPU headers down one more level.Paul Mundt2008-10-202-0/+0
| | | | | | | These accidentally got placed in to cpu-sh4 instead of cpu-sh4/cpu, push them down one more level. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Migrate common board headers to mach-common/.Paul Mundt2008-10-2015-0/+0
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Move the CPU definition headers from asm/ to cpu/.Paul Mundt2008-10-204-0/+0
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: reduce Migo-R smc91x overrunsMagnus Damm2008-10-201-0/+2
| | | | | | | | Improve Migo-R ethernet performance by reducing smc91x overruns. This is done by enabling SMC91X_NOWAIT and optimizing CS4 setup. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix up some merge damage.Paul Mundt2008-10-201-0/+2
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* Merge branch 'master' of ↵Paul Mundt2008-10-201-2/+0
|\ | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 Conflicts: Documentation/kernel-parameters.txt arch/sh/include/asm/elf.h