zephyr/boards/arm/hexiwear_k64/Kconfig.defconfig

217 lines
3.0 KiB
Plaintext

# Kconfig - Hexiwear K64 board
#
# Copyright (c) 2016, Freescale Semiconductor, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
if BOARD_HEXIWEAR_K64
config BOARD
default hexiwear_k64
config FLASH_SIZE
default 1024
config SRAM_SIZE
default 192
config OSC_XTAL0_FREQ
default 12000000
config MCG_PRDIV0
default 0x02
config MCG_VDIV0
default 0x06
config MCG_FCRDIV
default 1
if UART_K20
config UART_K20_PORT_0
def_bool y
if UART_K20_PORT_0
config UART_K20_PORT_0_IRQ_PRI
default 3
config UART_K20_PORT_0_BAUD_RATE
default 115200
endif
config UART_K20_PORT_1
def_bool y
if UART_K20_PORT_1
config UART_K20_PORT_1_IRQ_PRI
default 3
config UART_K20_PORT_1_BAUD_RATE
default 115200
endif
config UART_K20_PORT_2
def_bool y
if UART_K20_PORT_2
config UART_K20_PORT_2_IRQ_PRI
default 3
config UART_K20_PORT_2_BAUD_RATE
default 115200
endif
config UART_K20_PORT_3
def_bool y
if UART_K20_PORT_3
config UART_K20_PORT_3_IRQ_PRI
default 3
config UART_K20_PORT_3_BAUD_RATE
default 115200
endif
config UART_K20_PORT_4
def_bool y
if UART_K20_PORT_4
config UART_K20_PORT_4_IRQ_PRI
default 3
config UART_K20_PORT_4_BAUD_RATE
default 115200
endif
endif # UART_K20
config BLUETOOTH_UART_ON_DEV_NAME
default "UART_4" if BLUETOOTH_UART
config PINMUX
def_bool y
if PINMUX_KSDK
config PINMUX_KSDK_PORTA
def_bool n
config PINMUX_KSDK_PORTB
def_bool n
config PINMUX_KSDK_PORTC
def_bool y
config PINMUX_KSDK_PORTD
def_bool y
config PINMUX_KSDK_PORTE
def_bool y if UART_K20_PORT_4
endif # PINMUX_KSDK
if GPIO_K64
config GPIO_K64_A
def_bool y
config GPIO_K64_B
def_bool y
config GPIO_K64_C
def_bool y
config GPIO_K64_D
def_bool y
config GPIO_K64_E
def_bool y
endif # GPIO_K64
if I2C
config I2C_0
def_bool y
if I2C_0
config I2C_0_DEFAULT_CFG
default 0x12
config I2C_0_IRQ_PRI
default 0
endif # I2C_0
config I2C_1
def_bool y
if I2C_1
config I2C_1_DEFAULT_CFG
default 0x12
config I2C_1_IRQ_PRI
default 0
endif # I2C_1
endif # I2C
if FXOS8700
config FXOS8700_I2C_NAME
default I2C_1_NAME
config FXOS8700_I2C_ADDRESS
default 0x1e
config FXOS8700_GPIO_NAME
default GPIO_K64_D_DEV_NAME
config FXOS8700_GPIO_PIN
default 13
endif # FXOS8700
if PWM_K64_FTM
config PWM_K64_FTM_0
def_bool y
endif # PWM_K64_FTM
if SPI
config SPI_0
def_bool y
config SPI_0_IRQ_PRI
default 3
config SPI_1
def_bool n
config SPI_1_IRQ_PRI
default 3
config SPI_2
def_bool n
config SPI_2_IRQ_PRI
default 3
endif # SPI
if ETHERNET
config ETH_MCUX_0
def_bool y
endif # ETHERNET
endif # BOARD_HEXIWEAR_K64