update Kconfig to remove the need of some of the ifdef stuff in the sccb.c file and show the setting only when hardware is selected
This commit is contained in:
15
Kconfig
15
Kconfig
@@ -21,16 +21,21 @@ config OV3660_SUPPORT
|
||||
Enable this option if you want to use the OV3360.
|
||||
Disable this option to safe memory.
|
||||
|
||||
choice SCCB_HARDWARE_I2C
|
||||
bool "Use hardware I2C0/I2C1 for SCCB"
|
||||
default SCCB_HARDWARE_I2C1
|
||||
config SCCB_HARDWARE_I2C
|
||||
bool "Use hardware I2C for SCCB"
|
||||
default y
|
||||
help
|
||||
Enable this option if you want to use hardware I2C to control the camera.
|
||||
Disable this option to use software I2C.
|
||||
|
||||
choice SCCB_HARDWARE_I2C_PORT
|
||||
bool "I2C peripheral to use for SCCB"
|
||||
depends on SCCB_HARDWARE_I2C
|
||||
default SCCB_HARDWARE_I2C1
|
||||
|
||||
config SCCB_HARDWARE_I2C0
|
||||
config SCCB_HARDWARE_I2C_PORT0
|
||||
bool "I2C0"
|
||||
config SCCB_HARDWARE_I2C1
|
||||
config SCCB_HARDWARE_I2C_PORT1
|
||||
bool "I2C1"
|
||||
|
||||
endchoice
|
||||
|
||||
Reference in New Issue
Block a user