Commit def5f8ee authored by Michał Stasiak's avatar Michał Stasiak Committed by Benjamin Cabé
Browse files

soc: nordic: allow use of TWIM frequency workaround

Added Kconfig options to allow use of TWIM frequency
workaround in NRFX for nRF52 and nRF53.

Signed-off-by: default avatarMichał Stasiak <michal.stasiak@nordicsemi.no>
parent 2fc2c6a5
Loading
Loading
Loading
Loading
+6 −0
Changes for modules/hal_nordic/nrfx/nrfx_kconfig.h: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -776,6 +776,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
+8 −0
Changes for soc/nordic/nrf52/Kconfig: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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 −0
Changes for soc/nordic/nrf53/Kconfig: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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