summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* video: deferred io with physically contiguous memoryMagnus Damm2008-12-221-5/+15
| | | | | | | | | | | | | Extend the deferred io code from only supporting vmalloc()ed frame buffer memory to support both vmalloc()ed and physically contiguous frame buffer memory. The sh_mobile_lcdcfb hardware does not support scatter gather so we need physically contiguous memory to back our frame buffer. Signed-off-by: Magnus Damm <damm@igel.co.jp> Acked-by: Jaya Kumar <jayakumar.lkml@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* video: deferred io cleanupMagnus Damm2008-12-221-0/+3
| | | | | | | | | | Make sure the mmap callback is set to NULL in the deferred io cleanup function. This way we can enable and disable deferred io on the fly. Signed-off-by: Magnus Damm <damm@igel.co.jp> Acked-by: Jaya Kumar <jayakumar.lkml@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* video: fix deferred io fsync()Magnus Damm2008-12-221-0/+4
| | | | | | | | | | | | | | If CONFIG_FB_DEFERRED_IO is set, but there are framebuffers registered that does not make use of deferred io, then fsync() on those framebuffers will result in a crash. Fix that. This is needed for sh_mobile_lcdcfb since we always enable deferred io at compile time but we may disable deferred io for some types of hardware configurations. Signed-off-by: Magnus Damm <damm@igel.co.jp> Acked-by: Jaya Kumar <jayakumar.lkml@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: add LCDC interrupt configuration to AP325 and Migo-RMagnus Damm2008-12-222-0/+8
| | | | | | | | | Add LCDC interrupt resources for AP325 and Migo-R. The LCDC driver does not require interrupts at this point, but changes such as one-shot SYS mode using deferred io, and wait-for-vblank will both need this. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh_mobile_lcdc: use FB_SYS helpers instead of FB_CFBMagnus Damm2008-12-222-7/+9
| | | | | | | | Since the sh_mobile_lcdc hardware has the framebuffer(s) in system RAM, use FB_SYS instead of FB_CFB. Also hook in read and write helpers. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: split coherent pagesMagnus Damm2008-12-221-1/+6
| | | | | | | | Split pages returned by dma_alloc_coherent() and make sure we free them one by one. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: dma: Kill off ISA DMA wrapper.Paul Mundt2008-12-223-110/+0
| | | | | | | There are no more users for this code, and it has been deprecated for some time, so just kill it off. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Conditionalize the code dumper on CONFIG_DUMP_CODE.Paul Mundt2008-12-223-1/+22
| | | | | | | | We don't really want this enabled by default, but it is still quite useful for debugging. So, make it conditional and leave it off by default. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off the unused SH_ALPHANUMERIC debug option.Paul Mundt2008-12-221-8/+2
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Enable skipping of bss on debug platforms for sh32 also.Paul Mundt2008-12-222-5/+22
| | | | | | | | | This enables the same functionality that sh64 has for sh32. When running on simulated hardware or via remote memory via the debug interface, memory is gauranteed to be zero on boot already, and skipping the zeroing of BSS has measurable boot time benefits. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* doc: Update sh cpufreq documentation.Paul Mundt2008-12-222-6/+8
| | | | | | | The sh cpufreq driver is no longer limited to just the SH-3 and SH-4, update the documentation to reflect this fact accordingly. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: mrshpc_setup_windows() needs to be inline.Paul Mundt2008-12-221-1/+1
| | | | | | | While no one should be including this file multiple times, flag it inline anyways just in case. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* serial: sh-sci: sci_poll_get_char() is only used by CONFIG_CONSOLE_POLL.Paul Mundt2008-12-221-0/+3
| | | | | | | | sci_poll_put_char() happens to also be used by the serial console, while sci_poll_get_char() is only used by CONFIG_CONSOLE_POLL. Add another gnarly ifdef to shut up the compiler. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off cf-enabler with extreme prejudice.Paul Mundt2008-12-228-220/+63
| | | | | | | | | | | | | | | Now that the rest of the boards that were using cf-enabler "generically" have switched to setting up their mappings on their own, only the mach-se boards were left using it. All of the cf-enabler using mach-se boards use a special initialization of the MRSHPC windows rather than going through the special PTE as other SH-4 platforms do. This consolidates the MRSHPC setup logic, hooks it up on the boards that care, and gets rid of any and all remaining references to cf-enabler. This has been long overdue, as cf-enabler has been the bane of arch/sh/kernel for the last 7 years. Good riddance. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add a simple edosk7705_defconfig for build testing.Paul Mundt2008-12-221-0/+438
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: mach-edosk7705: Fix up edosk7705 so it all builds again.Paul Mundt2008-12-225-80/+24
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: mach-microdev: Split out the fdc37c93xapm initialization code.Paul Mundt2008-12-223-181/+167
| | | | | | | This makes the microdev code a bit more readable, and moves the setup for the SuperIO out on its own. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: mach-sh03: Use __set_io_port_base(), kill off special ioport_map().Paul Mundt2008-12-222-10/+2
| | | | | | | | This also fixes up a long-standing bug for this platform where the PIO base was set to a register offset, rather than the actual PIO offset itself. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: mach-sh03: Move off of cf_enabler to pata_platform, as per landisk.Paul Mundt2008-12-222-6/+35
| | | | | | | | This gets rid of the cf enabler use on mach-sh03 and switches to use pata_platform with the proper address directly. cf_enabler is subsequently disabled for mach-sh03. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: board-shmin: Convert shmin to use __set_io_port_base().Paul Mundt2008-12-221-11/+3
| | | | | | | Drop the special mv_ioport_map() implementation, as this can simply use __set_io_port_base() directly. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off dead mv_init_pci() from machvec.Paul Mundt2008-12-221-1/+0
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Simplify kernel_thread_helper() for sh32.Paul Mundt2008-12-221-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>
* sh: Kill off mv_heartbeat() from the machvec.Paul Mundt2008-12-223-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>
* sh: Kill off the cayman and microdev special heartbeat code.Paul Mundt2008-12-225-166/+0
| | | | | | These can use the generic code instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off sh_bios_in_gdb_mode().Paul Mundt2008-12-222-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>
* sh: export sh_bios_get_node_addr() symbol for stnic module.Paul Mundt2008-12-221-2/+2
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Run sh_bios through a long overdue Lindent.Paul Mundt2008-12-221-36/+34
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* serial: sh-sci: Generalize port pin initialization.Paul Mundt2008-12-222-114/+43
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* serial: sh-sci: Tidy up fifo overrun error handling.Paul Mundt2008-12-222-27/+29
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* serial: sh-sci: pr_debug() -> dev_dbg() conversion.Paul Mundt2008-12-221-23/+26
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* serial: sh-sci: Fix up the cpufreq notifier to use the proper port clock.Paul Mundt2008-12-221-28/+10
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: oprofile: Convert op_model_sh7750 to new common interface.Paul Mundt2008-12-221-94/+78
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: oprofile: Backtrace support.Dave Peverley2008-12-222-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>
* sh: oprofile: Refactor common setup code for multiple driver support.Paul Mundt2008-12-224-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>
* sh: Enable GENERIC_HARDIRQS_NO__DO_IRQ for all SuperH machinesMatt Fleming2008-12-221-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>
* sh: Convert Cayman boards from hw_interrupt_type to irq_chipMatt Fleming2008-12-221-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>
* sh: Convert Dreamcast support from hw_interrupt_type to irq_chipMatt Fleming2008-12-222-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>
* sh: Convert SystemH board support from hw_interrupt_type to irq_chipMatt Fleming2008-12-221-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>
* sh: Convert Microdev boards from hw_interrupt_type to irq_chipMatt Fleming2008-12-221-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>
* sh: Provide sdivsi3/udivsi3/udivdi3 for sh64, kill off libgcc linking.Paul Mundt2008-12-226-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>
* fb: SH-5 uses __raw I/O accessors now also, drop the special casing.Paul Mundt2008-12-221-1/+1
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add SH-5 optimized memcpy()/memset()/strcpy()/strlen().Paul Mundt2008-12-228-94/+440
| | | | | | Adopted from the uClibc optimized string versions. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off remaining CONFIG_SH_KGDB bits.Paul Mundt2008-12-222-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>
* serial: sh-sci: Implement CONSOLE_POLL support and kill off old kgdb console.Paul Mundt2008-12-221-181/+20
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Generic kgdb stub support.Paul Mundt2008-12-2215-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>
* sh: Enable HAVE_ARCH_TRACEHOOK for all SH, now that SH-5 supports it too.Paul Mundt2008-12-223-4/+4
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Provide linux/regset.h interface for SH-5.Paul Mundt2008-12-223-4/+186
| | | | | | Plugs in general and FPU regsets. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Provide asm/syscall.h for SH-5.Paul Mundt2008-12-223-32/+108
| | | | | | This provides the asm/syscall.h implementation for sh64 parts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Handle cases where setup{_rt,}_frame() fail on SH-5 signal delivery.Paul Mundt2008-12-221-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>
* sh: Fix up syscall_get_nr() comment in syscall_32.h.Paul Mundt2008-12-221-1/+1
| | | | | | Residual copy-and-paste damage, fix it up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
OpenPOWER on IntegriCloud