summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sparc32: Use PROM device probing for sun4c timers.David S. Miller2008-09-201-20/+39
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Use PROM device probing for sun4c interrupt register.David S. Miller2008-09-201-26/+21
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Delete claim_ticker14().David S. Miller2008-09-201-46/+0
| | | | | | No more users. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Stop calling claim_ticker14() from sun4c_irq.cDavid S. Miller2008-09-201-1/+1
| | | | | | | Since the first argument is always NULL, the only side effect is to disable the PROFILE_IRQ, so just do that directly. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Kill clear_profile_irq btfixup entry.David S. Miller2008-09-205-25/+0
| | | | | | Unused. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Call sun4m_clear_profile_irq() directly from sun4m_smp.cDavid S. Miller2008-09-202-2/+5
| | | | | | | | | | This is the only use of the clear_profile_irq() btfixup entry, which just eats up lots of dead space on other platform types. A subsequent commit will delete the other implementations and the btfixup entry as well. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove #if 0'd code from sun4c_irq.cDavid S. Miller2008-09-201-9/+0
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove some SMP ifdefs in sun4d_irq.cDavid S. Miller2008-09-201-26/+16
| | | | | | Always do the sbus_tid[] handling. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Use PROM infrastructure for probing and mapping sun4d timers.David S. Miller2008-09-201-56/+83
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Use PROM device probing for sun4m irq registers.David S. Miller2008-09-202-129/+74
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* Merge branch 'master' of ↵David S. Miller2008-09-161-1/+1
|\ | | | | | | | | | | | | | | master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 Conflicts: arch/sparc64/kernel/pci_psycho.c
| * sparc: Fix user_regset 'n' field values.David S. Miller2008-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | As noticed by Russell King, we were not setting this properly to the number of entries, but rather the total size. This results in the core dumping code allocating waayyyy too much memory. Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc32: Fix function signature of of_bus_sbus_get_flags().David S. Miller2008-09-111-1/+1
| | | | | | | | | | | | | | This doesn't match the function pointer type it gets assigned to. Luckily, this was harmless. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Use PROM device probing for sun4m timer registers.David S. Miller2008-09-141-64/+57
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Fix user_regset 'n' field values.David S. Miller2008-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | As noticed by Russell King, we were not setting this properly to the number of entries, but rather the total size. This results in the core dumping code allocating waayyyy too much memory. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Call parse_early_param() in setup_arch().David S. Miller2008-09-111-0/+1
| | | | | | | | | | | | | | Mirror sparc64. This will allow us to use early_param() on sparc32 too. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Need to close openned RTC device just like sparc64.David S. Miller2008-09-101-3/+6
| | | | | | | | | | | | Otherwise we get refcount problems. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Move sun4d show_leds() out of asm/obio.hDavid S. Miller2008-09-092-1/+11
| | | | | | | | | | | | Put it, as well as cpu_leds[] array, into sun4d_irq.c Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Fix coding style of sparc_cpu_model setting code.David S. Miller2008-09-091-7/+14
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | Merge branch 'master' of ↵David S. Miller2008-09-093-15/+32
|\| | | | | | | | | | | | | | | master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 Conflicts: arch/sparc/kernel/of_device.c
| * sparc: Fix resource flags for PCI children in OF device tree.David S. Miller2008-08-291-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | When a device is under an EBUS or ISA bus, the resource flags don't get set properly. Fix this by re-evaluating the resource flags at each level of bus as we apply ranges on the way to the root. And let PCI override any existing flags setting, but don't let the default flags calculator make such overrides. Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc32: Implement smp_call_function_single().David S. Miller2008-08-282-10/+18
| | | | | | | | | | | | | | | | Reported by Stephen Rothwell. Needed to fix the build when CONFIG_RELAY is enabled. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Kill remaining asm/mostek.h inclusions.David S. Miller2008-09-042-2/+0
| | | | | | | | | | | | No longer needed. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: use RTC subsystemDavid S. Miller2008-09-042-159/+60
| | | | | | | | | | | | | | | | | | | | | | | | Use rtc subsystem for sparc32 architecture. Actually, only one driver is needed: m48t59 as it supports the most common clocks on sparc32 machines: m48t08 and m48t02. [ Add proper RTC layer calls to set_rtc_mmss() -DaveM ] Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Fix handling of LANCE and ESP parent nodes in of_device.cDavid S. Miller2008-09-031-4/+22
| | | | | | | | | | | | | | | | | | | | The device nodes that sit above 'esp' and 'le' on SBUS lack a 'ranges' property, but we should pass the translation up to the parent node so that the SBUS level ranges get applied. Based upon a bug report from Robert Reif. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: remove CONFIG_SUN4Adrian Bunk2008-09-0112-379/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | While doing some easy cleanups on the sparc code I noticed that the CONFIG_SUN4 code seems to be worse than the rest - there were some "I don't know how it should work, but the current code definitely cannot work." places. And while I have seen people running Linux on machines like a SPARCstation 5 a few years ago I don't recall having seen sun4 machines, even less ones running Linux. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Annotate of_device_id arrays with const or __initdata.David S. Miller2008-08-313-3/+3
| | | | | | | | | | | | As suggested by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Kill ebus_bus_type.David S. Miller2008-08-301-10/+0
| | | | | | | | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Kill EBUS driver layer.David S. Miller2008-08-304-404/+1
| | | | | | | | | | | | | | All that remains is the EBUS DMA programming library for sparc64. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Kill now spurious includes of sbus.hDavid S. Miller2008-08-294-4/+0
| | | | | | | | | | | | | | | | In order to make this week I also had to add an include of linux/dma-mapping.h to asm/pci_32.h because drivers/pci/pci.c really depends upon getting this header somehow. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Kill iounit_map_dma_*().David S. Miller2008-08-291-3/+0
| | | | | | | | | | | | Unused. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Kill sbus_bus_type.David S. Miller2008-08-291-9/+0
| | | | | | | | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Remove generic SBUS probing layer.David S. Miller2008-08-291-23/+0
| | | | | | | | | | | | | | The individual SBUS IOMMU arch code now sets the IOMMU information directly into the OF device objects. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Add OF archdata propagation helper.David S. Miller2008-08-291-0/+22
| | | | | | | | | | | | | | Add a helper function that, given a bus of_device node, propagates all iommu, stc, and host_controller values down to the child nodes. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Kill sbus_arch_preinit().David S. Miller2008-08-291-9/+3
| | | | | | | | | | | | | | 32-bit sparc just needed it to register the ioport procfs bits, do this via an arch_initcall() instead. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Kill sbus_ioremap() and sbus_iounmap().David S. Miller2008-08-292-18/+0
| | | | | | | | | | | | No more users. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Convert remaining sbus_ioremap() and sbus_iounmap() users.David S. Miller2008-08-295-13/+19
| | | | | | | | | | | | Use of_ioremap() and of_iounmap() instead. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Remove dinky old-style SBUS probing facilities.David S. Miller2008-08-291-1/+0
| | | | | | | | | | | | | | No drivers or code uses this stuff any more, every driver has been converted over to OF device probing. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Remove SBUS layer resource and irq handling.David S. Miller2008-08-291-27/+0
| | | | | | | | | | | | | | All the drivers use OF device objects now for this information. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Kill SBUS layer IRQ hooks.David S. Miller2008-08-294-100/+0
| | | | | | | | | | | | IRQs are obtained by drivers from the of_device struct. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Convert sun4d IRQ code to use generic device tree probing.David S. Miller2008-08-291-35/+48
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Convert pmc to OF driver.David S. Miller2008-08-291-29/+28
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Convert apc to OF driver.David S. Miller2008-08-291-34/+38
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Make mmu_map_dma_area and mmu_unmap_dma_area take a device pointer.David S. Miller2008-08-291-2/+2
| | | | | | | | | | | | | | This lets us kill this "map it in every IOMMU" crazy code, and also some of the final references to sbus_root. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Kill mmu_translate_dvma() usage.David S. Miller2008-08-291-35/+1
| | | | | | | | | | | | | | | | Just simply use virt_to_page() on the provided virtual address pointer. Kill #if 0'd code. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Move SBUS DMA attribute interfaces out of asm/sbus.hDavid S. Miller2008-08-291-1/+1
| | | | | | | | | | | | | | | | | | This is in preparation for the subsequent asm/sbus.h removal. Also, make these routines take a "struct device" or no arguments, as appropriate. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Convert all SBUS drivers to dma_*() interfaces.David S. Miller2008-08-291-8/+0
| | | | | | | | | | | | | | | | | | And all the SBUS dma interfaces are deleted. A private implementation remains inside of the 32-bit sparc port which exists only for the sake of the implementation of dma_*(). Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Implement more generic dma_*() interfaces.David S. Miller2008-08-294-1/+244
| | | | | | | | | | | | | | | | | | These dispatch to either PCI or SBUS routines based upon the device bus type. This will allow us to let SBUS drivers call these routines. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Make mmu_{get,release}_*() take a struct device pointer.David S. Miller2008-08-291-13/+4
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Make SBUS DMA interfaces take struct device.David S. Miller2008-08-292-26/+19
| | | | | | | | | | | | | | This is the first step in converting all the SBUS drivers over to generic dma_*(). Signed-off-by: David S. Miller <davem@davemloft.net>