X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=blobdiff_plain;f=drivers%2Fi2c%2Fbusses%2FKconfig;h=01e5f49a0c836cdf3d2d7428220e973315cef762;hp=646068e5100bac8c6e3e9840bd0ac53596e4728a;hb=677ea8d595b6d546394b43a49794d6e9bca1f73d;hpb=5e4fcd2c556e25e1b6787dcd0c97b06e29e42292 diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 646068e5100b..01e5f49a0c83 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -838,43 +838,84 @@ config SCx200_I2C tristate "NatSemi SCx200 I2C using GPIO pins (DEPRECATED)" depends on SCx200_GPIO select I2C_ALGOBIT - help - Enable the use of two GPIO pins of a SCx200 processor as an I2C bus. - - If you don't know what to do here, say N. - - This support is also available as a module. If so, the module - will be called scx200_i2c. - - This driver is deprecated and will be dropped soon. Use i2c-gpio - (or scx200_acb) instead. - -config SCx200_I2C_SCL - int "GPIO pin used for SCL" - depends on SCx200_I2C - default "12" - help - Enter the GPIO pin number used for the SCL signal. This value can - also be specified with a module parameter. -config SCx200_I2C_SDA - int "GPIO pin used for SDA" - depends on SCx200_I2C - default "13" - help - Enter the GPIO pin number used for the SSA signal. This value can - also be specified with a module parameter. - -config SCx200_ACB - tristate "Geode ACCESS.bus support" - depends on X86_32 && PCI +config I2C_RK29 + tristate "RK29 i2c interface (I2C)" + depends on ARCH_RK29 + default y help - Enable the use of the ACCESS.bus controllers on the Geode SCx200 and - SC1100 processors and the CS5535 and CS5536 Geode companion devices. - - If you don't know what to do here, say N. - - This support is also available as a module. If so, the module - will be called scx200_acb. - + This supports the use of the I2C interface(i2c0 ~ i2c3) on rk29 processors. + +if I2C_RK29 + comment "Now, there are four I2C interfaces selected by developer." + + config I2C0_RK29 + bool "RK29 I2C0 interface support" + default y + depends on ARCH_RK29 + help + This supports the use of the I2C0 interface on rk29 processors. + if I2C0_RK29 + choice + prompt "I2C transfer mode select" + config RK29_I2C0_CONTROLLER + bool "With i2c controller" + config RK29_I2C0_GPIO + bool "Simulation with GPIO" + endchoice + endif + config I2C1_RK29 + bool "RK29 I2C1 interface support" + default y + depends on ARCH_RK29 + help + This supports the use of the I2C1 interface on rk29 processors. + if I2C1_RK29 + choice + prompt "I2C transfer mode select" + config RK29_I2C1_CONTROLLER + bool "With i2c controller" + config RK29_I2C1_GPIO + bool "Simulation with GPIO" + endchoice + endif + + config I2C2_RK29 + bool "RK29 I2C2 interface support" + default y + depends on ARCH_RK29 + help + This supports the use of the I2C2 interface on rk29 processors. + if I2C2_RK29 + choice + prompt "I2C transfer mode select" + config RK29_I2C2_CONTROLLER + bool "With i2c controller" + config RK29_I2C2_GPIO + bool "Simulation with GPIO" + endchoice + endif + + config I2C3_RK29 + bool "RK29 I2C3 interface support" + default y + depends on ARCH_RK29 && !UART3_CTS_RTS_RK29 + help + This supports the use of the I2C3 interface on rk29 processors. + if I2C3_RK29 + choice + prompt "I2C transfer mode select" + config RK29_I2C3_CONTROLLER + bool "With i2c controller" + config RK29_I2C3_GPIO + bool "Simulation with GPIO" + endchoice + endif +endif +config I2C_DEV_RK29 + tristate "RK29 I2C device interface support" + default n + depends on I2C_RK29 + help + Nothing endmenu