2015-12-13 18:54:28 +08:00
|
|
|
|
|
|
|
if BOARD_GALILEO
|
|
|
|
|
2017-11-24 23:55:02 +08:00
|
|
|
config BUILD_OUTPUT_STRIPPED
|
|
|
|
def_bool y
|
|
|
|
|
2015-12-13 18:54:28 +08:00
|
|
|
config BOARD
|
2016-05-25 07:17:13 +08:00
|
|
|
default galileo
|
2015-12-13 18:54:28 +08:00
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
config I2C
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config GPIO
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config PWM
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config SPI
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config SHARED_IRQ
|
|
|
|
def_bool y
|
|
|
|
|
2016-04-01 02:48:58 +08:00
|
|
|
config PCI_ENUMERATION
|
|
|
|
def_bool y
|
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
if GPIO && I2C
|
|
|
|
|
|
|
|
config GPIO_PCAL9535A
|
|
|
|
def_bool y
|
|
|
|
|
2016-03-26 05:30:50 +08:00
|
|
|
if GPIO_PCAL9535A
|
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
config GPIO_PCAL9535A_0
|
|
|
|
def_bool y
|
2016-03-26 05:30:50 +08:00
|
|
|
|
|
|
|
if GPIO_PCAL9535A_0
|
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
config GPIO_PCAL9535A_0_DEV_NAME
|
|
|
|
default "EXP0"
|
|
|
|
config GPIO_PCAL9535A_0_I2C_ADDR
|
|
|
|
default 0x25
|
|
|
|
config GPIO_PCAL9535A_0_I2C_MASTER_DEV_NAME
|
2016-05-07 19:53:48 +08:00
|
|
|
default I2C_0_NAME
|
2015-12-13 21:42:27 +08:00
|
|
|
|
2016-03-26 05:30:50 +08:00
|
|
|
endif # GPIO_PCAL9535A_0
|
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
config GPIO_PCAL9535A_1
|
|
|
|
def_bool y
|
2016-03-26 05:30:50 +08:00
|
|
|
|
|
|
|
if GPIO_PCAL9535A_1
|
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
config GPIO_PCAL9535A_1_DEV_NAME
|
|
|
|
default "EXP1"
|
|
|
|
config GPIO_PCAL9535A_1_I2C_ADDR
|
|
|
|
default 0x26
|
|
|
|
config GPIO_PCAL9535A_1_I2C_MASTER_DEV_NAME
|
2016-05-07 19:53:48 +08:00
|
|
|
default I2C_0_NAME
|
2015-12-13 21:42:27 +08:00
|
|
|
|
2016-03-26 05:30:50 +08:00
|
|
|
endif # GPIO_PCAL9535A_1
|
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
config GPIO_PCAL9535A_2
|
|
|
|
def_bool y
|
2016-03-26 05:30:50 +08:00
|
|
|
|
|
|
|
if GPIO_PCAL9535A_2
|
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
config GPIO_PCAL9535A_2_DEV_NAME
|
|
|
|
default "EXP2"
|
|
|
|
config GPIO_PCAL9535A_2_I2C_ADDR
|
|
|
|
default 0x27
|
|
|
|
config GPIO_PCAL9535A_2_I2C_MASTER_DEV_NAME
|
2016-05-07 19:53:48 +08:00
|
|
|
default I2C_0_NAME
|
2015-12-13 21:42:27 +08:00
|
|
|
|
2016-03-26 05:30:50 +08:00
|
|
|
endif # GPIO_PCAL9535A_2
|
|
|
|
|
|
|
|
endif # GPIO_PCAL9535A
|
|
|
|
|
|
|
|
endif # GPIO && I2C
|
|
|
|
|
|
|
|
if PWM && I2C
|
2015-12-13 21:42:27 +08:00
|
|
|
|
|
|
|
config PWM_PCA9685
|
|
|
|
def_bool y
|
|
|
|
|
2016-03-26 05:30:50 +08:00
|
|
|
if PWM_PCA9685
|
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
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
|
2016-05-07 19:53:48 +08:00
|
|
|
default I2C_0_NAME
|
2015-12-13 21:42:27 +08:00
|
|
|
|
2016-03-26 05:30:50 +08:00
|
|
|
endif # PWM_PCA9685_0
|
|
|
|
endif # PWM_PCA9685
|
|
|
|
endif # PWM && I2C
|
2015-12-13 21:42:27 +08:00
|
|
|
|
2016-04-01 02:45:51 +08:00
|
|
|
# SPI uses GPIO pin for CS, so it needs to be initialized after
|
2016-04-06 23:21:28 +08:00
|
|
|
# the gpio_dw driver ( and the pinmux driver for port 1)
|
2016-04-17 05:55:43 +08:00
|
|
|
config SPI_INIT_PRIORITY
|
2016-05-25 07:17:13 +08:00
|
|
|
default 90 if SPI_INTEL
|
2016-04-01 02:45:51 +08:00
|
|
|
|
2015-12-13 21:42:27 +08:00
|
|
|
# Pin multiplexer uses PCAL9535A, needs to be initialized after it
|
|
|
|
config PINMUX_INIT_PRIORITY
|
2016-03-26 05:54:32 +08:00
|
|
|
default 80 if PINMUX
|
2015-12-13 21:42:27 +08:00
|
|
|
|
2015-12-13 18:54:28 +08:00
|
|
|
endif # BOARD_GALILEO
|