aboutsummaryrefslogtreecommitdiffstats
path: root/init (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2008-12-22sh: Simplify kernel_thread_helper() for sh32.Paul Mundt1-15/+4
This can use the same implementation as sh64, the generated assembly is the same between the new and old version, so there is not much point in leaving it open coded in inline assembly. This is preparatory work for future consolidation of the _32/_64 variants. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Kill off mv_heartbeat() from the machvec.Paul Mundt3-12/+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>
2008-12-22sh: Kill off the cayman and microdev special heartbeat code.Paul Mundt5-166/+0
These can use the generic code instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Kill off sh_bios_in_gdb_mode().Paul Mundt2-18/+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>
2008-12-22sh: export sh_bios_get_node_addr() symbol for stnic module.Paul Mundt1-2/+2
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Run sh_bios through a long overdue Lindent.Paul Mundt1-36/+34
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22serial: sh-sci: Generalize port pin initialization.Paul Mundt2-114/+43
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22serial: sh-sci: Tidy up fifo overrun error handling.Paul Mundt2-27/+29
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22serial: sh-sci: pr_debug() -> dev_dbg() conversion.Paul Mundt1-23/+26
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22serial: sh-sci: Fix up the cpufreq notifier to use the proper port clock.Paul Mundt1-28/+10
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: oprofile: Convert op_model_sh7750 to new common interface.Paul Mundt1-94/+78
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: oprofile: Backtrace support.Dave Peverley2-0/+127
This patch improves the oprofile support on sh and adds backtrace support. Signed-off-by: Dave Peverley <dpeverley@mpc-data.co.uk> Signed-off-by: Chris Smith <chris.smith@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: oprofile: Refactor common setup code for multiple driver support.Paul Mundt4-30/+178
This re-implements the old op_model_null code in to something more generic, where multiple drivers, backtrace, etc. can all be interfaced. Based largely on arch/mips/oprofile/common.c. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Enable GENERIC_HARDIRQS_NO__DO_IRQ for all SuperH machinesMatt Fleming1-2/+0
After the recent changes to switch SuperH board support over to irq_chip it is now possible to set GENERIC_HARDIRQS_NO__DO_IRQ for all SuperH boards. Signed-off-by: Matt Fleming <mjf@gentoo.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Convert Cayman boards from hw_interrupt_type to irq_chipMatt Fleming1-27/+8
I've been unable to even compile-test this change because I don't have an sh5 toolchain. All uses of hw_interrupt_type for SuperH boards have now been converted to use irq_chip. Signed-off-by: Matt Fleming <mjf@gentoo.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Convert Dreamcast support from hw_interrupt_type to irq_chipMatt Fleming2-106/+91
Switch the dreamcast IRQ code over to the irq_chip way of doing things, so that we can set GENERIC_HARDIRQS_NO__DO_IRQ for all SuperH boards. Also, whilst I'm here change some things to make checkpatch.pl happy: - Indent with tabs, not with spaces - Include <linux/io.h>, not <asm/io.h> - Fix the multi-line comment style - Fix some typos in the comments Tested-by: Adrian McMenamin <adrian@newgolddream.dyndns.info> Signed-off-by: Matt Fleming <mjf@gentoo.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Convert SystemH board support from hw_interrupt_type to irq_chipMatt Fleming1-31/+6
... as part of the hw_interrupt_type to irq_chip crusade. Signed-off-by: Matt Fleming <mjf@gentoo.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Convert Microdev boards from hw_interrupt_type to irq_chipMatt Fleming1-29/+7
This is part of the SH move to irq_chip. Signed-off-by: Matt Fleming <mjf@gentoo.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Provide sdivsi3/udivsi3/udivdi3 for sh64, kill off libgcc linking.Paul Mundt6-5/+314
This moves in the necessary libgcc bits and kills off the libgcc linking for sh64 kernels as well. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22fb: SH-5 uses __raw I/O accessors now also, drop the special casing.Paul Mundt1-1/+1
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Add SH-5 optimized memcpy()/memset()/strcpy()/strlen().Paul Mundt8-94/+440
Adopted from the uClibc optimized string versions. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Kill off remaining CONFIG_SH_KGDB bits.Paul Mundt2-180/+0
Now that we use the generic stub, kill off all of the left over references. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22serial: sh-sci: Implement CONSOLE_POLL support and kill off old kgdb console.Paul Mundt1-181/+20
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Generic kgdb stub support.Paul Mundt15-1244/+328
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>
2008-12-22sh: Enable HAVE_ARCH_TRACEHOOK for all SH, now that SH-5 supports it too.Paul Mundt3-4/+4
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Provide linux/regset.h interface for SH-5.Paul Mundt3-4/+186
Plugs in general and FPU regsets. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Provide asm/syscall.h for SH-5.Paul Mundt3-32/+108
This provides the asm/syscall.h implementation for sh64 parts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Handle cases where setup{_rt,}_frame() fail on SH-5 signal delivery.Paul Mundt1-45/+48
Presently these cases are not handled properly due to the return value not being passed back. This needs to be correct to get proper behaviour out of things like the tracehook signal notifier, amongst others. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Fix up syscall_get_nr() comment in syscall_32.h.Paul Mundt1-1/+1
Residual copy-and-paste damage, fix it up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Fix up the cpu_asid() return value on nommu.Paul Mundt2-3/+3
This ought to be unsigned long, rather than defaulting to int. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Convert sh64 /proc/asids to debugfs and generic sh.Paul Mundt5-43/+81
This converts the sh64 /proc/asids entry to debugfs and enables it for all SH parts that have debugfs enabled. On MMU systems this can be used to determine which processes are using which ASIDs which in turn can be used for finer grained cache tag analysis. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Kill off sh64's unused alloc/free_task_struct() definitions.Paul Mundt1-12/+0
These were left over from some time ago, sh64 never got around to defining __HAVE_ARCH_TASK_STRUCT_ALLOCATOR during the conversion, and it has no need to. Kill these off and use the generic versions instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: mach-migor: Kill off unused Migo-R machvec.Paul Mundt1-9/+0
This kills off the special Migo-R machvec, as nothing is using it. By default this will switch to using the generic machvec, which provides the same functionality. This saves us a bit of space in the machvec section. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: add ov772x reset delay on Migo-RMagnus Damm1-0/+1
Add reset delay for the ov772x device on Migo-R. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Drop the special qemu defconfig.Paul Mundt1-949/+0
QEMU can now use rts7751r2dplus_defconfig directly, there is no more need for a neutered defconfig. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Delete unnecessary mov in the interrupt exception entry point.Aoi Shinkai1-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>
2008-12-22sh: Fix an off-by-1 check in __mutex_fastpath_unlock().Paul Mundt1-1/+1
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Update rsk701_defconfig to reflect mach-rsk changes.Paul Mundt1-1/+13
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Enable leds-gpio in rsk7203 defconfig.Paul Mundt1-12/+53
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Consolidate rsk7203/7201 in to a new mach-rsk.Paul Mundt8-100/+44
RSK+ platforms have quite a few characteristics in common, so roll them together in to a shiny new RSK mach-type. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Provide ftrace_make_call()/ftrace_make_nop().Paul Mundt1-0/+24
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Disable -Werror for arch/sh/oprofile/.Paul Mundt1-2/+0
drivers/oprofile/ objects have proven to be problematic in this regard, so simply disable -Werror for now. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Add plain udivsi3 (not _i4*) for gcc-4.1 and lower.Takashi YOSHII4-629/+713
We chan't share code for udivsi3 and udivsi3_i4, because they have a different clobber list. Copy udivsi3 from gcc-4.1.2. As shown in arch/sh/lib/udivsi3.S (and -Os.S), .global __udivsi3_i4i .global __udivsi3_i4 .global __udivsi3 __udivsi3_i4i: ... Three symbols are sharing one code, which is actually udivsi3_i4i. But, this results unwanted code with gcc 4.1. In gcc, these three are treated as pseudo instructions that have their own clobber list apart from the usual calling convention. According to sh's machine description. The clobber list is as follows: - udivsi3_i4i : t,r1,pr,mach,macl - udivsi3_i4 : t,r0,r1,r4,r5,pr,dr0,dr2,dr4 - udivsi3 : t,r4,pr The caller of udivsi3 will be left with a broken r1 and mac*. gcc-4.1.x and older(at least to 3.4) generate udivsi3. ST's gcc-4.1.1 seems to be OK because it has _i4i. Signed-off-by: Takashi YOSHII <yoshii.takashi@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22Fix incorrect use of loose in c-checksum.cNick Andrew1-2/+2
Fix incorrect use of loose in c-checksum.c It should be 'lose', not 'loose'. Signed-off-by: Nick Andrew <nick@nick-andrew.net> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Fix up the SH-4A mutex fastpath semantics.Paul Mundt1-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>
2008-12-22sh: allow CONFIG_CPU_IDLEMagnus Damm1-1/+3
Allow users to select CONFIG_CPU_IDLE regardless of processor type or board. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: allow CONFIG_PMMagnus Damm1-6/+9
Allow users to select CONFIG_PM regardless of processor type or board. Suspend and hibernation are only allowed on supported platforms. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: move the hp6xx pm codeMagnus Damm5-108/+77
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>
2008-12-22sh: update se7343 defconfigMagnus Damm1-29/+274
Update the se7343 defconfig with: - use 33MHz PCLK - increase max number of SCIFs - add serial console configuration to compiled-in kernel command line - add 8250 serial port support - add sh-mobile-i2c driver - add uio driver to export VEU and VPU - add usb support and isp1161 host controller - add dm9601 ethernet-over-usb support - remove smc91x support Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: remove ioport cruft and smc91x from se7343Magnus Damm4-323/+1
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>