openwrt/staging/blogic.git
16 years agosparc32: Fix sun4c build warnings.
David S. Miller [Tue, 2 Sep 2008 10:15:44 +0000 (03:15 -0700)]
sparc32: Fix sun4c build warnings.

Reported by Stephen Rothwell.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agopci_sun4v: Use of_get_property().
David S. Miller [Tue, 2 Sep 2008 03:23:18 +0000 (20:23 -0700)]
pci_sun4v: Use of_get_property().

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agopci_schizo: Use of_get_property() and delete spurious local vars.
David S. Miller [Tue, 2 Sep 2008 03:21:15 +0000 (20:21 -0700)]
pci_schizo: Use of_get_property() and delete spurious local vars.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agopci_psycho: Use of_getintprop_default().
David S. Miller [Tue, 2 Sep 2008 03:18:04 +0000 (20:18 -0700)]
pci_psycho: Use of_getintprop_default().

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Implement SSTATE purely using notifiers and initcalls.
David S. Miller [Tue, 2 Sep 2008 07:49:38 +0000 (00:49 -0700)]
sparc64: Implement SSTATE purely using notifiers and initcalls.

Don't clutter up the tree with sstate_blah() scattered all over the
place.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Move reboot handling into seperate file and kill power reg programming.
David S. Miller [Tue, 2 Sep 2008 02:31:16 +0000 (19:31 -0700)]
sparc64: Move reboot handling into seperate file and kill power reg programming.

We should always use prom_power_off().

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Pass proper parent device down into root pci_create_bus() call.
David S. Miller [Tue, 2 Sep 2008 01:32:22 +0000 (18:32 -0700)]
sparc64: Pass proper parent device down into root pci_create_bus() call.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Kill the scan_bus function pointer in struct pci_pbm_info.
David S. Miller [Tue, 2 Sep 2008 01:32:13 +0000 (18:32 -0700)]
sparc64: Kill the scan_bus function pointer in struct pci_pbm_info.

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Use ENTRY/ENDPROC in PCI SUN4V asm.
David S. Miller [Mon, 1 Sep 2008 10:18:49 +0000 (03:18 -0700)]
sparc64: Use ENTRY/ENDPROC in PCI SUN4V asm.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Use ENTRY/ENDPROC in hypervisor asm.
David S. Miller [Mon, 1 Sep 2008 10:13:17 +0000 (03:13 -0700)]
sparc64: Use ENTRY/ENDPROC in hypervisor asm.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Apply const or __initdata to vio_device_id[]
David S. Miller [Mon, 1 Sep 2008 08:48:52 +0000 (01:48 -0700)]
sparc64: Apply const or __initdata to vio_device_id[]

This mirrors the of_device_id[] changes done in
fd098316ef533e8441576f020ead4beab93154ce ("sparc: Annotate
of_device_id arrays with const or __initdata.")

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Clean up CPU chip type probing code.
David S. Miller [Mon, 1 Sep 2008 04:48:12 +0000 (21:48 -0700)]
sparc64: Clean up CPU chip type probing code.

Three main things:

1) Make prober an arch initcall instead of using hard-coded invocation
   from paging_init()

2) Shrink table size, the fpu ident stuff was never used.

3) Use named struct initialized in table.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: remove CONFIG_SUN4
Adrian Bunk [Mon, 1 Sep 2008 03:59:37 +0000 (20:59 -0700)]
sparc: remove CONFIG_SUN4

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>
16 years agosparc64: Rewrite central driver.
David S. Miller [Mon, 1 Sep 2008 03:56:15 +0000 (20:56 -0700)]
sparc64: Rewrite central driver.

This driver is now limited to just doing the basic clock board and FHC
chip initialization and registering the platform devices for the
per-board LEDs, which are driven by the new LEDS_STARFIRE driver.

The IRQ register handling is already confined purely to the device
tree code.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoleds: Add driver for Sunfire UltraSPARC server LEDs.
David S. Miller [Mon, 1 Sep 2008 03:26:48 +0000 (20:26 -0700)]
leds: Add driver for Sunfire UltraSPARC server LEDs.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Delete starfire_cpu_setup().
David S. Miller [Sun, 31 Aug 2008 08:40:12 +0000 (01:40 -0700)]
sparc64: Delete starfire_cpu_setup().

It does nothing.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Simplify error handling in PCI controller probing.
David S. Miller [Sun, 31 Aug 2008 08:33:52 +0000 (01:33 -0700)]
sparc64: Simplify error handling in PCI controller probing.

Based upon suggestions from Stephen Rothwell.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Annotate of_device_id arrays with const or __initdata.
David S. Miller [Sun, 31 Aug 2008 08:23:17 +0000 (01:23 -0700)]
sparc: Annotate of_device_id arrays with const or __initdata.

As suggested by Stephen Rothwell.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Stop setting NO_DMA.
David S. Miller [Sat, 30 Aug 2008 19:34:20 +0000 (12:34 -0700)]
sparc: Stop setting NO_DMA.

This fixes the build with PCI disabled, we do want the
generic DMA facilities and interfaces even when just SBUS
is enabled.

Based upon a build failure report by Robert Reif.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Convert FIRE PCI controller driver into a real driver.
David S. Miller [Sat, 30 Aug 2008 10:12:38 +0000 (03:12 -0700)]
sparc64: Convert FIRE PCI controller driver into a real driver.

And now all the by-hand PCI controller probing junk in pci.c can die too.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Convert SABRE PCI controller driver into a real driver.
David S. Miller [Sat, 30 Aug 2008 10:14:01 +0000 (03:14 -0700)]
sparc64: Convert SABRE PCI controller driver into a real driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Convert PSYCHO PCI controller driver into a real driver.
David S. Miller [Sat, 30 Aug 2008 10:13:20 +0000 (03:13 -0700)]
sparc64: Convert PSYCHO PCI controller driver into a real driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Convert SUN4V PCI controller driver into a real driver.
David S. Miller [Sat, 30 Aug 2008 09:50:29 +0000 (02:50 -0700)]
sparc64: Convert SUN4V PCI controller driver into a real driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Convert SCHIZO PCI controller driver into a real driver.
David S. Miller [Sat, 30 Aug 2008 09:30:24 +0000 (02:30 -0700)]
sparc64: Convert SCHIZO PCI controller driver into a real driver.

The idea is to convert all of the PCI controller drivers into
genuine OF drivers, then we can get rid of this terrible probing
table and infrastructure in arch/sparc64/kernel/pci.c

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Don't invoke power_init() from pcibios_init().
David S. Miller [Sat, 30 Aug 2008 08:18:56 +0000 (01:18 -0700)]
sparc64: Don't invoke power_init() from pcibios_init().

That's just silly, use device_initcall() instead.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Kill ebus_bus_type.
David S. Miller [Sat, 30 Aug 2008 07:37:36 +0000 (00:37 -0700)]
sparc: Kill ebus_bus_type.

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Kill EBUS driver layer.
David S. Miller [Sat, 30 Aug 2008 07:36:11 +0000 (00:36 -0700)]
sparc: Kill EBUS driver layer.

All that remains is the EBUS DMA programming library for
sparc64.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc32: Convert PC RTC probing to pure OF driver.
David S. Miller [Sat, 30 Aug 2008 07:23:51 +0000 (00:23 -0700)]
sparc32: Convert PC RTC probing to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agocs4231: Convert to EBUS side to pure OF driver.
David S. Miller [Sat, 30 Aug 2008 07:13:55 +0000 (00:13 -0700)]
cs4231: Convert to EBUS side to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Convert EBUS floppy support to pure OF driver.
David S. Miller [Sat, 30 Aug 2008 06:26:23 +0000 (23:26 -0700)]
sparc64: Convert EBUS floppy support to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Move EBUS DMA interfaces into seperate header file.
David S. Miller [Sat, 30 Aug 2008 06:10:21 +0000 (23:10 -0700)]
sparc: Move EBUS DMA interfaces into seperate header file.

These have no dependencies on the EBUS probing layer, the clients
setup the registers and all of those details.  The EBUS DMA layer
just programs and manages the DMA controller found in EBUS.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agobbc_envctrl: Fix build errors from bbc_i2c OF conversion.
David S. Miller [Sat, 30 Aug 2008 05:55:14 +0000 (22:55 -0700)]
bbc_envctrl: Fix build errors from bbc_i2c OF conversion.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Propagate PCI device archdata into OF device tree for EBUS.
David S. Miller [Sat, 30 Aug 2008 05:42:34 +0000 (22:42 -0700)]
sparc64: Propagate PCI device archdata into OF device tree for EBUS.

In order to convert EBUS drivers doing DMA into pure OF drivers,
we need the of_device->dev.archdata setup properly.

EBUS instances that can provide DMA for device nodes sit on PCI,
so detect and propagate the information there.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agobbc_i2c: Convert to pure OF driver.
David S. Miller [Sat, 30 Aug 2008 05:34:14 +0000 (22:34 -0700)]
bbc_i2c: Convert to pure OF driver.

This thing was a mess, who wrote this junk? :)

Luckily we'll soon have nice generic I2C layer drivers for this PCF
based I2C stuff on sparc64.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoenvctrl: Convert to pure OF driver.
David S. Miller [Sat, 30 Aug 2008 04:05:15 +0000 (21:05 -0700)]
envctrl: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agodisplay7seg: Convert to pure OF device driver.
David S. Miller [Sat, 30 Aug 2008 01:01:58 +0000 (18:01 -0700)]
display7seg: Convert to pure OF device driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosun_uflash: Convert to pure OF driver.
David S. Miller [Sat, 30 Aug 2008 00:41:36 +0000 (17:41 -0700)]
sun_uflash: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agocpwatchdog: Move to drivers/watchdog/cpwd.c
David S. Miller [Sat, 30 Aug 2008 00:07:01 +0000 (17:07 -0700)]
cpwatchdog: Move to drivers/watchdog/cpwd.c

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agocpwatchdog: Cleanup and convert to pure OF driver.
David S. Miller [Sat, 30 Aug 2008 00:05:51 +0000 (17:05 -0700)]
cpwatchdog: Cleanup and convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoriowd: Distinguish between driver name and OF device node name.
David S. Miller [Fri, 29 Aug 2008 22:42:31 +0000 (15:42 -0700)]
riowd: Distinguish between driver name and OF device node name.

Driver messages should print the driver name, rather than the
OF device node name.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoriowatchdog: Move under drivers/watchdog
David S. Miller [Fri, 29 Aug 2008 22:40:24 +0000 (15:40 -0700)]
riowatchdog: Move under drivers/watchdog

The config stuff was already in drivers/watchdog/Kconfig

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoriowatchdog: Convert to pure OF driver.
David S. Miller [Fri, 29 Aug 2008 22:35:59 +0000 (15:35 -0700)]
riowatchdog: Convert to pure OF driver.

This also cleans up a lot of crud in this driver:

1) Don't touch the BBC regs, just leave the watchdog trigger
   behavior whatever the firmware programmed it to.

2) Use WATCHDOG_MINOR instead of hardcoded and not properly
   allocated RIOWD_MINOR.

Hey, I haven't touched it since I wrote it years ago :-)

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Use generic starfire RTC driver.
David S. Miller [Fri, 29 Aug 2008 08:35:19 +0000 (01:35 -0700)]
sparc64: Use generic starfire RTC driver.

Also, delete the mini RTC driver, no longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agortc: Add Starfire platform RTC driver.
David S. Miller [Fri, 29 Aug 2008 06:02:36 +0000 (23:02 -0700)]
rtc: Add Starfire platform RTC driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Use generic sun4v RTC driver.
David S. Miller [Fri, 29 Aug 2008 08:34:27 +0000 (01:34 -0700)]
sparc64: Use generic sun4v RTC driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agortc: Add Sun4V hypervisor RTC driver.
David S. Miller [Fri, 29 Aug 2008 08:32:43 +0000 (01:32 -0700)]
rtc: Add Sun4V hypervisor RTC driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Use generic BQ4802 RTC driver.
David S. Miller [Fri, 29 Aug 2008 04:54:34 +0000 (21:54 -0700)]
sparc64: Use generic BQ4802 RTC driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agortc: Add TI BQ4802 RTC driver.
David S. Miller [Fri, 29 Aug 2008 08:29:53 +0000 (01:29 -0700)]
rtc: Add TI BQ4802 RTC driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Use generic CMOS driver.
David S. Miller [Fri, 29 Aug 2008 05:16:15 +0000 (22:16 -0700)]
sparc64: Use generic CMOS driver.

Based largely upon a patch by Krzysztof Helt <krzysztof.h1@poczta.fm>

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: asm/mostek.h is now 32-bit only
David S. Miller [Thu, 28 Aug 2008 23:46:23 +0000 (16:46 -0700)]
sparc: asm/mostek.h is now 32-bit only

No need for the 64-bit header version any more.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Convert Mostek rtc to use generic RTC layer driver.
David S. Miller [Fri, 29 Aug 2008 04:06:27 +0000 (21:06 -0700)]
sparc64: Convert Mostek rtc to use generic RTC layer driver.

Based largely upon a patch by Krzysztof Helt <krzysztof.h1@poczta.fm>

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Check for RTC class device in update_persistent_clock().
David S. Miller [Fri, 29 Aug 2008 00:34:31 +0000 (17:34 -0700)]
sparc64: Check for RTC class device in update_persistent_clock().

As we convert the various by-hand sparc64 RTC drivers to use the
generic RTC framework and drivers, we need to keep the NTP
set_rtc_mmss() support via update_persistent_clock() working.

In the end, after all the RTC device cases are converted, this
local set_rtc_mmss() function will be deleted.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc64: Select RTC_CLASS
David S. Miller [Fri, 29 Aug 2008 00:28:37 +0000 (17:28 -0700)]
sparc64: Select RTC_CLASS

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agortc: Allow RTC_DRV_CMOS to be used on SPARC.
David S. Miller [Fri, 29 Aug 2008 02:54:17 +0000 (19:54 -0700)]
rtc: Allow RTC_DRV_CMOS to be used on SPARC.

Add Sparc to the Kconfig depends list.

Add __sparc___ to address_sparc = 128 ifdef.

Finally, don't be concerned about 24-hour BCD mode support if the RTC
doesn't have a valid IRQ.  We won't even use the alarm code in this
case and the Sparc RTCs have this limitation.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Remove Documentation/sparc/sbus_drivers.txt
David S. Miller [Thu, 28 Aug 2008 02:59:48 +0000 (19:59 -0700)]
sparc: Remove Documentation/sparc/sbus_drivers.txt

None of the text in this document is relevant any more.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Delete asm/sbus*.h
David S. Miller [Wed, 27 Aug 2008 12:04:18 +0000 (05:04 -0700)]
sparc: Delete asm/sbus*.h

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Kill now spurious includes of sbus.h
David S. Miller [Thu, 28 Aug 2008 02:54:01 +0000 (19:54 -0700)]
sparc: Kill now spurious includes of sbus.h

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>
16 years agosparc32: Kill iounit_map_dma_*().
David S. Miller [Wed, 27 Aug 2008 04:14:05 +0000 (21:14 -0700)]
sparc32: Kill iounit_map_dma_*().

Unused.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Kill sbus_bus_type.
David S. Miller [Thu, 28 Aug 2008 02:45:20 +0000 (19:45 -0700)]
sparc: Kill sbus_bus_type.

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Remove generic SBUS probing layer.
David S. Miller [Wed, 27 Aug 2008 11:54:04 +0000 (04:54 -0700)]
sparc: Remove generic SBUS probing layer.

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>
16 years agosparc: Add OF archdata propagation helper.
David S. Miller [Wed, 27 Aug 2008 11:22:37 +0000 (04:22 -0700)]
sparc: Add OF archdata propagation helper.

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>
16 years agosparc: Kill sbus_arch_preinit().
David S. Miller [Wed, 27 Aug 2008 11:20:14 +0000 (04:20 -0700)]
sparc: Kill sbus_arch_preinit().

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>
16 years agosparc32: Kill sbus_is_slave().
David S. Miller [Wed, 27 Aug 2008 11:18:55 +0000 (04:18 -0700)]
sparc32: Kill sbus_is_slave().

Unused.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Kill OBP property members of sbus_dev and sbus_bus
David S. Miller [Wed, 27 Aug 2008 11:18:02 +0000 (04:18 -0700)]
sparc: Kill OBP property members of sbus_dev and sbus_bus

Unused.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Kill sbus_devaddr() and sbus_dev_slot().
David S. Miller [Wed, 27 Aug 2008 11:17:24 +0000 (04:17 -0700)]
sparc: Kill sbus_devaddr() and sbus_dev_slot().

Unused.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Kill sbus_ioremap() and sbus_iounmap().
David S. Miller [Wed, 27 Aug 2008 11:11:16 +0000 (04:11 -0700)]
sparc: Kill sbus_ioremap() and sbus_iounmap().

No more users.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Convert remaining sbus_ioremap() and sbus_iounmap() users.
David S. Miller [Wed, 27 Aug 2008 11:05:35 +0000 (04:05 -0700)]
sparc: Convert remaining sbus_ioremap() and sbus_iounmap() users.

Use of_ioremap() and of_iounmap() instead.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Remove dinky old-style SBUS probing facilities.
David S. Miller [Wed, 27 Aug 2008 10:47:56 +0000 (03:47 -0700)]
sparc: Remove dinky old-style SBUS probing facilities.

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>
16 years agosparc: Remove SBUS layer resource and irq handling.
David S. Miller [Wed, 27 Aug 2008 10:38:42 +0000 (03:38 -0700)]
sparc: Remove SBUS layer resource and irq handling.

All the drivers use OF device objects now for this
information.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Kill SBUS layer IRQ hooks.
David S. Miller [Wed, 27 Aug 2008 09:56:39 +0000 (02:56 -0700)]
sparc: Kill SBUS layer IRQ hooks.

IRQs are obtained by drivers from the of_device struct.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc32: Convert sun4d IRQ code to use generic device tree probing.
David S. Miller [Wed, 27 Aug 2008 09:50:57 +0000 (02:50 -0700)]
sparc32: Convert sun4d IRQ code to use generic device tree probing.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc32: Convert pmc to OF driver.
David S. Miller [Wed, 27 Aug 2008 09:48:26 +0000 (02:48 -0700)]
sparc32: Convert pmc to OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc32: Convert apc to OF driver.
David S. Miller [Wed, 27 Aug 2008 09:45:36 +0000 (02:45 -0700)]
sparc32: Convert apc to OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc32: Make mmu_map_dma_area and mmu_unmap_dma_area take a device pointer.
David S. Miller [Thu, 28 Aug 2008 01:40:38 +0000 (18:40 -0700)]
sparc32: Make mmu_map_dma_area and mmu_unmap_dma_area take a device pointer.

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>
16 years agosparc32: Kill mmu_translate_dvma and implementations.
David S. Miller [Wed, 27 Aug 2008 09:29:50 +0000 (02:29 -0700)]
sparc32: Kill mmu_translate_dvma and implementations.

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc32: Kill mmu_translate_dvma() usage.
David S. Miller [Wed, 27 Aug 2008 09:20:35 +0000 (02:20 -0700)]
sparc32: Kill mmu_translate_dvma() usage.

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>
16 years agosparc64: Convert SBUS floppy probing to use OF device objects.
David S. Miller [Wed, 27 Aug 2008 08:55:54 +0000 (01:55 -0700)]
sparc64: Convert SBUS floppy probing to use OF device objects.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Convert uctrl driver to OF driver.
David S. Miller [Thu, 28 Aug 2008 01:39:47 +0000 (18:39 -0700)]
sparc: Convert uctrl driver to OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Convert flash driver to OF device probing.
David S. Miller [Wed, 27 Aug 2008 08:13:12 +0000 (01:13 -0700)]
sparc: Convert flash driver to OF device probing.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agofore200e: Convert over to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 08:06:07 +0000 (01:06 -0700)]
fore200e: Convert over to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agocs4231: Convert SBUS side to OF driver.
David S. Miller [Thu, 28 Aug 2008 01:24:01 +0000 (18:24 -0700)]
cs4231: Convert SBUS side to OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoalsa: Remove special SBUS dma support code.
David S. Miller [Wed, 27 Aug 2008 07:33:26 +0000 (00:33 -0700)]
alsa: Remove special SBUS dma support code.

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agocs4231: Use SNDRV_DMA_TYPE_DEV instead of SNDRV_DMA_TYPE_SBUS.
David S. Miller [Wed, 27 Aug 2008 07:31:36 +0000 (00:31 -0700)]
cs4231: Use SNDRV_DMA_TYPE_DEV instead of SNDRV_DMA_TYPE_SBUS.

SBUS layer now uses dma_*() interfaces, no need for special DMA code
any longer.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agodbri: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:30:59 +0000 (00:30 -0700)]
dbri: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoamd7930: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:29:27 +0000 (00:29 -0700)]
amd7930: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoqlogicpti: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:24:00 +0000 (00:24 -0700)]
qlogicpti: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosun_esp: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:20:58 +0000 (00:20 -0700)]
sun_esp: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoparport_sunbpp: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:17:50 +0000 (00:17 -0700)]
parport_sunbpp: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosunqe: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:12:27 +0000 (00:12 -0700)]
sunqe: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosunlance: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:07:53 +0000 (00:07 -0700)]
sunlance: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosunhme: Convert to pure OF driver.
David S. Miller [Fri, 29 Aug 2008 09:14:29 +0000 (02:14 -0700)]
sunhme: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosunbmac: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 06:40:25 +0000 (23:40 -0700)]
sunbmac: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agomyri_sbus: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 06:36:58 +0000 (23:36 -0700)]
myri_sbus: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Move SBUS DMA attribute interfaces out of asm/sbus.h
David S. Miller [Wed, 27 Aug 2008 06:33:42 +0000 (23:33 -0700)]
sparc: Move SBUS DMA attribute interfaces out of asm/sbus.h

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>
16 years agosparc: Convert all SBUS drivers to dma_*() interfaces.
David S. Miller [Thu, 28 Aug 2008 01:09:11 +0000 (18:09 -0700)]
sparc: Convert all SBUS drivers to dma_*() interfaces.

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>
16 years agosparc32: Implement more generic dma_*() interfaces.
David S. Miller [Thu, 28 Aug 2008 01:01:36 +0000 (18:01 -0700)]
sparc32: Implement more generic dma_*() interfaces.

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>
16 years agosparc32: Make mmu_{get,release}_*() take a struct device pointer.
David S. Miller [Wed, 27 Aug 2008 06:00:58 +0000 (23:00 -0700)]
sparc32: Make mmu_{get,release}_*() take a struct device pointer.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Make SBUS DMA interfaces take struct device.
David S. Miller [Thu, 28 Aug 2008 01:37:58 +0000 (18:37 -0700)]
sparc: Make SBUS DMA interfaces take struct device.

This is the first step in converting all the SBUS drivers
over to generic dma_*().

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc: Propagate SBUS iommu archdata into real of_device objects.
David S. Miller [Tue, 26 Aug 2008 05:52:37 +0000 (22:52 -0700)]
sparc: Propagate SBUS iommu archdata into real of_device objects.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agosparc32: Make IOMMU and IO-UNIT init work with device nodes.
David S. Miller [Tue, 26 Aug 2008 05:47:20 +0000 (22:47 -0700)]
sparc32: Make IOMMU and IO-UNIT init work with device nodes.

And stick the iommu archdata pointer into the generic OF device tree
of_device struct as well.

We still have to pass the sbus_bus object down into the routines so
that the SBUS bus objects get the iommu cookies set properly.  After
drivers get converted to being pure OF drivers, that can go away.

Signed-off-by: David S. Miller <davem@davemloft.net>