2015-09-19 23:49:34 -04:00
|
|
|
# Kconfig - galileo platform configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
|
|
#
|
2015-10-06 11:00:37 -05:00
|
|
|
# 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
|
2015-09-19 23:49:34 -04:00
|
|
|
#
|
2015-10-06 11:00:37 -05:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-09-19 23:49:34 -04:00
|
|
|
#
|
2015-10-06 11:00:37 -05:00
|
|
|
# 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.
|
2015-09-19 23:49:34 -04:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-09-25 15:30:22 -07:00
|
|
|
config PINMUX
|
|
|
|
def_bool y
|
|
|
|
|
2015-09-29 11:22:23 -07:00
|
|
|
config I2C
|
|
|
|
def_bool y
|
|
|
|
|
2015-10-01 10:17:45 -07:00
|
|
|
config GPIO
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config PWM
|
|
|
|
def_bool y
|
|
|
|
|
2015-10-12 14:39:43 +03:00
|
|
|
config SPI
|
|
|
|
def_bool y
|
|
|
|
|
2015-10-01 10:17:45 -07:00
|
|
|
config SHARED_IRQ
|
|
|
|
def_bool y
|
|
|
|
|
2015-09-28 15:16:34 -07:00
|
|
|
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
|
|
|
|
|
2015-09-23 17:03:52 -04:00
|
|
|
if PCI_LEGACY_BRIDGE
|
|
|
|
config PCI_LEGACY_BRIDGE_BUS
|
|
|
|
default 0
|
|
|
|
config PCI_LEGACY_BRIDGE_DEV
|
|
|
|
default 31
|
|
|
|
config PCI_LEGACY_BRIDGE_VENDOR_ID
|
|
|
|
default 0x8086
|
|
|
|
config PCI_LEGACY_BRIDGE_DEVICE_ID
|
|
|
|
default 0x095e
|
|
|
|
endif
|
|
|
|
|
2015-09-25 15:30:22 -07:00
|
|
|
if I2C
|
2015-09-29 11:22:23 -07:00
|
|
|
config I2C_CLOCK_SPEED
|
|
|
|
default 25
|
2015-09-25 15:30:22 -07:00
|
|
|
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"
|
2015-09-29 11:22:23 -07:00
|
|
|
config I2C_DW_0_DEFAULT_CFG
|
|
|
|
default 0x12
|
2015-09-29 11:22:23 -07:00
|
|
|
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
|
2015-09-28 15:16:34 -07:00
|
|
|
config I2C_DW_0_IRQ_SHARED_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default SHARED_IRQ_0_NAME if SHARED_IRQ
|
2015-09-25 15:30:22 -07:00
|
|
|
endif
|
|
|
|
|
2015-09-20 14:12:42 -04:00
|
|
|
if GPIO && I2C
|
2015-10-01 10:17:45 -07:00
|
|
|
|
|
|
|
config GPIO_PCAL9535A
|
|
|
|
def_bool y
|
|
|
|
|
2015-09-20 14:12:42 -04:00
|
|
|
config GPIO_PCAL9535A_0
|
|
|
|
def_bool y
|
|
|
|
config GPIO_PCAL9535A_0_DEV_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default "EXP0"
|
2015-09-20 14:12:42 -04:00
|
|
|
config GPIO_PCAL9535A_0_I2C_ADDR
|
|
|
|
default 0x25
|
|
|
|
config GPIO_PCAL9535A_0_I2C_MASTER_DEV_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default I2C_DW_0_NAME
|
|
|
|
|
2015-09-20 14:12:42 -04:00
|
|
|
config GPIO_PCAL9535A_1
|
|
|
|
def_bool y
|
|
|
|
config GPIO_PCAL9535A_1_DEV_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default "EXP1"
|
2015-09-20 14:12:42 -04:00
|
|
|
config GPIO_PCAL9535A_1_I2C_ADDR
|
|
|
|
default 0x26
|
|
|
|
config GPIO_PCAL9535A_1_I2C_MASTER_DEV_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default I2C_DW_0_NAME
|
|
|
|
|
2015-09-20 14:12:42 -04:00
|
|
|
config GPIO_PCAL9535A_2
|
|
|
|
def_bool y
|
|
|
|
config GPIO_PCAL9535A_2_DEV_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default "EXP2"
|
2015-09-20 14:12:42 -04:00
|
|
|
config GPIO_PCAL9535A_2_I2C_ADDR
|
|
|
|
default 0x27
|
|
|
|
config GPIO_PCAL9535A_2_I2C_MASTER_DEV_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default I2C_DW_0_NAME
|
2015-09-20 14:12:42 -04:00
|
|
|
endif
|
2015-09-20 14:26:41 -04:00
|
|
|
|
|
|
|
if GPIO
|
2015-10-01 10:17:45 -07:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-09-20 14:26:41 -04:00
|
|
|
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
|
2015-10-01 10:17:45 -07:00
|
|
|
|
2015-10-01 13:20:01 +03:00
|
|
|
if GPIO_DW
|
|
|
|
config GPIO_DW_0
|
|
|
|
def_bool y
|
2015-10-03 10:14:34 -04:00
|
|
|
select GPIO_DW_0_IRQ_SHARED if SHARED_IRQ
|
2015-10-01 10:17:45 -07:00
|
|
|
config GPIO_DW_0_NAME
|
|
|
|
default "GPIO_0"
|
|
|
|
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
|
2015-10-01 13:20:01 +03:00
|
|
|
config GPIO_DW_0_BITS
|
|
|
|
default 8
|
|
|
|
config GPIO_DW_0_BASE_ADDR
|
|
|
|
default 0x90006000
|
|
|
|
config GPIO_DW_0_IRQ
|
|
|
|
default 18
|
|
|
|
config GPIO_DW_0_PRI
|
|
|
|
default 0
|
|
|
|
config GPIO_DW_0_IRQ_SHARED_NAME
|
|
|
|
default SHARED_IRQ_0_NAME if SHARED_IRQ
|
2015-10-01 10:17:45 -07:00
|
|
|
endif
|
2015-09-20 14:26:41 -04:00
|
|
|
endif
|
2015-09-25 15:30:22 -07:00
|
|
|
|
|
|
|
if PINMUX
|
|
|
|
config PINMUX_BASE
|
|
|
|
default 0x00000000
|
|
|
|
config PINMUX_NUM_PINS
|
|
|
|
default 20
|
|
|
|
config PINMUX_BASE
|
|
|
|
default 0x00000000
|
|
|
|
config PINMUX_GALILEO_EXP0_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default GPIO_PCAL9535A_0_DEV_NAME
|
2015-09-25 15:30:22 -07:00
|
|
|
config PINMUX_GALILEO_EXP1_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default GPIO_PCAL9535A_1_DEV_NAME
|
2015-09-25 15:30:22 -07:00
|
|
|
config PINMUX_GALILEO_EXP2_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default GPIO_PCAL9535A_2_DEV_NAME
|
2015-09-25 15:30:22 -07:00
|
|
|
config PINMUX_GALILEO_PWM0_NAME
|
2015-10-01 10:17:45 -07:00
|
|
|
default PWM_PCA9685_0_DEV_NAME
|
2015-10-01 10:59:35 -07:00
|
|
|
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
|
2015-10-01 10:17:45 -07:00
|
|
|
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
|
2015-09-25 15:30:22 -07:00
|
|
|
endif
|
2015-09-30 14:53:03 +03:00
|
|
|
|
2015-10-12 14:39:43 +03:00
|
|
|
if SPI
|
|
|
|
config SPI_INTEL
|
|
|
|
def_bool y
|
2015-10-03 10:14:34 -04:00
|
|
|
|
2015-10-12 14:39:43 +03:00
|
|
|
config SPI_INTEL_PORT_0
|
|
|
|
def_bool y
|
|
|
|
config SPI_INTEL_PORT_0_DRV_NAME
|
|
|
|
default "SPI0"
|
2015-09-30 14:53:03 +03:00
|
|
|
config SPI_INTEL_PORT_0_BUS
|
|
|
|
default 0
|
|
|
|
config SPI_INTEL_PORT_0_DEV
|
|
|
|
default 21
|
|
|
|
config SPI_INTEL_PORT_0_FUNCTION
|
|
|
|
default 0
|
|
|
|
config SPI_INTEL_PORT_0_REGS
|
|
|
|
default 0x90009000
|
|
|
|
config SPI_INTEL_PORT_0_IRQ
|
|
|
|
default 16
|
|
|
|
config SPI_INTEL_PORT_0_PRI
|
|
|
|
default 0
|
|
|
|
config SPI_INTEL_CS_GPIO
|
|
|
|
def_bool y
|
|
|
|
config SPI_INTEL_PORT_0_CS_GPIO_PORT
|
|
|
|
default GPIO_DW_0_NAME
|
|
|
|
config SPI_INTEL_PORT_0_CS_GPIO_PIN
|
|
|
|
default 0
|
2015-10-12 14:39:43 +03:00
|
|
|
|
|
|
|
config SPI_INTEL_PORT_1
|
|
|
|
def_bool y
|
|
|
|
config SPI_INTEL_PORT_1_DRV_NAME
|
|
|
|
default "SPI1"
|
2015-09-30 14:53:03 +03:00
|
|
|
config SPI_INTEL_PORT_1_BUS
|
|
|
|
default 0
|
|
|
|
config SPI_INTEL_PORT_1_DEV
|
|
|
|
default 21
|
|
|
|
config SPI_INTEL_PORT_1_FUNCTION
|
|
|
|
default 1
|
2015-10-09 12:58:12 +03:00
|
|
|
config SPI_INTEL_PORT_1_REGS
|
2015-09-30 14:53:03 +03:00
|
|
|
default 0x90008000
|
2015-10-09 12:58:12 +03:00
|
|
|
config SPI_INTEL_PORT_1_IRQ
|
2015-09-30 14:53:03 +03:00
|
|
|
default 17
|
2015-10-09 12:58:12 +03:00
|
|
|
config SPI_INTEL_PORT_1_PRI
|
2015-09-30 14:53:03 +03:00
|
|
|
default 0
|
2015-10-12 14:39:43 +03:00
|
|
|
endif # SPI
|
2015-10-02 14:09:41 +03:00
|
|
|
|
|
|
|
if NS16550
|
|
|
|
config NS16550_PORT_0_BASE_ADDR
|
|
|
|
default 0x9000f000
|
|
|
|
config NS16550_PORT_1_BASE_ADDR
|
|
|
|
default 0x9000b000
|
|
|
|
endif
|
2015-10-12 14:31:45 +03:00
|
|
|
|
|
|
|
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
|