summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sh: ap325rxa: Add support RTC RX-8564LC in AP325RXA boardNobuhiro Iwamatsu2008-10-201-0/+3
| | | | | | | | Renesas AP325RXA board has Epson RX-8564LC of RTC. This patch supports RTC of this board. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: More I/O routine overhauling.Paul Mundt2008-10-046-232/+115
| | | | | | | | | | 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>
* Merge branch 'sh/g3-prep'Paul Mundt2008-10-0216-175/+197
|\
| * video: sh_mobile_lcdcfb: Support HAVE_CLK=n configurations.Paul Mundt2008-10-016-5/+11
| | | | | | | | | | | | | | | | | | 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-015-93/+95
| | | | | | | | | | | | | | 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>
| * serial: sh-sci: Handle the general UPF_IOREMAP case.Paul Mundt2008-10-012-18/+37
| | | | | | | | | | | | | | | | Presently we don't do much with UPF_IOREMAP other than special case it for SH-5's onchip_remap() on the early console. Tie this in generically for platforms that need the remap. 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: Fix up the __raw_read/writeX() definitions.Paul Mundt2008-10-012-45/+40
| | | | | | | | | | | | | | 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>
* | serial: sh-sci: Dynamic clock management depends on HAVE_CLK.Paul Mundt2008-10-022-31/+16
|/ | | | | | | | | | | | | | Presently this is conditionalized on sh, and disabled for sh64. Now that SH-5 ties in to the clock framework, the sh64 exception can be dropped. Additionally, ARM will want to use the same hooks once SH-Mobile G3 grows clock framework support, so switch these paths over to HAVE_CLK now. Once the H8 and ARM sh-sci users hook up HAVE_CLK, the driver can be switched over to having an outright dependency on it and the ifdefs can go away. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Use clk fwk for preset lpj on sh64, too.Paul Mundt2008-09-291-1/+0
| | | | 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: 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 signal_64 cast warnings.Paul Mundt2008-09-291-2/+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: Force pending restarted system calls to return -EINTR.Paul Mundt2008-09-242-6/+18
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: ap325rxa: create CPLD data area in mtdNobuhiro Iwamatsu2008-09-241-10/+23
| | | | | | | | | AP320 and AP325RXA has CPLD data in NOR Flash. If this area erased, this board can not boot. This patch create CPLD data area and set writeable mask bit. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add FPU registers to regset interface.Paul Mundt2008-09-215-9/+108
| | | | 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>
* doc: Add remaining SH parameters to kernel-parameters.txt.Paul Mundt2008-09-211-1/+11
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: ftrace support.Paul Mundt2008-09-214-0/+54
| | | | | | | 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-214-28/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | 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: Kill off duplicate page fault notifiers in slow path.Paul Mundt2008-09-211-7/+4
| | | | | | | We already have hooks in place in the __do_page_fault() fast-path, so kill them off in the slow path. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Look up the trap vector for the page fault notifier.Paul Mundt2008-09-211-9/+4
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Move lookup_exception_vector() out to asm/system_32.h.Paul Mundt2008-09-212-12/+29
| | | | | | | | 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: edosk7760: Correct size of bootloader flash partition.Luca Santini2008-09-211-5/+6
| | | | | | | | | This is 256K instead of 1M. [ Converted to use asm/sizes.h. -- PFM ] Signed-off-by: Luca Santini <luca.santini@spesonline.com> 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-202-18/+43
| | | | | | | | | | | | | 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: Disable 4kB stacks when using PAGE_SIZE_64KB.Paul Mundt2008-09-201-1/+1
| | | | | | | | | | | | This combination triggers a divide by zero in kernel/fork.c when calculating the initial max_threads value: max_threads = mempages / (8 * THREAD_SIZE / PAGE_SIZE); Simply disable 4K stacks on 64kB PAGE_SIZE to work around this, as it's not a terribly useful combination to begin with. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: HAVE_IOREMAP_PROT depends on MMU.Paul Mundt2008-09-171-1/+1
| | | | | | | | | HAVE_IOREMAP_PROT enables an unconditional reference to generic_access_phys(), which remains undefined in the nommu case. As there's no point in supporting this there anyways, simply fix up the dependency. 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: Fix up signal_64 conflicting handle_signal() definition.Paul Mundt2008-09-171-0/+4
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Make memory hot-add and hot-remove depend on MMU.Paul Mundt2008-09-171-2/+2
| | | | | | | Cleans up link numerous build issues with page migration and so on when enabled on nommu builds. 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-132-1/+26
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Tidy up ELF core dumps.Paul Mundt2008-09-124-40/+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-124-31/+65
| | | | 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: Enable HAVE_ARCH_TRACEHOOK.Paul Mundt2008-09-121-0/+1
| | | | | | | Now that the rest of the support requirements are out of the way, finally enable support for tracehook. 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: Flag T-bit for syscall restart.Paul Mundt2008-09-121-22/+31
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: ioremap_prot support.Paul Mundt2008-09-124-0/+6
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: ptrace: Introduce user_regset interface for gp regs.Paul Mundt2008-09-123-18/+115
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Provide a fixed UTS_MACHINE definition for sh64.Paul Mundt2008-09-121-0/+2
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: update edosk7760 defconfig for physmap-flash.Luca Santini2008-09-121-13/+13
| | | | | Signed-off-by: Luca Santini <luca.santini@spesonline.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: edosk7760 physmap-flash support.Luca Santini2008-09-121-1/+49
| | | | | Signed-off-by: Luca Santini <luca.santini@spesonline.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
OpenPOWER on IntegriCloud