#
# 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 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.

config AMPERAGE_GAIN_CORRECTION
	bool "Correct for gain error in board's op amps"
	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 op amp gain value can be off on a per-unit basis.
        If unsure here, you should say Y.

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 OP_AMP_OFFSET
	bool "Use an op amp offset when determining 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 use an op amp
        offset value when determining battery voltage.

config CALCULATE_OP_AMP_OFFSET
	bool "Calculate the op amp offset in software"
	depends on OP_AMP_OFFSET
    default n
	help
        The Fiona Platform has a Foxconn IOC to sample battery information
        but the readings can be off.  Set this to true to calculate how far
        off the op amp circuit is and then use that offset more accurately 
        determine battery voltage.

endmenu
