galileo: Kconfig: Add pre-configured settings for Galileo's ADC chip

Setting up the right SPI port, its configuration and max frequency.
Also, setting NANO_TIMEOUTS by default as it is required for delayed
operation inside ADC's driver.

Change-Id: I63b2b872ff858f1d80065a94ba3e2f303d279a67
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2015-10-12 14:31:45 +03:00 committed by Anas Nashif
parent 5bcdfbe255
commit 5fbf815419
3 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,6 @@
CONFIG_MICROKERNEL=y
CONFIG_NANO_TIMERS=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_X86_32=y
CONFIG_PLATFORM_GALILEO=y
CONFIG_CPU_MINUTEIA=y

View File

@ -1,5 +1,6 @@
CONFIG_NANOKERNEL=y
CONFIG_NANO_TIMERS=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_X86_32=y
CONFIG_PLATFORM_GALILEO=y
CONFIG_CPU_MINUTEIA=y

View File

@ -319,3 +319,16 @@ config NS16550_PORT_0_BASE_ADDR
config NS16550_PORT_1_BASE_ADDR
default 0x9000b000
endif
if ADC
config ADC_TI_ADC108S102
def_bool y
config ADC_TI_ADC108S102_0
def_bool y
config ADC_TI_ADC108S102_0_SPI_PORT_NAME
default "SPI0"
config ADC_TI_ADC108S102_0_SPI_CONFIGURATION
default 0x103
config ADC_TI_ADC108S102_0_SPI_MAX_FREQ
default 2147483650
endif