#
# Use this file as a starting point for your custom gumstix configuration
# Edit it to reflect your hardware setup and then save it a parallel location in user.collection

MACHINE_FEATURES += "connex"
require conf/machine/include/gumstix.inc
require conf/machine/include/tune-xscale.inc

#
# Your flash size = Total flash (in MB) - 1 (for linux kernel partition)
#ROOT_FLASH_SIZE = "3"
ROOT_FLASH_SIZE = "15"

#
# Enable use of virtual terminal for LCD on tty1 if USE_VT = "1"
USE_VT = "0"
#USE_VT = "1"
#SYSVINIT_ENABLED_GETTYS = "1"

#
# Uncomment features that your board set supports

#MACHINE_FEATURES += "usbhost"
MACHINE_FEATURES += "usbgadget"

MACHINE_FEATURES  += "i2c"
#MACHINE_FEATURES  += "spi"

MACHINE_FEATURES  += "serial"
MACHINE_FEATURES  += "bluetooth"
MACHINE_FEATURES  += "sound"

# if you enable robostix you will need to disable both "lcd" and "touchscreen" features
#MACHINE_FEATURES  += "robostix"

MACHINE_FEATURES  += "lcd"
MACHINE_FEATURES  += "rgb16"
#MACHINE_FEATURES  += "rgb18"

MACHINE_FEATURES  += "touchscreen"
#MACHINE_FEATURES  += "keyboard"

MACHINE_FEATURES  += "pcmcia"
#MACHINE_FEATURES  += "mmc"

MACHINE_FEATURES  += "wifi"
MACHINE_FEATURES  += "ethernet"

MACHINE_FEATURES  += "fat"
MACHINE_FEATURES  += "ext2"

# enable one of the following if you want to target build for uimage/rootfs on mmc/microSD or CF
#MACHINE_FEATURES  += "mmcroot"
#MACHINE_FEATURES  += "cfroot"

#
# note:  selection of MACHINE_FEATURES above will automatically include necessary kernel modules
# for those features via task-base-gumstix.  Include below any extra kernel modules that you want installed

#MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-xxxxxxx"

#
# Uncomment or add kernel modules that should be autoloaded

module_autoload_proc_gpio      = 'proc_gpio'

module_autoload_pcmcia         = ${@base_contains('MACHINE_FEATURES', 'pcmcia',     'pcmcia', '',d)}
module_autoload_pxa2xx_cs      = ${@base_contains('MACHINE_FEATURES', 'pcmcia',     'pxa2xx_cs', '',d)}

module_autoload_pxamci         = ${@base_contains('MACHINE_FEATURES', 'mmc',        'pxamci', '',d)}
module_autoload_mmc_block      = ${@base_contains('MACHINE_FEATURES', 'mmc',        'mmc_block', '',d)}

module_autoload_ethernet       = ${@base_contains('MACHINE_FEATURES', 'ethernet',   'ethernet', '',d)}

module_autoload_gumstix_gadget = ${@base_contains('MACHINE_FEATURES', 'usbgadget',  'gumstix_gadget', '',d)}
#module_autoload_g_file_storage = ${@base_contains('MACHINE_FEATURES', 'usbgadget',  'g_file_storage', '',d)}
module_autoload_g_ether        = ${@base_contains('MACHINE_FEATURES', 'usbgadget',  'g_ether', '',d)}
#module_autoload_g_serial       = ${@base_contains('MACHINE_FEATURES', 'usbgadget',  'g_serial', '',d)}

module_autoload_tsc2003        = ${@base_contains('MACHINE_FEATURES', 'touchscreen','tsc2003', '',d)}
module_autoload_ucb1400-ts     = ${@base_contains('MACHINE_FEATURES', 'touchscreen','ucb1400-ts', '',d)}
module_autoload_evdev          = ${@base_contains('MACHINE_FEATURES', 'touchscreen','evdev', '',d)}

