Skip to content

Commit 66049b3

Browse files
Heikki KrogerusAndi Shyti
authored andcommitted
i2c: designware: Group all DesignWare drivers under a single option
There are quite a few drivers and options for the DesignWare I2C adapter in the Kconfig. Grouping all of them under the I2C_DESIGNWARE_CORE. That makes the menuconfig a bit more easier to understand. Signed-off-by: Heikki Krogerus <[email protected]> Acked-by: Jarkko Nikula <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 4b09647 commit 66049b3

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

drivers/i2c/busses/Kconfig

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -559,28 +559,33 @@ config I2C_DAVINCI
559559
For details please see http://www.ti.com/davinci
560560

561561
config I2C_DESIGNWARE_CORE
562-
tristate
562+
tristate "Synopsys DesignWare I2C adapter"
563563
select REGMAP
564+
help
565+
This option enables support for the Synopsys DesignWare I2C adapter.
566+
This driver includes support for the I2C host on the Synopsys
567+
Designware I2C adapter.
568+
569+
To compile the driver as a module, choose M here: the module will be
570+
called i2c-designware-core.
571+
572+
if I2C_DESIGNWARE_CORE
564573

565574
config I2C_DESIGNWARE_SLAVE
566575
bool "Synopsys DesignWare Slave"
567-
depends on I2C_DESIGNWARE_CORE
568576
select I2C_SLAVE
569577
help
570578
If you say yes to this option, support will be included for the
571579
Synopsys DesignWare I2C slave adapter.
572580

573-
This is not a standalone module, this module compiles together with
574-
i2c-designware-core.
575-
576581
config I2C_DESIGNWARE_PLATFORM
577-
tristate "Synopsys DesignWare Platform"
582+
tristate "Synopsys DesignWare Platform driver"
578583
depends on (ACPI && COMMON_CLK) || !ACPI
579-
select I2C_DESIGNWARE_CORE
580584
select MFD_SYSCON if MIPS_BAIKAL_T1
585+
default I2C_DESIGNWARE_CORE
581586
help
582587
If you say yes to this option, support will be included for the
583-
Synopsys DesignWare I2C adapter.
588+
Synopsys DesignWare I2C adapters on the platform bus.
584589

585590
This driver can also be built as a module. If so, the module
586591
will be called i2c-designware-platform.
@@ -613,17 +618,19 @@ config I2C_DESIGNWARE_BAYTRAIL
613618
a BayTrail system using the AXP288.
614619

615620
config I2C_DESIGNWARE_PCI
616-
tristate "Synopsys DesignWare PCI"
621+
tristate "Synopsys DesignWare PCI driver"
617622
depends on PCI
618-
select I2C_DESIGNWARE_CORE
619623
select I2C_CCGX_UCSI
620624
help
621625
If you say yes to this option, support will be included for the
622-
Synopsys DesignWare I2C adapter. Only master mode is supported.
626+
Synopsys DesignWare I2C adapters on the PCI bus. Only master mode is
627+
supported.
623628

624629
This driver can also be built as a module. If so, the module
625630
will be called i2c-designware-pci.
626631

632+
endif
633+
627634
config I2C_DIGICOLOR
628635
tristate "Conexant Digicolor I2C driver"
629636
depends on ARCH_DIGICOLOR || COMPILE_TEST

0 commit comments

Comments
 (0)