zephyr/arch/x86/platforms/galileo/Kconfig

250 lines
5.3 KiB
Text
Raw Normal View History

# Kconfig - galileo platform configuration options
#
# Copyright (c) 2014-2015 Wind River Systems, Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1) Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2) Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3) Neither the name of Wind River Systems nor the names of its contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
config PLATFORM
string
default galileo
help
This option holds the directory name used by the build system to locate
the correct linker file.
config PHYS_LOAD_ADDR
default 0x00100000
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 25000000 if HPET_TIMER
config UART_CONSOLE_INDEX
default 1
config PINMUX
def_bool y
config I2C
def_bool y
config GPIO
def_bool y
config PWM
def_bool y
config SHARED_IRQ
def_bool y
if SHARED_IRQ
config SHARED_IRQ_0
def_bool y
config SHARED_IRQ_0_NAME
default "SHARED_IRQ0"
config SHARED_IRQ_0_IRQ
default 18
config SHARED_IRQ_0_PRI
default 0
endif
if I2C
config I2C_CLOCK_SPEED
default 25
config I2C_DW
def_bool y
config I2C_DW_VENDOR_ID
default 0x8086
config I2C_DW_DEVICE_ID
default 0x934
config I2C_DW_CLASS
default 0x0C
config I2C_DW_0
def_bool y
config I2C_DW_0_NAME
default "I2C0"
config I2C_DW_0_DEFAULT_CFG
default 0x12
config I2C_DW_0_BASE
default 0x90007000
config I2C_DW_0_IRQ
default 18
config I2C_DW_0_INT_PRIORITY
default 0
config I2C_DW_0_BUS
default 0
config I2C_DW_0_DEV
default 21
config I2C_DW_0_FUNCTION
default 2
config I2C_DW_0_BAR
default 0
config I2C_DW_0_IRQ_SHARED_NAME
default SHARED_IRQ_0_NAME if SHARED_IRQ
endif
if GPIO && I2C
config GPIO_PCAL9535A
def_bool y
config GPIO_PCAL9535A_0
def_bool y
config GPIO_PCAL9535A_0_DEV_NAME
default "EXP0"
config GPIO_PCAL9535A_0_I2C_ADDR
default 0x25
config GPIO_PCAL9535A_0_I2C_MASTER_DEV_NAME
default I2C_DW_0_NAME
config GPIO_PCAL9535A_1
def_bool y
config GPIO_PCAL9535A_1_DEV_NAME
default "EXP1"
config GPIO_PCAL9535A_1_I2C_ADDR
default 0x26
config GPIO_PCAL9535A_1_I2C_MASTER_DEV_NAME
default I2C_DW_0_NAME
config GPIO_PCAL9535A_2
def_bool y
config GPIO_PCAL9535A_2_DEV_NAME
default "EXP2"
config GPIO_PCAL9535A_2_I2C_ADDR
default 0x27
config GPIO_PCAL9535A_2_I2C_MASTER_DEV_NAME
default I2C_DW_0_NAME
endif
if GPIO
config GPIO_MMIO
def_bool y
config GPIO_MMIO_0
def_bool y
config GPIO_MMIO_1
def_bool y
config GPIO_DW
def_bool y
config GPIO_DW_0
def_bool y
if GPIO_MMIO_0
config GPIO_MMIO_0_DEV_NAME
default "GPIO_M0"
config GPIO_MMIO_0_CFG
default 0x0
config GPIO_MMIO_0_EN
default 0x1080
config GPIO_MMIO_0_DIR
default 0x1084
config GPIO_MMIO_0_INPUT
default 0x1088
config GPIO_MMIO_0_OUTPUT
default 0x1088
endif
if GPIO_MMIO_1
config GPIO_MMIO_1_DEV_NAME
default "GPIO_M1"
config GPIO_MMIO_1_CFG
default 0x0
config GPIO_MMIO_1_EN
default 0x10A0
config GPIO_MMIO_1_DIR
default 0x10A4
config GPIO_MMIO_1_INPUT
default 0x10A8
config GPIO_MMIO_1_OUTPUT
default 0x10A8
endif
if GPIO_DW_0
config GPIO_DW_0_NAME
default "GPIO_0"
config GPIO_DW_0_IRQ_SHARED_NAME
default SHARED_IRQ_0_NAME
config GPIO_DW_0_BASE_ADDR
default 0x90006000
config GPIO_DW_0_BUS
default 0
config GPIO_DW_0_DEV
default 21
config GPIO_DW_0_FUNCTION
default 2
config GPIO_DW_0_BAR
default 1
endif
endif
if PINMUX
config PINMUX_BASE
default 0x00000000
config PINMUX_NUM_PINS
default 20
config PINMUX_BASE
default 0x00000000
config PINMUX_GALILEO_EXP0_NAME
default GPIO_PCAL9535A_0_DEV_NAME
config PINMUX_GALILEO_EXP1_NAME
default GPIO_PCAL9535A_1_DEV_NAME
config PINMUX_GALILEO_EXP2_NAME
default GPIO_PCAL9535A_2_DEV_NAME
config PINMUX_GALILEO_PWM0_NAME
default PWM_PCA9685_0_DEV_NAME
config PINMUX_GALILEO_GPIO_DW_NAME
default GPIO_DW_0_NAME
config PINMUX_GALILEO_GPIO_INTEL_CW_NAME
default GPIO_MMIO_0_DEV_NAME
config PINMUX_GALILEO_GPIO_INTEL_RW_NAME
default GPIO_MMIO_1_DEV_NAME
endif
if PWM
config PWM_PCA9685
def_bool y
config PWM_PCA9685_0
def_bool y
if PWM_PCA9685_0
config PWM_PCA9685_0_DEV_NAME
default "PWM0"
config PWM_PCA9685_0_I2C_ADDR
default 0x47
config PWM_PCA9685_0_I2C_MASTER_DEV_NAME
default I2C_DW_0_NAME
endif
endif