#
# Serial device configuration
#
# $Id: Config.in,v 1.1.1.1 2003/06/23 22:18:34 jharrell Exp $
#
mainmenu_option next_comment
comment 'Serial drivers'

if [ "$CONFIG_ARM" = "y" ]; then
  # I don't have this in my tree yet.
  dep_bool 'Anakin serial port support' CONFIG_SERIAL_ANAKIN $CONFIG_ARCH_ANAKIN
  dep_bool '  Console on Anakin serial port' CONFIG_SERIAL_ANAKIN_CONSOLE $CONFIG_SERIAL_ANAKIN
  if [ "$CONFIG_SERIAL_ANAKIN" = "y" ]; then
     int  '  Default Anakin serial baudrate' CONFIG_ANAKIN_DEFAULT_BAUDRATE 9600
  fi

  dep_tristate 'ARM AMBA serial port support' CONFIG_SERIAL_AMBA $CONFIG_ARCH_INTEGRATOR
  dep_bool '  Support for console on AMBA serial port' CONFIG_SERIAL_AMBA_CONSOLE $CONFIG_SERIAL_AMBA
  if [ "$CONFIG_SERIAL_AMBA" = "y" ]; then
     define_bool CONFIG_SERIAL_INTEGRATOR y
  fi

  dep_tristate 'CLPS711X serial port support' CONFIG_SERIAL_CLPS711X $CONFIG_ARCH_CLPS711X
  dep_bool '  Support for console on CLPS711X serial port' CONFIG_SERIAL_CLPS711X_CONSOLE $CONFIG_SERIAL_CLPS711X

  dep_bool 'DC21285 serial port support' CONFIG_SERIAL_21285 $CONFIG_FOOTBRIDGE
  dep_bool '  Use /dev/ttyS0 device (OBSOLETE)' CONFIG_SERIAL_21285_OLD $CONFIG_SERIAL_21285 $CONFIG_OBSOLETE
  dep_bool '  Console on DC21285 serial port' CONFIG_SERIAL_21285_CONSOLE $CONFIG_SERIAL_21285

  dep_bool 'Excalibur serial port (uart00) support' CONFIG_SERIAL_UART00 $CONFIG_ARCH_CAMELOT
  dep_bool '  Support for console on Excalibur serial port' CONFIG_SERIAL_UART00_CONSOLE $CONFIG_SERIAL_UART00


  dep_bool 'SA1100 serial port support' CONFIG_SERIAL_SA1100 $CONFIG_ARCH_SA1100
  dep_bool '  Console on SA1100 serial port' CONFIG_SERIAL_SA1100_CONSOLE $CONFIG_SERIAL_SA1100
  if [ "$CONFIG_SERIAL_SA1100" = "y" ]; then
     int  '  Default SA1100 serial baudrate' CONFIG_SA1100_DEFAULT_BAUDRATE 9600
  fi

  dep_bool 'IXP1200 serial port support' CONFIG_SERIAL_IXP1200 $CONFIG_ARCH_IXP1200
  dep_bool '  Console on IXP1200 serial port' CONFIG_SERIAL_IXP1200_CONSOLE $CONFIG_SERIAL_IXP1200
  if [ "$CONFIG_SERIAL_IXP1200_CONSOLE" = "y" ]; then
     int  '  Default IXP1200 serial baudrate' CONFIG_IXP1200_DEFAULT_BAUDRATE 9600
  fi
fi
#
# The new 8250/16550 serial drivers
dep_tristate '8250/16550 and compatible serial support (EXPERIMENTAL)' CONFIG_SERIAL_8250 $CONFIG_EXPERIMENTAL
dep_bool '  Console on 8250/16550 and compatible serial port (EXPERIMENTAL)' CONFIG_SERIAL_8250_CONSOLE $CONFIG_SERIAL_8250 $CONFIG_EXPERIMENTAL

dep_mbool 'Extended 8250/16550 serial driver options' CONFIG_SERIAL_8250_EXTENDED $CONFIG_SERIAL_8250
dep_bool '  Support more than 4 serial ports' CONFIG_SERIAL_8250_MANY_PORTS $CONFIG_SERIAL_8250_EXTENDED
dep_bool '  Support for sharing serial interrupts' CONFIG_SERIAL_8250_SHARE_IRQ $CONFIG_SERIAL_8250_EXTENDED
dep_bool '  Autodetect IRQ on standard ports (unsafe)' CONFIG_SERIAL_8250_DETECT_IRQ $CONFIG_SERIAL_8250_EXTENDED
dep_bool '  Support special multiport boards' CONFIG_SERIAL_8250_MULTIPORT $CONFIG_SERIAL_8250_EXTENDED
dep_bool '  Support Bell Technologies HUB6 card' CONFIG_SERIAL_8250_HUB6 $CONFIG_SERIAL_8250_EXTENDED

if [ "$CONFIG_SERIAL_AMBA" = "y" -o \
     "$CONFIG_SERIAL_CLPS711X" = "y" -o \
     "$CONFIG_SERIAL_21285" = "y" -o \
     "$CONFIG_SERIAL_SA1100" = "y" -o \
     "$CONFIG_SERIAL_ANAKIN" = "y" -o \
     "$CONFIG_SERIAL_UART00" = "y" -o \
     "$CONFIG_SERIAL_8250" = "y" -o \
     "$CONFIG_SERIAL_IXP1200" = "y" ]; then
   define_bool CONFIG_SERIAL_CORE y
else
   if [ "$CONFIG_SERIAL_AMBA" = "m" -o \
        "$CONFIG_SERIAL_CLPS711X" = "m" -o \
        "$CONFIG_SERIAL_21285" = "m" -o \
        "$CONFIG_SERIAL_SA1100" = "m" -o \
        "$CONFIG_SERIAL_ANAKIN" = "m" -o \
        "$CONFIG_SERIAL_UART00" = "m" -o \
        "$CONFIG_SERIAL_8250" = "m" -o \
	"$CONFIG_SERIAL_IXP1200" = "m" ]; then
      define_bool CONFIG_SERIAL_CORE m
   fi
fi
if [ "$CONFIG_SERIAL_AMBA_CONSOLE" = "y" -o \
     "$CONFIG_SERIAL_CLPS711X_CONSOLE" = "y" -o \
     "$CONFIG_SERIAL_21285_CONSOLE" = "y" -o \
     "$CONFIG_SERIAL_SA1100_CONSOLE" = "y" -o \
     "$CONFIG_SERIAL_ANAKIN_CONSOLE" = "y" -o \
     "$CONFIG_SERIAL_UART00_CONSOLE" = "y" -o \
     "$CONFIG_SERIAL_8250_CONSOLE" = "y" -o \
     "$CONFIG_SERIAL_IXP1200_CONSOLE" = "y" ]; then
   define_bool CONFIG_SERIAL_CORE_CONSOLE y
fi

endmenu
