summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu
Commit message (Collapse)AuthorAgeFilesLines
* sh: Generic kgdb stub support.Paul Mundt2008-12-222-6/+6
| | | | | | | | 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: Delete unnecessary mov in the interrupt exception entry point.Aoi Shinkai2008-12-221-2/+2
| | | | | | | | | The INTEVT read at interrupt exception entry is uneccessary, as the read is deferred until we are ready to enter do_IRQ(). The kgdb nmi path still requires it, so move it there. Signed-off-by: Aoi Shinkai <shinkoi2005@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh7343 scif configuration updateMagnus Damm2008-12-221-2/+17
| | | | | | | | Fix interrupt values for the first sh7343 SCIF port and update the configuration to include the remaining 3 ones. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: propagate r_clkMagnus Damm2008-12-221-0/+2
| | | | | | | | Make sure the 32 KHz r_clk rate gets propagated correctly. Without this fix the clocks for RTC, CMT, KEYSC and RWDT are stuck at 0 Hz. 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-224-4/+422
| | | | | | | 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: __udivdi3 -> do_div() in softfloat lib.Paul Mundt2008-12-221-32/+41
| | | | | | | Inhibit the generation of __udivdi3 for the softfloat lib, use do_div() outright. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix clock framework compiler warnings.Paul Mundt2008-12-221-1/+1
| | | | | | | | | | CC arch/sh/kernel/cpu/clock.o arch/sh/kernel/cpu/clock.c: In function 'clk_disable': arch/sh/kernel/cpu/clock.c:156: warning: 'return' with a value, in function returning void Introduced by ("sh: enable and disable clocks recursively"). Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: remove old sh_mobile mstpc clocksMagnus Damm2008-12-225-93/+19
| | | | | | | Remove the old sh_mobile mstpcr clocks. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh_mobile usb clock framework supportMagnus Damm2008-12-222-2/+0
| | | | | | | | Add clock framework support to the usb/r8a66597 driver and adjust the cpu specific code accordingly. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh_mobile usbf clock framework supportMagnus Damm2008-12-221-2/+1
| | | | | | | | Add clock framework support to the usbf/m66592 driver and adjust the cpu specific code accordingly. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh_mobile i2c clock framework supportMagnus Damm2008-12-224-5/+5
| | | | | | | | Add clock framework support to the sh_mobile i2c driver and adjust the processor specific code accordingly. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh_mobile mstpcr clocks for sh7366Magnus Damm2008-12-221-0/+40
| | | | | | | | Add sh7366 mstpcr bits and information about their parent clocks. The datasheet is pretty clear about the clocks on this device. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh_mobile mstpcr clocks for sh7343Magnus Damm2008-12-221-0/+24
| | | | | | | Add sh7343 mstpcr bits and information about their parent clocks. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh_mobile mstpcr clocks for sh7723Magnus Damm2008-12-221-0/+50
| | | | | | | | Add sh7723 mstpcr bits and information about their parent clocks. The datasheet is pretty clear about the clocks on this device. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh_mobile mstpcr clocks for sh7722Magnus Damm2008-12-221-0/+25
| | | | | | | Add sh7722 mstpcr bits and information about their parent clocks. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: new sh_mobile mstpcr clocks base codeMagnus Damm2008-12-221-4/+41
| | | | | | | Add base code to handle new mstpcr clocks. Make sure clock rates propagate. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: use arch_flags for sh_mobile mstpcr clock bitsMagnus Damm2008-12-221-42/+30
| | | | | | | Use arch_flags to keep track of register and flag number. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh_mobile clock divider index fixMagnus Damm2008-12-221-10/+10
| | | | | | | Use divider index value instead of divider value. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: enable and disable clocks recursivelyMagnus Damm2008-12-221-0/+10
| | | | | | | Recurse and make sure parent clocks get enabled/disabled. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Move arch_get_unmapped_area() in to arch/sh/mm/mmap.c.Paul Mundt2008-12-221-0/+2
| | | | | | | Now that arch/sh/mm/mmap.c exists, move arch_get_unmapped_area() there. Follows the ARM change. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* fix sci type for SH7723Yoshihiro Shimoda2008-11-121-3/+3
| | | | | | | This patch changes sci type of SH7723 from PORT_SCI to PORT_SCIFA. Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* Add support usb setting on sh 7366Kuninori Morimoto2008-10-311-0/+28
| | | | | | | This patch add usb setting for sh 7366 Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add on-chip RTC support for SH7722.Paul Mundt2008-10-281-2/+32
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* 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-221-22/+21
| | | | | | | | | | 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: 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: 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>
* 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 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: 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-292-0/+84
| | | | 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: Enable IRLM mode for SH7760 IRQ_MODE_IRQ.Luca Santini2008-09-081-0/+5
| | | | | | | Follows the same setting as SH7750. Signed-off-by: Luca Santini <luca.santini@spesonline.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Subnormal double to float conversionCarl Shaw2008-09-082-1/+53
| | | | | | | | | This patch adds support for the SH4 to convert a subnormal double into a float by catching the FPE and implementing the FCNVDS instruction in software. Signed-off-by: Carl Shaw <carl.shaw@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: fixup many sparse errors.Paul Mundt2008-09-081-2/+3
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: smp: shove a cpu_relax() in the plat_start_cpu() busy loop.Paul Mundt2008-09-081-1/+1
| | | | | | | Without this, certain versions of GCC will happily optimize the entire loop out. 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-41/+24
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh64: resume_kernel fix for kernel oops built with CONFIG_BKL_PREEMPT=y.Paul Mundt2008-09-051-10/+4
| | | | | | Follows the SH change. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: export sh7723 VEU as VEU2HMagnus Damm2008-08-111-2/+2
| | | | | | | | Export sh7723 VEU hardware blocks as VEU2H. The sh7723 VEU2H differs a bit from the sh7722 VEU so use different names for our UIO devices. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix up broken kerneldoc comments.Paul Mundt2008-08-041-1/+1
| | | | | | These were completely unparseable, so fix them up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Make syscall tracer use tracehook notifiers, add TIF_NOTIFY_RESUME.Paul Mundt2008-08-021-8/+9
| | | | | | | | | | | | | | This follows the changes in commits: 7d6d637dac2050f30a1b57b0a3dc5de4a10616ba 4f72c4279eab1e5f3ed1ac4e55d4527617582392 on powerpc. Adding in TIF_NOTIFY_RESUME, and cleaning up the syscall tracing to be more generic. This is an incremental step to turning on tracehook, as well as unifying more of the ptrace and signal code across the 32/64 split. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Tidy up the _TIF work masks, and fix syscall trace bug on singlestep.Paul Mundt2008-08-021-1/+1
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: migrate to arch/sh/include/Paul Mundt2008-07-298-8/+8
| | | | | | | | | | | | | This follows the sparc changes a439fe51a1f8eb087c22dd24d69cebae4a3addac. Most of the moving about was done with Sam's directions at: http://marc.info/?l=linux-sh&m=121724823706062&w=2 with subsequent hacking and fixups entirely my fault. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Use clk_always_enable() on sh7366Magnus Damm2008-07-281-0/+15
| | | | | | | Use clk_always_enable() in the sh7366 processor code. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Use clk_always_enable() on sh7343 / SE77343Magnus Damm2008-07-281-0/+15
| | | | | | | | Use clk_always_enable() on the sh7343 processor and in the board code for Solution Engine 7343. Remove duplicate MSTPCR register definitions. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>