2018-02-28 18:27:46 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2018 Intel Corporation
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig I2C_QMSI
|
|
|
|
bool "QMSI I2C driver"
|
|
|
|
depends on QMSI
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enable the QMSI I2C driver.
|
|
|
|
|
|
|
|
This driver is simply a shim driver based on the I2C driver
|
|
|
|
provided by the QMSI BSP.
|
|
|
|
|
|
|
|
if I2C_QMSI
|
|
|
|
|
|
|
|
config I2C_SDA_SETUP
|
|
|
|
int
|
|
|
|
help
|
|
|
|
The delay time of clock rising edge relative to i2c data signal
|
|
|
|
change. The unit is i2c module base clock.
|
|
|
|
|
|
|
|
config I2C_SDA_TX_HOLD
|
|
|
|
int
|
|
|
|
help
|
|
|
|
The hold time on the data signal after a negative edge of i2c clock
|
|
|
|
while i2c acts as transmitter. The unit is i2c module base clock.
|
|
|
|
|
|
|
|
config I2C_SDA_RX_HOLD
|
|
|
|
int
|
|
|
|
help
|
|
|
|
The hold time on the data signal after a negative edge of i2c clock
|
|
|
|
while i2c acts as receiver. The unit is i2c module base clock.
|
|
|
|
|
|
|
|
endif # I2C_QMSI
|
|
|
|
|
|
|
|
|
|
|
|
menuconfig I2C_QMSI_SS
|
|
|
|
bool "QMSI I2C driver for the Sensor Subsystem"
|
|
|
|
depends on QMSI
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enable the Sensor QMSI I2C driver.
|
|
|
|
|
|
|
|
This driver is simply a shim driver based on the I2C driver
|
|
|
|
provided by the QMSI BSP.
|
|
|
|
|
|
|
|
if I2C_QMSI_SS
|
|
|
|
|
|
|
|
config I2C_SS_0
|
|
|
|
bool "Enable I2C_SS_0"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config I2C_SS_0_NAME
|
|
|
|
string "Select a name for finding the device"
|
2018-02-28 22:44:47 +08:00
|
|
|
depends on I2C_SS_0 && !HAS_DTS_I2C
|
2018-02-28 18:27:46 +08:00
|
|
|
default "I2C_SS_0"
|
|
|
|
|
2018-03-01 04:48:15 +08:00
|
|
|
config I2C_SS_0_BITRATE
|
|
|
|
hex "I2C SS 0 default bitrate"
|
2018-02-28 22:44:47 +08:00
|
|
|
depends on I2C_SS_0 && !HAS_DTS_I2C
|
2018-02-28 18:27:46 +08:00
|
|
|
default 0x0
|
|
|
|
help
|
|
|
|
Allows the I2C port to be brought up with a default configuration.
|
|
|
|
This is useful to set if other drivers depend upon using the I2C bus
|
|
|
|
before the application has a chance to custom configure the port.
|
|
|
|
Setting this value does not prohibit the application from customizing
|
|
|
|
the values later. Refer to the I2C datasheet for proper values.
|
|
|
|
|
|
|
|
config I2C_SS_1
|
|
|
|
bool "Enable I2C SS Port 1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config I2C_SS_1_NAME
|
|
|
|
string "Select a name for finding the device"
|
2018-02-28 22:44:47 +08:00
|
|
|
depends on I2C_SS_1 && !HAS_DTS_I2C
|
2018-02-28 18:27:46 +08:00
|
|
|
default "I2C_SS_1"
|
|
|
|
|
2018-03-01 04:48:15 +08:00
|
|
|
config I2C_SS_1_BITRATE
|
|
|
|
hex "I2C SS 1 default bitrate"
|
2018-02-28 22:44:47 +08:00
|
|
|
depends on I2C_SS_1 && !HAS_DTS_I2C
|
2018-02-28 18:27:46 +08:00
|
|
|
default 0x0
|
|
|
|
help
|
|
|
|
Allows the I2C port to be brought up with a default configuration.
|
|
|
|
This is useful to set if other drivers depend upon using the I2C bus
|
|
|
|
before the application has a chance to custom configure the port.
|
|
|
|
Setting this value does not prohibit the application from customizing
|
|
|
|
the values later. Refer to the I2C datasheet for proper values.
|
|
|
|
|
|
|
|
config I2C_SS_SDA_HOLD
|
|
|
|
int
|
|
|
|
help
|
|
|
|
The hold time on the data signal after a negative edge of i2c clock.
|
|
|
|
The unit is i2c module base clock.
|
|
|
|
|
|
|
|
config I2C_SS_SDA_SETUP
|
|
|
|
int
|
|
|
|
help
|
|
|
|
The delay time of clock rising edge relative to i2c data signal
|
|
|
|
change. The unit is i2c module base clock.
|
|
|
|
|
|
|
|
endif # I2C_QMSI_SS
|