Skip to content

Commit 2aa339c

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 8e62d56 commit 2aa339c

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
@@ -634,97 +634,7 @@ config NRFX_TWIM
634634
bool "NRFX driver for TWIM peripheral"
635635

636636
config NRFX_TWIS
637-
bool
638-
639-
config NRFX_TWIS0
640-
bool "TWIS0 driver instance"
641-
depends on $(dt_nodelabel_exists,i2c0) && !SOC_SERIES_NRF51X
642-
select NRFX_TWIS
643-
644-
config NRFX_TWIS1
645-
bool "TWIS1 driver instance"
646-
depends on $(dt_nodelabel_exists,i2c1) && !SOC_SERIES_NRF51X
647-
select NRFX_TWIS
648-
649-
config NRFX_TWIS2
650-
bool "TWIS2 driver instance"
651-
depends on $(dt_nodelabel_exists,i2c2)
652-
select NRFX_TWIS
653-
654-
config NRFX_TWIS3
655-
bool "TWIS3 driver instance"
656-
depends on $(dt_nodelabel_exists,i2c3)
657-
select NRFX_TWIS
658-
659-
config NRFX_TWIS20
660-
bool "TWIS20 driver instance"
661-
depends on $(dt_nodelabel_exists,i2c20)
662-
select NRFX_TWIS
663-
664-
config NRFX_TWIS21
665-
bool "TWIS21 driver instance"
666-
depends on $(dt_nodelabel_exists,i2c21)
667-
select NRFX_TWIS
668-
669-
config NRFX_TWIS22
670-
bool "TWIS22 driver instance"
671-
depends on $(dt_nodelabel_exists,i2c22)
672-
select NRFX_TWIS
673-
674-
config NRFX_TWIS23
675-
bool "TWIS23 driver instance"
676-
depends on $(dt_nodelabel_exists,i2c23)
677-
select NRFX_TWIS
678-
679-
config NRFX_TWIS24
680-
bool "TWIS24 driver instance"
681-
depends on $(dt_nodelabel_exists,i2c24)
682-
select NRFX_TWIS
683-
684-
config NRFX_TWIS30
685-
bool "TWIS30 driver instance"
686-
depends on $(dt_nodelabel_exists,i2c30)
687-
select NRFX_TWIS
688-
689-
config NRFX_TWIS130
690-
bool "TWIS130 driver instance"
691-
depends on $(dt_nodelabel_exists,i2c130)
692-
select NRFX_TWIS
693-
694-
config NRFX_TWIS131
695-
bool "TWIS131 driver instance"
696-
depends on $(dt_nodelabel_exists,i2c131)
697-
select NRFX_TWIS
698-
699-
config NRFX_TWIS132
700-
bool "TWIS132 driver instance"
701-
depends on $(dt_nodelabel_exists,i2c132)
702-
select NRFX_TWIS
703-
704-
config NRFX_TWIS133
705-
bool "TWIS133 driver instance"
706-
depends on $(dt_nodelabel_exists,i2c133)
707-
select NRFX_TWIS
708-
709-
config NRFX_TWIS134
710-
bool "TWIS134 driver instance"
711-
depends on $(dt_nodelabel_exists,i2c134)
712-
select NRFX_TWIS
713-
714-
config NRFX_TWIS135
715-
bool "TWIS135 driver instance"
716-
depends on $(dt_nodelabel_exists,i2c135)
717-
select NRFX_TWIS
718-
719-
config NRFX_TWIS136
720-
bool "TWIS136 driver instance"
721-
depends on $(dt_nodelabel_exists,i2c136)
722-
select NRFX_TWIS
723-
724-
config NRFX_TWIS137
725-
bool "TWIS137 driver instance"
726-
depends on $(dt_nodelabel_exists,i2c137)
727-
select NRFX_TWIS
637+
bool "NRFX driver for TWIS peripheral"
728638

729639
config NRFX_UART
730640
bool

modules/hal_nordic/nrfx/nrfx_kconfig.h

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -607,60 +607,6 @@
607607
#ifdef CONFIG_NRFX_TWIS_LOG
608608
#define NRFX_TWIS_CONFIG_LOG_ENABLED 1
609609
#endif
610-
#ifdef CONFIG_NRFX_TWIS0
611-
#define NRFX_TWIS0_ENABLED 1
612-
#endif
613-
#ifdef CONFIG_NRFX_TWIS1
614-
#define NRFX_TWIS1_ENABLED 1
615-
#endif
616-
#ifdef CONFIG_NRFX_TWIS2
617-
#define NRFX_TWIS2_ENABLED 1
618-
#endif
619-
#ifdef CONFIG_NRFX_TWIS3
620-
#define NRFX_TWIS3_ENABLED 1
621-
#endif
622-
#ifdef CONFIG_NRFX_TWIS20
623-
#define NRFX_TWIS20_ENABLED 1
624-
#endif
625-
#ifdef CONFIG_NRFX_TWIS21
626-
#define NRFX_TWIS21_ENABLED 1
627-
#endif
628-
#ifdef CONFIG_NRFX_TWIS22
629-
#define NRFX_TWIS22_ENABLED 1
630-
#endif
631-
#ifdef CONFIG_NRFX_TWIS23
632-
#define NRFX_TWIS23_ENABLED 1
633-
#endif
634-
#ifdef CONFIG_NRFX_TWIS24
635-
#define NRFX_TWIS24_ENABLED 1
636-
#endif
637-
#ifdef CONFIG_NRFX_TWIS30
638-
#define NRFX_TWIS30_ENABLED 1
639-
#endif
640-
#ifdef CONFIG_NRFX_TWIS130
641-
#define NRFX_TWIS130_ENABLED 1
642-
#endif
643-
#ifdef CONFIG_NRFX_TWIS131
644-
#define NRFX_TWIS131_ENABLED 1
645-
#endif
646-
#ifdef CONFIG_NRFX_TWIS132
647-
#define NRFX_TWIS132_ENABLED 1
648-
#endif
649-
#ifdef CONFIG_NRFX_TWIS133
650-
#define NRFX_TWIS133_ENABLED 1
651-
#endif
652-
#ifdef CONFIG_NRFX_TWIS134
653-
#define NRFX_TWIS134_ENABLED 1
654-
#endif
655-
#ifdef CONFIG_NRFX_TWIS135
656-
#define NRFX_TWIS135_ENABLED 1
657-
#endif
658-
#ifdef CONFIG_NRFX_TWIS136
659-
#define NRFX_TWIS136_ENABLED 1
660-
#endif
661-
#ifdef CONFIG_NRFX_TWIS137
662-
#define NRFX_TWIS137_ENABLED 1
663-
#endif
664610

665611
#ifdef CONFIG_NRFX_UART
666612
#define NRFX_UART_ENABLED 1

soc/nordic/common/Kconfig.peripherals

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -336,60 +336,6 @@ config HAS_HW_NRF_TWI0
336336
config HAS_HW_NRF_TWI1
337337
def_bool $(dt_nodelabel_enabled_with_compat,i2c1,$(DT_COMPAT_NORDIC_NRF_TWI))
338338

339-
config HAS_HW_NRF_TWIS0
340-
def_bool $(dt_nodelabel_enabled_with_compat,i2c0,$(DT_COMPAT_NORDIC_NRF_TWIS))
341-
342-
config HAS_HW_NRF_TWIS1
343-
def_bool $(dt_nodelabel_enabled_with_compat,i2c1,$(DT_COMPAT_NORDIC_NRF_TWIS))
344-
345-
config HAS_HW_NRF_TWIS2
346-
def_bool $(dt_nodelabel_enabled_with_compat,i2c2,$(DT_COMPAT_NORDIC_NRF_TWIS))
347-
348-
config HAS_HW_NRF_TWIS3
349-
def_bool $(dt_nodelabel_enabled_with_compat,i2c3,$(DT_COMPAT_NORDIC_NRF_TWIS))
350-
351-
config HAS_HW_NRF_TWIS20
352-
def_bool $(dt_nodelabel_enabled_with_compat,i2c20,$(DT_COMPAT_NORDIC_NRF_TWIS))
353-
354-
config HAS_HW_NRF_TWIS21
355-
def_bool $(dt_nodelabel_enabled_with_compat,i2c21,$(DT_COMPAT_NORDIC_NRF_TWIS))
356-
357-
config HAS_HW_NRF_TWIS22
358-
def_bool $(dt_nodelabel_enabled_with_compat,i2c22,$(DT_COMPAT_NORDIC_NRF_TWIS))
359-
360-
config HAS_HW_NRF_TWIS23
361-
def_bool $(dt_nodelabel_enabled_with_compat,i2c23,$(DT_COMPAT_NORDIC_NRF_TWIS))
362-
363-
config HAS_HW_NRF_TWIS24
364-
def_bool $(dt_nodelabel_enabled_with_compat,i2c24,$(DT_COMPAT_NORDIC_NRF_TWIS))
365-
366-
config HAS_HW_NRF_TWIS30
367-
def_bool $(dt_nodelabel_enabled_with_compat,i2c30,$(DT_COMPAT_NORDIC_NRF_TWIS))
368-
369-
config HAS_HW_NRF_TWIS130
370-
def_bool $(dt_nodelabel_enabled_with_compat,i2c130,$(DT_COMPAT_NORDIC_NRF_TWIS))
371-
372-
config HAS_HW_NRF_TWIS131
373-
def_bool $(dt_nodelabel_enabled_with_compat,i2c131,$(DT_COMPAT_NORDIC_NRF_TWIS))
374-
375-
config HAS_HW_NRF_TWIS132
376-
def_bool $(dt_nodelabel_enabled_with_compat,i2c132,$(DT_COMPAT_NORDIC_NRF_TWIS))
377-
378-
config HAS_HW_NRF_TWIS133
379-
def_bool $(dt_nodelabel_enabled_with_compat,i2c133,$(DT_COMPAT_NORDIC_NRF_TWIS))
380-
381-
config HAS_HW_NRF_TWIS134
382-
def_bool $(dt_nodelabel_enabled_with_compat,i2c134,$(DT_COMPAT_NORDIC_NRF_TWIS))
383-
384-
config HAS_HW_NRF_TWIS135
385-
def_bool $(dt_nodelabel_enabled_with_compat,i2c135,$(DT_COMPAT_NORDIC_NRF_TWIS))
386-
387-
config HAS_HW_NRF_TWIS136
388-
def_bool $(dt_nodelabel_enabled_with_compat,i2c136,$(DT_COMPAT_NORDIC_NRF_TWIS))
389-
390-
config HAS_HW_NRF_TWIS137
391-
def_bool $(dt_nodelabel_enabled_with_compat,i2c137,$(DT_COMPAT_NORDIC_NRF_TWIS))
392-
393339
config HAS_HW_NRF_UART0
394340
def_bool $(dt_nodelabel_enabled_with_compat,uart0,$(DT_COMPAT_NORDIC_NRF_UART))
395341

0 commit comments

Comments
 (0)