Skip to content

Commit 15f47a6

Browse files
committed
[nrf fromtree] soc: arm: nordic_nrf: drop PM hooks
Nordic SoCs do all power management automagically when going to idle (ie k_cpu_idle()). The only extra state, system off, is now handled via sys_shutdown(), so there's no need to support the PM subsystem. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 96b3827)
1 parent 5bb0017 commit 15f47a6

File tree

13 files changed

+0
-214
lines changed

13 files changed

+0
-214
lines changed

soc/arm/nordic_nrf/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ config SYS_CLOCK_TICKS_PER_SEC
2828
config ARCH_HAS_CUSTOM_BUSY_WAIT
2929
default y if !QEMU_TARGET
3030

31-
config PM
32-
default y if SYS_CLOCK_EXISTS && MULTITHREADING && HAS_PM
33-
3431
config BUILD_OUTPUT_HEX
3532
default y
3633

soc/arm/nordic_nrf/nrf51/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ zephyr_library_sources(
66
soc.c
77
)
88

9-
zephyr_library_sources_ifdef(CONFIG_PM
10-
power.c
11-
)
12-
139
zephyr_library_include_directories(
1410
${ZEPHYR_BASE}/kernel/include
1511
${ZEPHYR_BASE}/arch/arm/include

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 XIP
1313
select HAS_NRFX
1414
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
15-
select HAS_PM
1615
select HAS_POWEROFF
1716
help
1817
Enable support for NRF51 MCU series

soc/arm/nordic_nrf/nrf51/power.c

Lines changed: 0 additions & 47 deletions
This file was deleted.

soc/arm/nordic_nrf/nrf52/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ zephyr_library_sources(
66
soc.c
77
)
88

9-
zephyr_library_sources_ifdef(CONFIG_PM
10-
power.c
11-
)
12-
139
zephyr_library_include_directories(
1410
${ZEPHYR_BASE}/kernel/include
1511
${ZEPHYR_BASE}/arch/arm/include

soc/arm/nordic_nrf/nrf52/Kconfig.series

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ config SOC_SERIES_NRF52X
1515
select HAS_NORDIC_DRIVERS
1616
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
1717
select HAS_SWO
18-
select HAS_PM
1918
select HAS_POWEROFF
2019
help
2120
Enable support for NRF52 MCU series

soc/arm/nordic_nrf/nrf52/power.c

Lines changed: 0 additions & 47 deletions
This file was deleted.

soc/arm/nordic_nrf/nrf53/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ zephyr_sources(
44
soc.c
55
)
66

7-
zephyr_library_sources_ifdef(CONFIG_PM
8-
power.c
9-
)
10-
117
zephyr_library_sources_ifdef(CONFIG_NRF53_SYNC_RTC
128
sync_rtc.c
139
)

soc/arm/nordic_nrf/nrf53/Kconfig.soc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ config SOC_NRF5340_CPUAPP
99
select CPU_HAS_NRF_IDAU
1010
select CPU_HAS_FPU
1111
select ARMV8_M_DSP
12-
select HAS_PM
1312
select HAS_POWEROFF
1413

1514
config SOC_NRF5340_CPUNET

soc/arm/nordic_nrf/nrf53/power.c

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)