#
# Character device configuration
#

menu "IOC Controller"

config IOC
	tristate "IOC Controller Support"
	depends on SERIAL_CORE
	help
	  This driver supports the Foxconn IOC Version 0.36.
	  This is a communication chip for additional peripherals.

	  To compile this driver as a module, choose M here: the
	  module will be called ioc.

	  If you haven't heard about it, it's safe to say N.

config IOC_FIONA 
	bool "Fiona Platform IOC Support"
	depends on IOC
    default y
	help
        The Fiona Platform has a Foxconn IOC to interface to 
        several external perhipherals.  If you're using a 
        Rev 3 or newer Fiona, you should say Y.

config IOC_PNLCD
	bool "Fiona Platform IOC PN-LCD Support"
	depends on IOC_FIONA
    default y
	help
        The Fiona Platform has a Foxconn IOC to interface to 
        a pn-lcd display.  If you're using a Fiona with pn-lcd,
        you should say Y.

config IOC_KEYBOARD 
	bool "Fiona Platform IOC Keyboard Support"
	depends on IOC_FIONA
    default y
	help
        The Fiona Platform has a Foxconn IOC to interface to 
        the onboard keyboard.  If you're using a Fiona with an
        ioc-based keyboard, you should say Y.

config IOC_VOLTAGE_CHECKER
	bool "Perform low-voltage detection on the host"
	depends on IOC_FIONA
    default y
	help
        The Fiona Platform has a Foxconn IOC to sample battery information
        but the readings can be off.  Set this to true to run the low-voltage
        checker on the host instead of from within the IOC.  

config FIONA_VOLTAGE_DUMP
    bool "Fiona Voltage Smoothing Algorithm Debugging"
    depends on IOC_VOLTAGE_CHECKER
    default n
    help
        Say Y here if you want the voltage sampling mechanism to print details
        on every sample (useful for tweaking lambda values and gathering voltage
        curve data.  If unclear, you should say N.

config VOLTAGE_WATERMARK_ALGORITHM_2
	bool "Use alternative algorithm for watermark hit detection"
	depends on IOC_VOLTAGE_CHECKER
    default n
	help
        There are two algorithms available for smoothing voltage samples.
        Selecting this option will use a lambda approach when determining
        watermark hits.  If you are unsure, you should say N.

config VOLTAGE_ICON_ALGORITHM_2
	bool "Use alternative algorithm for battery icon smoothing"
	depends on IOC_VOLTAGE_CHECKER
    default y
	help
        There are two algorithms available for smoothing voltage samples.
        Selecting this option will use a lambda approach.  If you are
        unsure, you should say N.

config VOLTAGE_REFERENCE_CORRECTION
	bool "Correct for error in board's reference voltage"
	depends on IOC_VOLTAGE_CHECKER
    default y
	help
        The Fiona Platform has a Foxconn IOC to sample battery information
        but the readings can be off.  Set this to true to correct for the
        fact that the reference voltage can be off on a per-unit basis.
        If unsure here, you should say Y.

config SAFETY_NET
	bool "Use safety nets in addition to adjusted watermark checking"
	depends on IOC_VOLTAGE_CHECKER
    default n
	help
        Safety nets check the raw voltage returned from the IOC against a
        predefined level, and if the raw value is below that level, treats
        the read the same as it would an adjusted watermark timeout.
        If not sure here, you should say Y.

endmenu
