aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * [PATCH] remove unused ibcs2/PER_SVR4 in SET_PERSONALITYMartin Schwidefsky2008-10-161-1/+1
| | | | | | | | | | | | | | | | The SET_PERSONALITY macro is always called with a second argument of 0. Remove the ibcs argument and the various tests to set the PER_SVR4 personality. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
* | sh: Add sh7720 pinmux codeMagnus Damm2008-10-201-0/+174
| | | | | | | | | | | | | | This patch adds pinmux and gpio support for the sh7720 processor. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add sh7203 pinmux codeMagnus Damm2008-10-201-0/+143
| | | | | | | | | | | | | | This patch adds pinmux and gpio support for the sh7203 processor. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add sh7723 pinmux codeMagnus Damm2008-10-201-0/+254
| | | | | | | | | | | | | | This patch adds pinmux and gpio support for the sh7723 processor. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add sh7722 pinmux codeMagnus Damm2008-10-201-0/+210
| | | | | | | | | | | | | | This patch adds pinmux and gpio support for the sh7722 processor. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: GPIO and pinmux base codeMagnus Damm2008-10-201-2/+90
| | | | | | | | | | | | | | | | This patch adds gpio code together with the pinmux table parser. In the future we should optimize this and switch back to gpiolib. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: More I/O routine overhauling.Paul Mundt2008-10-043-175/+96
| | | | | | | | | | | | | | | | | | | | This tidies up a lot of the PIO/MMIO split. No in-tree platforms were making use of the MMIO overloading through the machvec (nor have any of them been in some time), so we just kill all of that off. The ISA I/O routine wrapping remains unaffected, which remains the only special casing outside of the iomap API that boards need to think about. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | video: sh_mobile_lcdcfb: Support HAVE_CLK=n configurations.Paul Mundt2008-10-012-73/+1
| | | | | | | | | | | | | | | | | | This provides a workaround for users of sh_mobile_lcdcfb that don't define HAVE_CLK and have otherwise sane clock initialization. At the same time, move the sh_mobile_lcdc.h header to include/video/. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Move the shared INTC code out to drivers/sh/Paul Mundt2008-10-011-90/+2
| | | | | | | | | | | | | | The INTC code will be re-used across different architectures, so move this out to drivers/sh/ and include/linux/sh_intc.h respectively. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up the __raw_read/writeX() definitions.Paul Mundt2008-10-011-41/+36
| | | | | | | | | | | | | | These were doing largely bogus things and using the wrong typing for the address. Bring these in line with the ARM definitions. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_ksyms_64 needs __strncpy_from_user() definition.Paul Mundt2008-09-291-0/+2
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up uaccess_64 put/get_user() cast warnings.Paul Mundt2008-09-291-8/+16
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add FPU registers to regset interface.Paul Mundt2008-09-212-3/+22
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add missing asm/ftrace.h.Paul Mundt2008-09-211-0/+8
| | | | | | | | | | | | This was missed with the ftrace support commit.. check it in now. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Move lookup_exception_vector() out to asm/system_32.h.Paul Mundt2008-09-211-0/+25
| | | | | | | | | | | | | | | | There are other places where we want to have access to the trap/exception number, so move out the lookup_exception_vector() helper. While we're at it, refactor it slightly to return the vector instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add a few more definitions to asm/sizes.h.Paul Mundt2008-09-211-0/+5
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Copy in asm/sizes.h helper from ARM.Paul Mundt2008-09-211-0/+56
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Support kernel stacks smaller than a page.Paul Mundt2008-09-201-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | This follows the powerpc commit f6a616800e68b61807d0f7bb0d5dc70665ef8046 '[POWERPC] Fix kernel stack allocation alignment'. SH has traditionally forced the thread order to be relative to the page size, so there were never any situations where the same bug was triggered by slub. Regardless, the usage of > 8kB stacks for the larger page sizes is overkill, so we switch to using slab allocations there, as per the powerpc change. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up headers_check regression.Paul Mundt2008-09-171-3/+0
| | | | | | | | | | | | | | linux/mmzone.h isn't exported, kill it off from asm/setup.h and simply deal with it in the places that have a dependency instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Consolidate struct sh_cpuinfo definitions across _32/_64 split.Paul Mundt2008-09-173-61/+39
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Tidy up ELF core dumps.Paul Mundt2008-09-121-6/+0
| | | | | | | | | | | | | | | | | | | | These have been using overrides for ELF_CORE_COPY_TASK_REGS and ELF_CORE_COPY_FPREGS while the generic versions can be used instead. Presently the pt_regs are also duplicated across elf_core_copy_regs() and elf_core_copy_task_regs(), this switches to simply copying out through elf_core_copy_regs() instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add DSP registers to regset interface.Paul Mundt2008-09-122-3/+5
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up NUMA build error with se7722_defconfig.Paul Mundt2008-09-122-1/+3
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide the asm/syscall.h interface, needed by tracehook.Paul Mundt2008-09-123-0/+126
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: provide user_stack_pointer(), needed for tracehook support.Paul Mundt2008-09-122-0/+4
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: ioremap_prot support.Paul Mundt2008-09-123-0/+5
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: ptrace: Introduce user_regset interface for gp regs.Paul Mundt2008-09-122-1/+16
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: kprobes: Use trapa #0x3a for breakpoint trap.Paul Mundt2008-09-081-1/+1
| | | | | | | | | | | | | | Not all parts support trapa #0xff, so use something within the debug trap range that's accessible on all parts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: kprobes: Hook up kprobe_fault_handler() in the page fault path.Paul Mundt2008-09-081-2/+1
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add kprobes support.Chris Smith2008-09-081-0/+59
| | | | | | | | | | | | | | | | | | Initial support for kprobes/kretprobes for 32-bit SH platforms. [ General cleanup and some rework for the kretprobe hash lock. -- PFM ] Signed-off-by: Chris Smith <chris.smith@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: early cached_to_uncached initialization.Stuart Menefy2008-09-081-1/+2
| | | | | | | | | | | | | | | | statically initialise the cached_to_uncached offset, so that we can use it immediatly. Signed-off-by: Stuart Menefy <stuart.menefy@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: fixup many sparse errors.Paul Mundt2008-09-0813-6/+151
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: generic clockevent broadcast support.Paul Mundt2008-09-081-0/+3
| | | | | | | | | | | | | | | | This hooks up GENERIC_CLOCKEVENTS_BROADCAST and a dummy local timer, which we call in to from the timer IPI when no other local timer is provided. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: smp: Hook up a timer IPI stub.Paul Mundt2008-09-081-6/+13
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: smp: Hook in to the generic IPI handler for SH-X3 SMP.Paul Mundt2008-09-081-2/+0
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: smp: Provide a generic IPI handler.Paul Mundt2008-09-081-0/+1
| | | | | | | | | | | | | | This provides a generic smp_message_recv() routine (based on the PPC one), that IPI IRQs can wrap in to. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off unused defines from asm/smp.h.Paul Mundt2008-09-081-5/+0
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>