Add new pmac_zilog serial driver, obsolete old macserial.

The new driver is a complete rewrite based on David Miller sunzilog
adapted to PowerMac, it uses the new driver model & the serial driver
core unlike the old macserial. It doesn't support DMA yet but this is
a "feature" for now as the DMA implementation of macserial used to
exhibit memory corruption problems.
parent 2358a645
...@@ -1277,16 +1277,11 @@ config MAC_FLOPPY ...@@ -1277,16 +1277,11 @@ config MAC_FLOPPY
floppy controller, say Y here. Most commonly found in PowerMacs. floppy controller, say Y here. Most commonly found in PowerMacs.
config MAC_SERIAL config MAC_SERIAL
tristate "Support for PowerMac serial ports" tristate "Support for PowerMac serial ports (OBSOLETE DRIVER)"
depends on PPC_PMAC depends on PPC_PMAC
help help
If you have Macintosh style serial ports (8 pin mini-DIN), say Y This driver is obsolete. Use CONFIG_SERIAL_PMACZILOG in
here. If you also have regular serial ports and enable the driver "Character devices --> Serial drivers --> PowerMac z85c30" option.
for them, you can't currently use the serial console feature.
config SERIAL_CONSOLE
bool "Support for console on serial port"
depends on PPC_PMAC && MAC_SERIAL=y
config ADB config ADB
bool "Apple Desktop Bus (ADB) support" bool "Apple Desktop Bus (ADB) support"
......
...@@ -430,12 +430,12 @@ config SERIAL98_CONSOLE ...@@ -430,12 +430,12 @@ config SERIAL98_CONSOLE
config SERIAL_CORE config SERIAL_CORE
tristate tristate
default m if SERIAL_AMBA!=y && SERIAL_CLPS711X!=y && SERIAL_21285!=y && !SERIAL_SA1100 && !SERIAL_ANAKIN && !SERIAL_UART00 && SERIAL_8250!=y && SERIAL_MUX!=y && !SERIAL_ROCKETPORT && !SERIAL_SUNCORE && !V850E_UART && (SERIAL_AMBA=m || SERIAL_CLPS711X=m || SERIAL_21285=m || SERIAL_8250=m || SERIAL_MUX=m || SERIAL98=m) default m if SERIAL_AMBA!=y && SERIAL_CLPS711X!=y && SERIAL_21285!=y && !SERIAL_SA1100 && !SERIAL_ANAKIN && !SERIAL_UART00 && SERIAL_8250!=y && SERIAL_MUX!=y && !SERIAL_ROCKETPORT && !SERIAL_SUNCORE && !V850E_UART && SERIAL_PMACZILOG!=y && (SERIAL_AMBA=m || SERIAL_CLPS711X=m || SERIAL_21285=m || SERIAL_8250=m || SERIAL_MUX=m || SERIAL98=m || SERIAL_PMACZILOG=m)
default y if SERIAL_AMBA=y || SERIAL_CLPS711X=y || SERIAL_21285=y || SERIAL_SA1100 || SERIAL_ANAKIN || SERIAL_UART00 || SERIAL_8250=y || SERIAL_MUX=y || SERIAL_ROCKETPORT || SERIAL_SUNCORE || V850E_UART || SERIAL98=y default y if SERIAL_AMBA=y || SERIAL_CLPS711X=y || SERIAL_21285=y || SERIAL_SA1100 || SERIAL_ANAKIN || SERIAL_UART00 || SERIAL_8250=y || SERIAL_MUX=y || SERIAL_ROCKETPORT || SERIAL_SUNCORE || V850E_UART || SERIAL98=y || SERIAL_PMACZILOG=y
config SERIAL_CORE_CONSOLE config SERIAL_CORE_CONSOLE
bool bool
depends on SERIAL_AMBA_CONSOLE || SERIAL_CLPS711X_CONSOLE || SERIAL_21285_CONSOLE || SERIAL_SA1100_CONSOLE || SERIAL_ANAKIN_CONSOLE || SERIAL_UART00_CONSOLE || SERIAL_8250_CONSOLE || SERIAL_MUX_CONSOLE || SERIAL_SUNZILOG_CONSOLE || SERIAL_SUNSU_CONSOLE || SERIAL_SUNSAB_CONSOLE || V850E_UART_CONSOLE || SERIAL98_CONSOLE depends on SERIAL_AMBA_CONSOLE || SERIAL_CLPS711X_CONSOLE || SERIAL_21285_CONSOLE || SERIAL_SA1100_CONSOLE || SERIAL_ANAKIN_CONSOLE || SERIAL_UART00_CONSOLE || SERIAL_8250_CONSOLE || SERIAL_MUX_CONSOLE || SERIAL_SUNZILOG_CONSOLE || SERIAL_SUNSU_CONSOLE || SERIAL_SUNSAB_CONSOLE || V850E_UART_CONSOLE || SERIAL98_CONSOLE || SERIAL_PMACZILOG_CONSOLE
default y default y
config SERIAL_68328 config SERIAL_68328
...@@ -473,5 +473,21 @@ config SERIAL_68360 ...@@ -473,5 +473,21 @@ config SERIAL_68360
depends on SERIAL_68360_SMC || SERIAL_68360_SCC depends on SERIAL_68360_SMC || SERIAL_68360_SCC
default y default y
config SERIAL_PMACZILOG
tristate "PowerMac z85c30 ESCC support"
depends on PPC_OF
help
This driver supports the Zilog z85C30 serial ports found on
PowerMac machines.
Say Y or M if you want to be able to these serial ports.
config SERIAL_PMACZILOG_CONSOLE
bool "Console on PowerMac z85c30 serial port"
depends on SERIAL_PMACZILOG=y
help
If you would like to be able to use the z85c30 serial port
on your PowerMac as the console, you can do so by answering
Y to this option.
endmenu endmenu
...@@ -31,3 +31,4 @@ obj-$(CONFIG_SERIAL_68360) += 68360serial.o ...@@ -31,3 +31,4 @@ obj-$(CONFIG_SERIAL_68360) += 68360serial.o
obj-$(CONFIG_SERIAL_COLDFIRE) += mcfserial.o obj-$(CONFIG_SERIAL_COLDFIRE) += mcfserial.o
obj-$(CONFIG_V850E_UART) += v850e_uart.o obj-$(CONFIG_V850E_UART) += v850e_uart.o
obj-$(CONFIG_SERIAL98) += serial98.o obj-$(CONFIG_SERIAL98) += serial98.o
obj-$(CONFIG_SERIAL_PMACZILOG) += pmac_zilog.o
This diff is collapsed.
This diff is collapsed.
...@@ -67,6 +67,9 @@ ...@@ -67,6 +67,9 @@
#define PORT_PC9861 45 #define PORT_PC9861 45
#define PORT_PC9801_101 46 #define PORT_PC9801_101 46
/* Macintosh Zilog type numbers */
#define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */
#define PORT_PMAC_ZILOG 51
#ifdef __KERNEL__ #ifdef __KERNEL__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment