Skip to content

Commit 070ff56

Browse files
[nrf fromlist] drivers: i2c: i2c_nrfx_twis: use standard instantiation
Removed Kconfig symbols for each TWIS instance which are no longer needed. Upstream PR #: 98569 Signed-off-by: Adam Kondraciuk <[email protected]>
1 parent ad761ff commit 070ff56

File tree

4 files changed

+2
-216
lines changed

4 files changed

+2
-216
lines changed

drivers/i2c/Kconfig.nrfx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,7 @@ config I2C_NRFX_TWIS
3838
depends on DT_HAS_NORDIC_NRF_TWIS_ENABLED
3939
depends on I2C_TARGET
4040
depends on I2C_TARGET_BUFFER_MODE
41-
select NRFX_TWIS0 if HAS_HW_NRF_TWIS0
42-
select NRFX_TWIS1 if HAS_HW_NRF_TWIS1
43-
select NRFX_TWIS2 if HAS_HW_NRF_TWIS2
44-
select NRFX_TWIS3 if HAS_HW_NRF_TWIS3
45-
select NRFX_TWIS20 if HAS_HW_NRF_TWIS20
46-
select NRFX_TWIS21 if HAS_HW_NRF_TWIS21
47-
select NRFX_TWIS22 if HAS_HW_NRF_TWIS22
48-
select NRFX_TWIS23 if HAS_HW_NRF_TWIS23
49-
select NRFX_TWIS24 if HAS_HW_NRF_TWIS24
50-
select NRFX_TWIS30 if HAS_HW_NRF_TWIS30
51-
select NRFX_TWIS130 if HAS_HW_NRF_TWIS130
52-
select NRFX_TWIS131 if HAS_HW_NRF_TWIS131
53-
select NRFX_TWIS133 if HAS_HW_NRF_TWIS133
54-
select NRFX_TWIS134 if HAS_HW_NRF_TWIS134
55-
select NRFX_TWIS135 if HAS_HW_NRF_TWIS135
56-
select NRFX_TWIS136 if HAS_HW_NRF_TWIS136
57-
select NRFX_TWIS137 if HAS_HW_NRF_TWIS137
41+
select NRFX_TWIS
5842

5943
if I2C_NRFX_TWIS
6044

modules/hal_nordic/nrfx/Kconfig

Lines changed: 1 addition & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -663,97 +663,7 @@ config NRFX_TWIM
663663
bool "NRFX driver for TWIM peripheral"
664664

665665
config NRFX_TWIS
666-
bool
667-
668-
config NRFX_TWIS0
669-
bool "TWIS0 driver instance"
670-
depends on $(dt_nodelabel_exists,i2c0) && !SOC_SERIES_NRF51X
671-
select NRFX_TWIS
672-
673-
config NRFX_TWIS1
674-
bool "TWIS1 driver instance"
675-
depends on $(dt_nodelabel_exists,i2c1) && !SOC_SERIES_NRF51X
676-
select NRFX_TWIS
677-
678-
config NRFX_TWIS2
679-
bool "TWIS2 driver instance"
680-
depends on $(dt_nodelabel_exists,i2c2)
681-
select NRFX_TWIS
682-
683-
config NRFX_TWIS3
684-
bool "TWIS3 driver instance"
685-
depends on $(dt_nodelabel_exists,i2c3)
686-
select NRFX_TWIS
687-
688-
config NRFX_TWIS20
689-
bool "TWIS20 driver instance"
690-
depends on $(dt_nodelabel_exists,i2c20)
691-
select NRFX_TWIS
692-
693-
config NRFX_TWIS21
694-
bool "TWIS21 driver instance"
695-
depends on $(dt_nodelabel_exists,i2c21)
696-
select NRFX_TWIS
697-
698-
config NRFX_TWIS22
699-
bool "TWIS22 driver instance"
700-
depends on $(dt_nodelabel_exists,i2c22)
701-
select NRFX_TWIS
702-
703-
config NRFX_TWIS23
704-
bool "TWIS23 driver instance"
705-
depends on $(dt_nodelabel_exists,i2c23)
706-
select NRFX_TWIS
707-
708-
config NRFX_TWIS24
709-
bool "TWIS24 driver instance"
710-
depends on $(dt_nodelabel_exists,i2c24)
711-
select NRFX_TWIS
712-
713-
config NRFX_TWIS30
714-
bool "TWIS30 driver instance"
715-
depends on $(dt_nodelabel_exists,i2c30)
716-
select NRFX_TWIS
717-
718-
config NRFX_TWIS130
719-
bool "TWIS130 driver instance"
720-
depends on $(dt_nodelabel_exists,i2c130)
721-
select NRFX_TWIS
722-
723-
config NRFX_TWIS131
724-
bool "TWIS131 driver instance"
725-
depends on $(dt_nodelabel_exists,i2c131)
726-
select NRFX_TWIS
727-
728-
config NRFX_TWIS132
729-
bool "TWIS132 driver instance"
730-
depends on $(dt_nodelabel_exists,i2c132)
731-
select NRFX_TWIS
732-
733-
config NRFX_TWIS133
734-
bool "TWIS133 driver instance"
735-
depends on $(dt_nodelabel_exists,i2c133)
736-
select NRFX_TWIS
737-
738-
config NRFX_TWIS134
739-
bool "TWIS134 driver instance"
740-
depends on $(dt_nodelabel_exists,i2c134)
741-
select NRFX_TWIS
742-
743-
config NRFX_TWIS135
744-
bool "TWIS135 driver instance"
745-
depends on $(dt_nodelabel_exists,i2c135)
746-
select NRFX_TWIS
747-
748-
config NRFX_TWIS136
749-
bool "TWIS136 driver instance"
750-
depends on $(dt_nodelabel_exists,i2c136)
751-
select NRFX_TWIS
752-
753-
config NRFX_TWIS137
754-
bool "TWIS137 driver instance"
755-
depends on $(dt_nodelabel_exists,i2c137)
756-
select NRFX_TWIS
666+
bool "NRFX driver for TWIS peripheral"
757667

758668
config NRFX_UART
759669
bool

modules/hal_nordic/nrfx/nrfx_kconfig.h

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -625,60 +625,6 @@
625625
#ifdef CONFIG_NRFX_TWIS_LOG
626626
#define NRFX_TWIS_CONFIG_LOG_ENABLED 1
627627
#endif
628-
#ifdef CONFIG_NRFX_TWIS0
629-
#define NRFX_TWIS0_ENABLED 1
630-
#endif
631-
#ifdef CONFIG_NRFX_TWIS1
632-
#define NRFX_TWIS1_ENABLED 1
633-
#endif
634-
#ifdef CONFIG_NRFX_TWIS2
635-
#define NRFX_TWIS2_ENABLED 1
636-
#endif
637-
#ifdef CONFIG_NRFX_TWIS3
638-
#define NRFX_TWIS3_ENABLED 1
639-
#endif
640-
#ifdef CONFIG_NRFX_TWIS20
641-
#define NRFX_TWIS20_ENABLED 1
642-
#endif
643-
#ifdef CONFIG_NRFX_TWIS21
644-
#define NRFX_TWIS21_ENABLED 1
645-
#endif
646-
#ifdef CONFIG_NRFX_TWIS22
647-
#define NRFX_TWIS22_ENABLED 1
648-
#endif
649-
#ifdef CONFIG_NRFX_TWIS23
650-
#define NRFX_TWIS23_ENABLED 1
651-
#endif
652-
#ifdef CONFIG_NRFX_TWIS24
653-
#define NRFX_TWIS24_ENABLED 1
654-
#endif
655-
#ifdef CONFIG_NRFX_TWIS30
656-
#define NRFX_TWIS30_ENABLED 1
657-
#endif
658-
#ifdef CONFIG_NRFX_TWIS130
659-
#define NRFX_TWIS130_ENABLED 1
660-
#endif
661-
#ifdef CONFIG_NRFX_TWIS131
662-
#define NRFX_TWIS131_ENABLED 1
663-
#endif
664-
#ifdef CONFIG_NRFX_TWIS132
665-
#define NRFX_TWIS132_ENABLED 1
666-
#endif
667-
#ifdef CONFIG_NRFX_TWIS133
668-
#define NRFX_TWIS133_ENABLED 1
669-
#endif
670-
#ifdef CONFIG_NRFX_TWIS134
671-
#define NRFX_TWIS134_ENABLED 1
672-
#endif
673-
#ifdef CONFIG_NRFX_TWIS135
674-
#define NRFX_TWIS135_ENABLED 1
675-
#endif
676-
#ifdef CONFIG_NRFX_TWIS136
677-
#define NRFX_TWIS136_ENABLED 1
678-
#endif
679-
#ifdef CONFIG_NRFX_TWIS137
680-
#define NRFX_TWIS137_ENABLED 1
681-
#endif
682628

683629
#ifdef CONFIG_NRFX_UART
684630
#define NRFX_UART_ENABLED 1

soc/nordic/common/Kconfig.peripherals

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -354,60 +354,6 @@ config HAS_HW_NRF_TWI0
354354
config HAS_HW_NRF_TWI1
355355
def_bool $(dt_nodelabel_enabled_with_compat,i2c1,$(DT_COMPAT_NORDIC_NRF_TWI))
356356

357-
config HAS_HW_NRF_TWIS0
358-
def_bool $(dt_nodelabel_enabled_with_compat,i2c0,$(DT_COMPAT_NORDIC_NRF_TWIS))
359-
360-
config HAS_HW_NRF_TWIS1
361-
def_bool $(dt_nodelabel_enabled_with_compat,i2c1,$(DT_COMPAT_NORDIC_NRF_TWIS))
362-
363-
config HAS_HW_NRF_TWIS2
364-
def_bool $(dt_nodelabel_enabled_with_compat,i2c2,$(DT_COMPAT_NORDIC_NRF_TWIS))
365-
366-
config HAS_HW_NRF_TWIS3
367-
def_bool $(dt_nodelabel_enabled_with_compat,i2c3,$(DT_COMPAT_NORDIC_NRF_TWIS))
368-
369-
config HAS_HW_NRF_TWIS20
370-
def_bool $(dt_nodelabel_enabled_with_compat,i2c20,$(DT_COMPAT_NORDIC_NRF_TWIS))
371-
372-
config HAS_HW_NRF_TWIS21
373-
def_bool $(dt_nodelabel_enabled_with_compat,i2c21,$(DT_COMPAT_NORDIC_NRF_TWIS))
374-
375-
config HAS_HW_NRF_TWIS22
376-
def_bool $(dt_nodelabel_enabled_with_compat,i2c22,$(DT_COMPAT_NORDIC_NRF_TWIS))
377-
378-
config HAS_HW_NRF_TWIS23
379-
def_bool $(dt_nodelabel_enabled_with_compat,i2c23,$(DT_COMPAT_NORDIC_NRF_TWIS))
380-
381-
config HAS_HW_NRF_TWIS24
382-
def_bool $(dt_nodelabel_enabled_with_compat,i2c24,$(DT_COMPAT_NORDIC_NRF_TWIS))
383-
384-
config HAS_HW_NRF_TWIS30
385-
def_bool $(dt_nodelabel_enabled_with_compat,i2c30,$(DT_COMPAT_NORDIC_NRF_TWIS))
386-
387-
config HAS_HW_NRF_TWIS130
388-
def_bool $(dt_nodelabel_enabled_with_compat,i2c130,$(DT_COMPAT_NORDIC_NRF_TWIS))
389-
390-
config HAS_HW_NRF_TWIS131
391-
def_bool $(dt_nodelabel_enabled_with_compat,i2c131,$(DT_COMPAT_NORDIC_NRF_TWIS))
392-
393-
config HAS_HW_NRF_TWIS132
394-
def_bool $(dt_nodelabel_enabled_with_compat,i2c132,$(DT_COMPAT_NORDIC_NRF_TWIS))
395-
396-
config HAS_HW_NRF_TWIS133
397-
def_bool $(dt_nodelabel_enabled_with_compat,i2c133,$(DT_COMPAT_NORDIC_NRF_TWIS))
398-
399-
config HAS_HW_NRF_TWIS134
400-
def_bool $(dt_nodelabel_enabled_with_compat,i2c134,$(DT_COMPAT_NORDIC_NRF_TWIS))
401-
402-
config HAS_HW_NRF_TWIS135
403-
def_bool $(dt_nodelabel_enabled_with_compat,i2c135,$(DT_COMPAT_NORDIC_NRF_TWIS))
404-
405-
config HAS_HW_NRF_TWIS136
406-
def_bool $(dt_nodelabel_enabled_with_compat,i2c136,$(DT_COMPAT_NORDIC_NRF_TWIS))
407-
408-
config HAS_HW_NRF_TWIS137
409-
def_bool $(dt_nodelabel_enabled_with_compat,i2c137,$(DT_COMPAT_NORDIC_NRF_TWIS))
410-
411357
config HAS_HW_NRF_UART0
412358
def_bool $(dt_nodelabel_enabled_with_compat,uart0,$(DT_COMPAT_NORDIC_NRF_UART))
413359

0 commit comments

Comments
 (0)