summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
Commit message (Collapse)AuthorAgeFilesLines
* sh: sh7785 pinmux supportMagnus Damm2008-10-232-0/+1311
| | | | | | | 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: Kill off unused p1fc divisors from SH7763 clk fwk.Paul Mundt2008-10-221-1/+0
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: improve pinmux support for single direction pinsMagnus Damm2008-10-222-23/+26
| | | | | | | | | | 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: Update gpio_set_value() pin value handlingMagnus Damm2008-10-211-1/+1
| | | | | | | | | This patch updates the pinmux code to use the boolean value for the function gpio_set_value(). Without this patch values other than 0 and 1 will result in incorrect GPIO settings. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Export cache flush routines needed by sh_eth on SH7619.Paul Mundt2008-10-211-1/+6
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Wire up oops reporting in the die notifier chain.Paul Mundt2008-10-211-0/+2
| | | | | | | | | | | 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: Hook up PB0->PB7 input-only pins in SH7203 PFC.Paul Mundt2008-10-211-9/+8
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: arch/sh/kernel/smp.c needs linux/cpu.h for notify_cpu_starting().Paul Mundt2008-10-211-0/+1
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix up the SH7203 build.Paul Mundt2008-10-211-1/+1
| | | | | | | The sh7203.h include paths were missed in the previous update, so switch the include path to cpu/ as with the rest. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6Linus Torvalds2008-10-2045-1244/+8581
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (112 commits) sh: Move SH-4 CPU headers down one more level. sh: Only build in gpio.o when CONFIG_GENERIC_GPIO is selected. sh: Migrate common board headers to mach-common/. sh: Move the CPU definition headers from asm/ to cpu/. serial: sh-sci: Add support SCIF of SH7723 video: add sh_mobile_lcdc platform flags video: remove unused sh_mobile_lcdc platform data sh: remove consistent alloc cruft sh: add dynamic crash base address support sh: reduce Migo-R smc91x overruns sh: Fix up some merge damage. Fix debugfs_create_file's error checking method for arch/sh/mm/ Fix debugfs_create_dir's error checking method for arch/sh/kernel/ sh: ap325rxa: Add support RTC RX-8564LC in AP325RXA board sh: Use sh7720 GPIO on magicpanelr2 board sh: Add sh7720 pinmux code sh: Use sh7203 GPIO on rsk7203 board sh: Add sh7203 pinmux code sh: Use sh7723 GPIO on AP325RXA board sh: Add sh7723 pinmux code ...
| * sh: Only build in gpio.o when CONFIG_GENERIC_GPIO is selected.Paul Mundt2008-10-202-2/+4
| | | | | | | | | | | | | | | | | | The pinmux management is tied in to this code, while it is presently only used by platforms that select GENERIC_GPIO. The asm/gpio.h definitions are not referenced when GENERIC_GPIO is disabled, resulting in a build failure for all of the platforms that don't select it. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Move the CPU definition headers from asm/ to cpu/.Paul Mundt2008-10-203-3/+3
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: add dynamic crash base address supportMagnus Damm2008-10-201-6/+9
| | | | | | | | | | | | | | Add support for dynamic crash kernel base address. 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-1/+1
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * Merge branch 'master' of ↵Paul Mundt2008-10-201-0/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 Conflicts: Documentation/kernel-parameters.txt arch/sh/include/asm/elf.h
| * \ Merge branch 'sh/gpiolib'Paul Mundt2008-10-2010-2/+7047
| |\ \
| | * | sh: Add sh7720 pinmux codeMagnus Damm2008-10-202-0/+1246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-202-0/+1604
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-202-0/+1910
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-202-0/+1787
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-203-2/+500
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | Fix debugfs_create_dir's error checking method for arch/sh/kernel/Zhaolei2008-10-201-0/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | debugfs_create_dir() returns NULL if an error occurs, returns -ENODEV when debugfs is not enabled in the kernel. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: More I/O routine overhauling.Paul Mundt2008-10-043-57/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | sh: Move the shared INTC code out to drivers/sh/Paul Mundt2008-10-012-714/+0
| | | | | | | | | | | | | | | | | | | | | 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: Use __raw_xxx() I/O accessors for INTC and IPR.Paul Mundt2008-10-012-14/+14
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: SH-5 clk fwk support.Paul Mundt2008-09-293-161/+91
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Fix up signal_64 cast warnings.Paul Mundt2008-09-291-2/+2
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Force pending restarted system calls to return -EINTR.Paul Mundt2008-09-242-6/+18
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Add FPU registers to regset interface.Paul Mundt2008-09-212-5/+85
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: ftrace support.Paul Mundt2008-09-212-0/+48
| | | | | | | | | | | | | | | | | | | | | This adds support for ftrace to SH. This only includes CONFIG_FTRACE, and does not handle dynamic ftrace presently. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Trivial trace_mark() instrumentation for core events.Paul Mundt2008-09-213-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements a few trace points across events that are deemed interesting. This implements a number of trace points: - The page fault handler / TLB miss - IPC calls - Kernel thread creation The original LTTng patch had the slow-path instrumented, which fails to account for the vast majority of events. In general placing this in the fast-path is not a huge performance hit, as we don't take page faults for kernel addresses. The other bits of interest are some of the other trap handlers, as well as the syscall entry/exit (which is better off being handled through the tracehook API). Most of the other trap handlers are corner cases where alternate means of notification exist, so there is little value in placing extra trace points in these locations. Based on top of the points provided both by the LTTng instrumentation patch as well as the patch shipping in the ST-Linux tree, albeit in a stripped down form. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Move lookup_exception_vector() out to asm/system_32.h.Paul Mundt2008-09-211-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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: Fix up signal_64 conflicting handle_signal() definition.Paul Mundt2008-09-171-0/+4
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Fix up fpu emu build.Paul Mundt2008-09-171-5/+3
| | | | | | | | | | | | | | | | | | | | | The addition of the kprobes code pushed down a variable declaration, clean it up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: latencytop support.Paul Mundt2008-09-131-1/+22
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Tidy up ELF core dumps.Paul Mundt2008-09-123-34/+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: Check SR.DSP bit for DSP regset validity.Paul Mundt2008-09-121-0/+9
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Add missing task_user_regset_view() definition.Paul Mundt2008-09-121-0/+5
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Add DSP registers to regset interface.Paul Mundt2008-09-121-27/+59
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Flag T-bit for syscall restart.Paul Mundt2008-09-121-22/+31
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: ptrace: Introduce user_regset interface for gp regs.Paul Mundt2008-09-121-17/+99
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: intc_prio_data() test before subtraction on unsignedroel kluin2008-09-101-4/+6
| | | | | | | | | | | | | | | | | | | | | bit is unsigned, so test before subtraction Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: kprobes: kretprobe_trampoline needs to be global.Paul Mundt2008-09-091-1/+3
| | | | | | | | | | | | | | | | | | Needed by CONFIG_TRACING. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Derive calibrate_delay lpj from clk fwk.Paul Mundt2008-09-081-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All CPUs must have a sensible cpu_clk definition these days, which we can safely use for deriving the preset loops_per_jiffy. The only odd one out is SH-5, which hasn't been hammered in to the framework yet. Based on the ST patch. Signed-off-by: Francesco Virlinzi <francesco.virlinzi@st.com> Signed-off-by: Carl Shaw <carl.shaw@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: kprobes: __kprobes annotations and formatting cleanups.Paul Mundt2008-09-081-17/+20
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: kprobes: Fix up race against probe point removal.Paul Mundt2008-09-081-0/+11
| | | | | | | | | | | | | | | | | | | | | Handle a corner case where another CPU or debugger removes the probe point from underneath us. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: kprobes: Fix up a preemption imbalance on jprobe return.Paul Mundt2008-09-081-0/+1
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: kprobes: Default to NOTIFY_DONE for unhandled debug traps.Paul Mundt2008-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Presently this is doing a force_sig() SIGTRAP, which is already taken care of in the generic code if no one asserts NOTIFY_STOP. Switch the default return to NOTIFY_DONE in the case of unhandled traps, so that the same trap may pass through to other users on the same die chain. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: kprobes: Use trapa #0x3a for breakpoint trap.Paul Mundt2008-09-081-2/+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-1/+1
| | | | | | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
OpenPOWER on IntegriCloud