Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modules/hal_nordic/nrfx/nrfx_kconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,12 @@
#ifdef CONFIG_NRFX_TWIM137
#define NRFX_TWIM137_ENABLED 1
#endif
#ifdef CONFIG_NRF52_ANOMALY_219_WORKAROUND
#define NRFX_TWIM_NRF52_ANOMALY_219_WORKAROUND_ENABLED 1
#endif
#ifdef CONFIG_SOC_NRF53_ANOMALY_47_WORKAROUND
#define NRFX_TWIM_NRF53_ANOMALY_47_WORKAROUND_ENABLED 1
#endif

#ifdef CONFIG_NRFX_TWIS
#define NRFX_TWIS_ENABLED 1
Expand Down
8 changes: 8 additions & 0 deletions soc/nordic/nrf52/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,12 @@ config NRF52_ANOMALY_109_WORKAROUND_EGU_INSTANCE
help
EGU instance used by the nRF52 Anomaly 109 workaround for PWM.

config NRF52_ANOMALY_219_WORKAROUND
bool "Anomaly 219 workaround"
depends on NRFX_TWIM
help
Due to Anomaly 219 the low period of SCL clock is too short to meet
the I2C specification at 400 kHz. This workaround configures the I2C
frequency to 390 kHz instead of 400 kHz.

endif # SOC_SERIES_NRF52X
8 changes: 8 additions & 0 deletions soc/nordic/nrf53/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ if SOC_SERIES_NRF53X
VREGMAIN_PATH := $(dt_nodelabel_path,vregmain)
VREGRADIO_PATH := $(dt_nodelabel_path,vregradio)

config SOC_NRF53_ANOMALY_47_WORKAROUND
bool "Anomaly 47 workaround"
depends on NRFX_TWIM
help
Due to Anomaly 47 the low period of SCL clock is too short to meet
the I2C specification at 400 kHz. This workaround configures the I2C
frequency to 390 kHz instead of 400 kHz.

config SOC_NRF53_ANOMALY_160_WORKAROUND_NEEDED
bool "Workaround for nRF5340 anomaly 160"
imply SOC_NRF53_ANOMALY_160_WORKAROUND
Expand Down