Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 | # Kconfig - I2C configuration options
#
# Copyright (c) 2015 Intel Corporation
#
# 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.
#
#
# I2C options
#
menuconfig I2C
bool
prompt "I2C Drivers"
default n
help
Enable I2C Driver Configuration
config I2C_INIT_PRIORITY
int
depends on I2C
default 60
prompt "Init priority"
help
I2C device driver initialization priority.
config I2C_STATUS_DELAY
int "Delay for controller response"
depends on I2C
default 1000
config I2C_CLOCK_SPEED
int "Set the clock speed for I2C"
default 32
depends on I2C
config I2C_DEBUG
bool "Enable I2C debug options"
default n
depends on I2C
help
This option enables the debug features for I2C connections
config I2C_DW
bool "Design Ware I2C support"
depends on I2C
default n
help
Enable Design Ware I2C support on the selected platform
choice
prompt "IRQ Trigger Condition"
default I2C_DW_IRQ_RISING_EDGE
depends on I2C_DW
config I2C_DW_IRQ_FALLING_EDGE
bool "Falling Edge"
help
This option signifies that the controller
uses falling edge interrupt.
config I2C_DW_IRQ_RISING_EDGE
bool "Rising Edge"
help
This option signifies that the controller
uses rising edge interrupt.
config I2C_DW_IRQ_LEVEL_HIGH
bool "Level High"
help
This option signifies that the controller
uses level high interrupt.
config I2C_DW_IRQ_LEVEL_LOW
bool "Level Low"
help
This option signifies that the controller
uses level low interrupt.
endchoice
config I2C_DW_SHARED_IRQ
bool
default n
depends on I2C_DW
config I2C_DW_VENDOR_ID
hex "PCI Vendor ID of the controllers"
depends on I2C_DW && PCI
default 0x8086
config I2C_DW_DEVICE_ID
hex "PCI Device ID of the controllers"
depends on I2C_DW && PCI
default 0x934
config I2C_DW_CLASS
hex "PCI device class"
depends on I2C_DW && PCI
default 0x0C
config I2C_DW_0
bool "Enable I2C0"
default n
depends on I2C_DW
config I2C_DW_0_BASE
hex "Base address for I2C0"
depends on I2C_DW_0
config I2C_DW_0_NAME
string "Select a name for finding the device"
depends on I2C_DW_0
default "I2C0"
choice
prompt "I2C0 Interrupts via"
default I2C_DW_0_IRQ_DIRECT
depends on I2C_DW_0
config I2C_DW_0_IRQ_DIRECT
bool "Direct Hardware Interrupt"
help
When interrupts fire, the driver's ISR function is being called directly.
config I2C_DW_0_IRQ_SHARED
bool "Shared IRQ"
depends on SHARED_IRQ
select I2C_DW_SHARED_IRQ
help
When interrupts fire, the shared IRQ driver is notified. Then the shared IRQ
driver dispatches the interrupt to other drivers.
endchoice
config I2C_DW_0_IRQ_SHARED_NAME
string "Device name for Shared IRQ"
depends on I2C_DW_0 && I2C_DW_0_IRQ_SHARED
help
Specify the device name for the shared IRQ driver. It is used to register
this driver with the shared IRQ driver, so interrupts can be dispatched
correctly.
config I2C_DW_0_IRQ
int "Controller interrupt"
depends on I2C_DW_0 && I2C_DW_0_IRQ_DIRECT
config I2C_DW_0_INT_PRIORITY
int "Controller interrupt priority"
depends on I2C_DW_0 && I2C_DW_0_IRQ_DIRECT
help
IRQ priority
config I2C_DW_0_DEFAULT_CFG
hex "I2C default configuration"
depends on I2C_DW_0
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_DW_0_BUS
int "PCI Bus number"
depends on I2C_DW_0 && PCI
config I2C_DW_0_DEV
int "PCI device number"
depends on I2C_DW_0 && PCI
config I2C_DW_0_FUNCTION
int "PCI function number"
depends on I2C_DW_0 && PCI
config I2C_DW_0_BAR
int "PCI BAR number"
depends on I2C_DW_0 && PCI
config I2C_DW_1
bool "Enable I2C1"
default n
depends on I2C_DW
config I2C_DW_1_BASE
hex "Base address for I2C1"
depends on I2C_DW_1
config I2C_DW_1_NAME
string "Select a name for finding the device"
depends on I2C_DW_1
default "I2C1"
config I2C_DW_1_IRQ
int "Controller interrupt"
depends on I2C_DW_1
config I2C_DW_1_INT_PRIORITY
int "Controller interrupt priority"
depends on I2C_DW_1
help
IRQ priority
config I2C_DW_1_DEFAULT_CFG
hex "I2C default configuration"
depends on I2C_DW_1
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_QUARK_SE_SS
bool "Enable I2C Support on Quark SE Sensor Subsystem (SS)"
default n
depends on SOC_QUARK_SE_SS
depends on I2C
help
This option enables the driver to support the I2C on Quark SE Sensor
Subsystem.
config I2C_QUARK_SE_SS_0
bool "Enable Quark SE SS I2C Port 0"
depends on I2C_QUARK_SE_SS
default n
config I2C_QUARK_SE_SS_0_BASE
hex "Base address for Quark SE SS I2C Port 0"
depends on I2C_QUARK_SE_SS_0
config I2C_QUARK_SE_SS_0_NAME
string "Select a name for finding the device"
depends on I2C_QUARK_SE_SS_0
default "I2C_SS_0"
config I2C_QUARK_SE_SS_0_DEFAULT_CFG
hex "Default Configuration for Quark SE SS I2C Port 0"
depends on I2C_QUARK_SE_SS_0
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_QUARK_SE_SS_1
bool "Enable Quark SE SS I2C Port 1"
depends on I2C_QUARK_SE_SS
default n
config I2C_QUARK_SE_SS_1_BASE
hex "Base address for Quark SE SS I2C Port 1"
depends on I2C_QUARK_SE_SS_1
config I2C_QUARK_SE_SS_1_NAME
string "Select a name for finding the device"
depends on I2C_QUARK_SE_SS_1
default "I2C_SS_1"
config I2C_QUARK_SE_SS_1_DEFAULT_CFG
hex "Default Configuration for Quark SE SS I2C Port 1"
depends on I2C_QUARK_SE_SS_1
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_QMSI
bool "QMSI I2C driver"
depends on QMSI_DRIVERS && I2C
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. For more information about QMSI BSP
see CONFIG_QMSI_DRIVERS.
config I2C_QMSI_0
bool "Enable I2C_0 controller"
default n
depends on I2C_QMSI
config I2C_QMSI_0_NAME
string "I2C_0 device name"
depends on I2C_QMSI_0
default "I2C0"
config I2C_QMSI_0_IRQ
int "IRQ number from I2C_0 controller"
depends on I2C_QMSI_0
config I2C_QMSI_0_INT_PRIORITY
int "Interrupt priority from I2C_0 controller"
depends on I2C_QMSI_0
config I2C_QMSI_1
bool "Enable I2C_1 controller"
default n
depends on I2C_QMSI
config I2C_QMSI_1_NAME
string "I2C_1 device name"
depends on I2C_QMSI_1
default "I2C1"
config I2C_QMSI_1_IRQ
int "IRQ number from I2C_1 controller"
depends on I2C_QMSI_1
config I2C_QMSI_1_INT_PRIORITY
int "Interrupt priority from I2C_1 controller"
depends on I2C_QMSI_1
source "drivers/i2c/Kconfig.atmel_sam3"
|