Skip to content

Commit

Permalink
[POWERPC] PS3: Vuart rework
Browse files Browse the repository at this point in the history
PS3 vuart updates to reflect the new PS3 unified device support.
 - Move vuart devices to the PS3 system bus.
 - Replace use of ps3_vuart_port_device with ps3_system_bus_device.
 - Make the PS3 vuart bus driver a loadable module.
 - Add remove() and shutdown() routines.
 - Move ps3_vuart_work into ps3_vuart_port_priv.tx_list.
 - Remove redundant spinlock ps3_vuart_work.lock.
 - No longer free ps3_vuart_port_device.priv on shutdown.
 - Cleanup Kconfig defs.
 - Export symbols needed for modular port drivers.
 - Arrange to use port numbers found in repository.
 - Fix bugs in ps3_vuart_read_async() and polled reading
 - Cleanup handling of shared interrupt with ps3_vuart_bus_interrupt_get()
   and ps3_vuart_bus_interrupt_put()
 - Add more comments to vuart.c.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Jun 28, 2007
1 parent a3323d1 commit 7626e78
Show file tree
Hide file tree
Showing 5 changed files with 520 additions and 404 deletions.
21 changes: 8 additions & 13 deletions arch/powerpc/platforms/ps3/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,12 @@ config PS3_USE_LPAR_ADDR

config PS3_VUART
depends on PPC_PS3
bool "PS3 Virtual UART support" if PS3_ADVANCED
default y
help
Include support for the PS3 Virtual UART.

This support is required for several system services
including the System Manager and AV Settings. In
general, all users will say Y.
tristate

config PS3_PS3AV
depends on PPC_PS3
tristate "PS3 AV settings driver" if PS3_ADVANCED
depends on PS3_VUART
select PS3_VUART
default y
help
Include support for the PS3 AV Settings driver.
Expand All @@ -93,13 +87,14 @@ config PS3_PS3AV
general, all users will say Y or M.

config PS3_SYS_MANAGER
bool "PS3 System Manager driver" if PS3_ADVANCED
depends on PS3_VUART
default y
depends on PPC_PS3
tristate "PS3 System Manager driver" if PS3_ADVANCED
select PS3_VUART
default m
help
Include support for the PS3 System Manager.

This support is required for system control. In
general, all users will say Y.
general, all users will say Y or M.

endmenu
2 changes: 2 additions & 0 deletions arch/powerpc/platforms/ps3/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ int ps3_vuart_irq_setup(enum ps3_cpu_binding cpu, void* virt_addr_bmp,

return result;
}
EXPORT_SYMBOL_GPL(ps3_vuart_irq_setup);

int ps3_vuart_irq_destroy(unsigned int virq)
{
Expand All @@ -583,6 +584,7 @@ int ps3_vuart_irq_destroy(unsigned int virq)

return result;
}
EXPORT_SYMBOL_GPL(ps3_vuart_irq_destroy);

/**
* ps3_spe_irq_setup - Setup an spe virq.
Expand Down
Loading

0 comments on commit 7626e78

Please sign in to comment.