Skip to content

Commit 2478ce5

Browse files
author
Thomas Stenersen
committed
drivers: nrf5: Don't force specific drivers from soc/arm/nordic_nrf
Redefining the config will not let another (out-of-source) driver be chosen instead of the default. The driver is practically forced by the soc settings. This commit moves default settings from soc/arm/nordic_nrf into the drivers themselves. Signed-off-by: Thomas Stenersen <[email protected]>
1 parent b35d39a commit 2478ce5

File tree

9 files changed

+5
-20
lines changed

9 files changed

+5
-20
lines changed

boards/posix/nrf52_bsim/Kconfig.board

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ config BOARD_NRF52_BSIM
99
select CONSOLE_HAS_DRIVER
1010
select NRF_RTC_TIMER
1111
select CLOCK_CONTROL
12-
select CLOCK_CONTROL_NRF
1312
help
1413
Will produce a console Linux process which can be executed natively.
1514
It needs the BabbleSim simulator both in compile time and to execute

drivers/clock_control/Kconfig.nrf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
menuconfig CLOCK_CONTROL_NRF
88
bool "NRF Clock controller support"
99
depends on SOC_COMPATIBLE_NRF
10+
default y
1011
help
1112
Enable support for the Nordic Semiconductor nRFxx series SoC clock
1213
driver.

drivers/entropy/Kconfig.nrf5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ menuconfig ENTROPY_NRF5_RNG
99
bool "nRF5 RNG driver"
1010
depends on SOC_COMPATIBLE_NRF
1111
select ENTROPY_HAS_DRIVER
12+
default y
1213
help
1314
This option enables the RNG peripheral, which is a random number
1415
generator, based on internal thermal noise, that provides a
@@ -59,7 +60,6 @@ config ENTROPY_NRF5_ISR_THRESHOLD
5960
buffer goes below this number hardware entropy generation will be
6061
started.
6162

62-
6363
config ENTROPY_NRF5_PRI
6464
int "RNG interrupt priority"
6565
range 0 2 if SOC_SERIES_NRF51X

drivers/flash/Kconfig.nrf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ config SOC_FLASH_NRF
33
depends on SOC_FAMILY_NRF
44
select FLASH_HAS_PAGE_LAYOUT
55
select FLASH_HAS_DRIVER_ENABLED
6+
default y
67
help
78
Enables Nordic Semiconductor nRF flash driver.
89

drivers/timer/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ config ALTERA_AVALON_TIMER
111111
config NRF_RTC_TIMER
112112
bool "nRF Real Time Counter (NRF_RTC1) Timer"
113113
default y
114-
depends on CLOCK_CONTROL_NRF
114+
depends on CLOCK_CONTROL
115+
depends on SOC_COMPATIBLE_NRF
115116
select TICKLESS_CAPABLE
116117
help
117118
This module implements a kernel device driver for the nRF Real Time

soc/arm/nordic_nrf/Kconfig.defconfig

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@ source "soc/arm/nordic_nrf/*/Kconfig.defconfig.series"
1212
config BUILD_OUTPUT_HEX
1313
default y
1414

15-
if FLASH
16-
17-
config SOC_FLASH_NRF
18-
default y
19-
20-
endif # FLASH
21-
22-
if ENTROPY_GENERATOR
23-
24-
config ENTROPY_NRF5_RNG
25-
default y
26-
27-
endif # ENTROPY_GENERATOR
28-
2915
if SPI
3016

3117
config GPIO

soc/arm/nordic_nrf/nrf51/Kconfig.series

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ config SOC_SERIES_NRF51X
1212
select SOC_FAMILY_NRF
1313
select NRF_RTC_TIMER
1414
select CLOCK_CONTROL
15-
select CLOCK_CONTROL_NRF
1615
select HAS_STATE_DEEP_SLEEP_1
1716
select XIP
1817
select HAS_CMSIS

soc/arm/nordic_nrf/nrf52/Kconfig.series

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ config SOC_SERIES_NRF52X
1313
select SOC_FAMILY_NRF
1414
select NRF_RTC_TIMER
1515
select CLOCK_CONTROL
16-
select CLOCK_CONTROL_NRF
1716
select HAS_STATE_DEEP_SLEEP_1
1817
select XIP
1918
select HAS_CMSIS

soc/arm/nordic_nrf/nrf91/Kconfig.series

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ config SOC_SERIES_NRF91X
1515
select SOC_FAMILY_NRF
1616
select NRF_RTC_TIMER
1717
select CLOCK_CONTROL
18-
select CLOCK_CONTROL_NRF
1918
select HAS_STATE_DEEP_SLEEP_1
2019
select XIP
2120
select HAS_CMSIS

0 commit comments

Comments
 (0)