mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
boards/rp23xx: Add pm configurations for the Pico 2 and Pico Plus 2.
raspberrypi-pico-2:pm and pimoroni-pico-2-plus:pm enable the PM standby and dormant states with the greedy governor, suspend to RAM with the BOARDIOC_RP23XX_SUSPEND boardctl() command, and the RTC alarm. The console receive pin (GPIO 1) wakes the chip, and the dormant state is refused for 30 s after boot so that a debugger can attach. The Pico Plus 2 configuration also adds its PSRAM to the heap. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
This commit is contained in:
parent
a6ddfcd360
commit
879a19e153
4 changed files with 142 additions and 0 deletions
|
|
@ -150,6 +150,15 @@ smp
|
|||
Basic NuttShell configuration (console enabled on UART0, at 115200 bps) with
|
||||
both Arm cores enabled.
|
||||
|
||||
pm
|
||||
--
|
||||
|
||||
Power management (console on UART0, at 115200 bps). The idle governor
|
||||
uses the standby state, and the dormant state 30 seconds after boot; a
|
||||
character on the console receive pin (GPIO 1) wakes the board. Suspend to
|
||||
RAM is available through the ``BOARDIOC_RP23XX_SUSPEND`` boardctl()
|
||||
command, and ``/dev/rtc0`` has an alarm.
|
||||
|
||||
audiopack
|
||||
---------
|
||||
|
||||
|
|
|
|||
|
|
@ -230,3 +230,12 @@ smp
|
|||
|
||||
Basic NuttShell configuration (console enabled in UART0, at 115200 bps) with
|
||||
both ARM cores enabled.
|
||||
|
||||
pm
|
||||
--
|
||||
|
||||
Power management (console on UART0, at 115200 bps). The idle governor
|
||||
uses the standby state, and the dormant state 30 seconds after boot; a
|
||||
character on the console receive pin (GPIO 1) wakes the board. Suspend to
|
||||
RAM is available through the ``BOARDIOC_RP23XX_SUSPEND`` boardctl()
|
||||
command, and ``/dev/rtc0`` has an alarm.
|
||||
|
|
|
|||
63
boards/arm/rp23xx/pimoroni-pico-2-plus/configs/pm/defconfig
Normal file
63
boards/arm/rp23xx/pimoroni-pico-2-plus/configs/pm/defconfig
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
#
|
||||
# This file is autogenerated: PLEASE DO NOT EDIT IT.
|
||||
#
|
||||
# You can use "make menuconfig" to make any modifications to the installed .config file.
|
||||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
||||
# modifications.
|
||||
#
|
||||
# CONFIG_ARCH_LEDS is not set
|
||||
# CONFIG_NSH_ARGCAT is not set
|
||||
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
|
||||
# CONFIG_NSH_DISABLE_LOSMART is not set
|
||||
# CONFIG_STANDARD_SERIAL is not set
|
||||
CONFIG_ARCH="arm"
|
||||
CONFIG_ARCH_BOARD="pimoroni-pico-2-plus"
|
||||
CONFIG_ARCH_BOARD_COMMON=y
|
||||
CONFIG_ARCH_BOARD_PIMORONI_PICO_2_PLUS=y
|
||||
CONFIG_ARCH_CHIP="rp23xx"
|
||||
CONFIG_ARCH_CHIP_RP23XX=y
|
||||
CONFIG_ARCH_RAMVECTORS=y
|
||||
CONFIG_ARCH_STACKDUMP=y
|
||||
CONFIG_BOARDCTL_IOCTL=y
|
||||
CONFIG_BOARDCTL_RESET=y
|
||||
CONFIG_BOARD_LOOPSPERMSEC=10450
|
||||
CONFIG_BUILTIN=y
|
||||
CONFIG_DEBUG_FULLOPT=y
|
||||
CONFIG_DEBUG_SYMBOLS=y
|
||||
CONFIG_DISABLE_POSIX_TIMERS=y
|
||||
CONFIG_EXAMPLES_ALARM=y
|
||||
CONFIG_EXAMPLES_HELLO=y
|
||||
CONFIG_FS_PROCFS=y
|
||||
CONFIG_FS_PROCFS_REGISTER=y
|
||||
CONFIG_HOST_MACOS=y
|
||||
CONFIG_INIT_ENTRYPOINT="nsh_main"
|
||||
CONFIG_MM_REGIONS=2
|
||||
CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6
|
||||
CONFIG_NSH_BUILTIN_APPS=y
|
||||
CONFIG_NSH_READLINE=y
|
||||
CONFIG_PM=y
|
||||
CONFIG_PM_GOVERNOR_EXPLICIT_RELAX=30000
|
||||
CONFIG_PM_GOVERNOR_GREEDY=y
|
||||
CONFIG_PM_PROCFS=y
|
||||
CONFIG_RAM_SIZE=532480
|
||||
CONFIG_RAM_START=0x20000000
|
||||
CONFIG_READLINE_CMD_HISTORY=y
|
||||
CONFIG_RP23XX_PM=y
|
||||
CONFIG_RP23XX_PM_SUSPEND=y
|
||||
CONFIG_RP23XX_PM_WAKEUP_GPIO=1
|
||||
CONFIG_RP23XX_PSRAM=y
|
||||
CONFIG_RP23XX_RTC=y
|
||||
CONFIG_RR_INTERVAL=200
|
||||
CONFIG_RTC_ALARM=y
|
||||
CONFIG_RTC_DRIVER=y
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
CONFIG_START_DAY=9
|
||||
CONFIG_START_MONTH=2
|
||||
CONFIG_START_YEAR=2021
|
||||
CONFIG_SYSLOG_CONSOLE=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_TESTING_GETPRIME=y
|
||||
CONFIG_TESTING_OSTEST=y
|
||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||
CONFIG_USERLED=y
|
||||
CONFIG_USERLED_LOWER=y
|
||||
61
boards/arm/rp23xx/raspberrypi-pico-2/configs/pm/defconfig
Normal file
61
boards/arm/rp23xx/raspberrypi-pico-2/configs/pm/defconfig
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
#
|
||||
# This file is autogenerated: PLEASE DO NOT EDIT IT.
|
||||
#
|
||||
# You can use "make menuconfig" to make any modifications to the installed .config file.
|
||||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
||||
# modifications.
|
||||
#
|
||||
# CONFIG_ARCH_LEDS is not set
|
||||
# CONFIG_NSH_ARGCAT is not set
|
||||
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
|
||||
# CONFIG_NSH_DISABLE_LOSMART is not set
|
||||
# CONFIG_STANDARD_SERIAL is not set
|
||||
CONFIG_ARCH="arm"
|
||||
CONFIG_ARCH_BOARD="raspberrypi-pico-2"
|
||||
CONFIG_ARCH_BOARD_COMMON=y
|
||||
CONFIG_ARCH_BOARD_RASPBERRYPI_PICO_2=y
|
||||
CONFIG_ARCH_CHIP="rp23xx"
|
||||
CONFIG_ARCH_CHIP_RP23XX=y
|
||||
CONFIG_ARCH_RAMVECTORS=y
|
||||
CONFIG_ARCH_STACKDUMP=y
|
||||
CONFIG_BOARDCTL_IOCTL=y
|
||||
CONFIG_BOARDCTL_RESET=y
|
||||
CONFIG_BOARD_LOOPSPERMSEC=10450
|
||||
CONFIG_BUILTIN=y
|
||||
CONFIG_DEBUG_FULLOPT=y
|
||||
CONFIG_DEBUG_SYMBOLS=y
|
||||
CONFIG_DISABLE_POSIX_TIMERS=y
|
||||
CONFIG_EXAMPLES_ALARM=y
|
||||
CONFIG_EXAMPLES_HELLO=y
|
||||
CONFIG_FS_PROCFS=y
|
||||
CONFIG_FS_PROCFS_REGISTER=y
|
||||
CONFIG_HOST_MACOS=y
|
||||
CONFIG_INIT_ENTRYPOINT="nsh_main"
|
||||
CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6
|
||||
CONFIG_NSH_BUILTIN_APPS=y
|
||||
CONFIG_NSH_READLINE=y
|
||||
CONFIG_PM=y
|
||||
CONFIG_PM_GOVERNOR_EXPLICIT_RELAX=30000
|
||||
CONFIG_PM_GOVERNOR_GREEDY=y
|
||||
CONFIG_PM_PROCFS=y
|
||||
CONFIG_RAM_SIZE=532480
|
||||
CONFIG_RAM_START=0x20000000
|
||||
CONFIG_READLINE_CMD_HISTORY=y
|
||||
CONFIG_RP23XX_PM=y
|
||||
CONFIG_RP23XX_PM_SUSPEND=y
|
||||
CONFIG_RP23XX_PM_WAKEUP_GPIO=1
|
||||
CONFIG_RP23XX_RTC=y
|
||||
CONFIG_RR_INTERVAL=200
|
||||
CONFIG_RTC_ALARM=y
|
||||
CONFIG_RTC_DRIVER=y
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
CONFIG_START_DAY=9
|
||||
CONFIG_START_MONTH=2
|
||||
CONFIG_START_YEAR=2021
|
||||
CONFIG_SYSLOG_CONSOLE=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_TESTING_GETPRIME=y
|
||||
CONFIG_TESTING_OSTEST=y
|
||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||
CONFIG_USERLED=y
|
||||
CONFIG_USERLED_LOWER=y
|
||||
Loading…
Add table
Add a link
Reference in a new issue